/* ==========================================================
   PAUL'S 50TH — Editorial poster look: tall thin Didone caps,
   a flowing script accent, quiet serif body. Charcoal + antique brass.
   Fonts: Bodoni Moda (headings/labels) · Italianno (script) · EB Garamond (body)

   ========================================================== */

.p50 {
  --ink: #121110;
  --ink-2: #171614;
  --ink-3: #1e1c1a;
  --ox: #3a1518;
  --ox-deep: #24100f;
  --brass: #b58f47;
  --brass-2: #d2b675;
  --brass-dim: rgba(181, 143, 71, 0.42);
  --line: rgba(233, 228, 216, 0.16);
  --cream: #e9e4d8;
  --cream-70: rgba(233, 228, 216, 0.74);
  --cream-50: rgba(233, 228, 216, 0.52);
  --cream-30: rgba(233, 228, 216, 0.3);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --caps: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --script: "Italianno", "Snell Roundhand", "Brush Script MT", cursive;
  --body: "EB Garamond", "Garamond", Georgia, serif;

  /* antique brass: dark tarnish → muted highlight → warm mid → shadow, animated as a slow light sweep */
  --gold-metal: linear-gradient(108deg, #3f2c0e 0%, #7d5e26 12%, #c4a15c 26%, #a07d3a 38%, #5c4316 50%, #b08b44 62%, #dcc48a 72%, #8a6a2c 84%, #3f2c0e 100%);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-align: left;
}
html { scroll-behavior: smooth; }
html.p50-no-scroll { overflow: hidden; }

.p50, .p50 *, .p50 *::before, .p50 *::after { box-sizing: border-box; }
.p50 img { display: block; max-width: 100%; height: auto; }
.p50 a { color: inherit; }
.p50 h1, .p50 h2, .p50 h3, .p50 h4, .p50 p, .p50 ul, .p50 dl, .p50 dd, .p50 figure { margin: 0; padding: 0; }
.p50 ul { list-style: none; }
.p50 h1, .p50 h2, .p50 h3, .p50 h4 { font-family: var(--display); font-weight: 600; color: inherit; text-transform: uppercase; letter-spacing: .02em; }
.p50 button { font: inherit; color: inherit; }
.p50 ::selection { background: var(--cream); color: var(--ink); }

.p50 .container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.p50 .section { padding-block: clamp(88px, 12vw, 150px); position: relative; scroll-margin-top: 64px; }

/* metallic brass text: gradient clipped to the glyphs + slow light sweep */
.p50 .gold, .p50 .hero__title .line:last-child, .p50 .welcome__signoff em {
  background: var(--gold-metal);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(181,143,71,.12));
  animation: p50-sheen 11s ease-in-out infinite;
}
@keyframes p50-sheen { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .p50 .gold, .p50 .hero__title .line:last-child, .p50 .welcome__signoff em { animation: none; } }

/* ---------- type ---------- */
.p50 .eyebrow {
  font-family: var(--caps); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; line-height: 1.5;
}
.p50 .eyebrow--rule { display: inline-flex; align-items: center; gap: 14px; }
.p50 .eyebrow--rule::before { content: ""; width: 34px; height: 1px; background: var(--brass); opacity: .7; }
.p50 .h2 {
  font-family: var(--display); font-size: clamp(48px, 6.4vw, 90px);
  line-height: .98; letter-spacing: .02em; font-weight: 600; text-transform: uppercase; color: var(--cream);
}
.p50 .section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.p50 .section__head--center { margin-inline: auto; text-align: center; }
.p50 .section__head--center .ornament { margin-top: 22px; }
.p50 .section__intro { margin-top: 22px; font-size: 19px; color: var(--cream-70); max-width: 560px; }
.p50 .section__intro--center { margin-inline: auto; }
.p50 .muted { color: var(--cream-50); }

/* ornament: thin rule with a small diamond */
.p50 .ornament { display: flex; align-items: center; justify-content: center; gap: 10px; height: 10px; background: radial-gradient(circle, var(--brass) 0 2px, transparent 2.5px) center / 6px 6px no-repeat; }
.p50 .ornament::before, .p50 .ornament::after { content: ""; width: 48px; height: 1px; background: var(--brass-dim); }
.p50 .ornament--left { justify-content: flex-start; margin: 22px 0 28px; background-position: 52px 50%; }
.p50 .diamond { width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); opacity: .85; }

/* decorative inner frame for cards */
.p50 .deco { position: relative; }
.p50 .deco::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; z-index: 2; }

/* ---------- buttons ---------- */
.p50 .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; line-height: 1.2;
  font-family: var(--caps); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; cursor: pointer; background: none;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .35s;
}
.p50 .btn--brass { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.p50 .btn--brass:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(233,228,216,.5); }
.p50 .btn--ghost { color: var(--cream); border-color: var(--cream-30); }
.p50 .btn--ghost:hover { border-color: var(--cream); transform: translateY(-2px); }
.p50 .btn--wide { width: 100%; }
.p50 .btn--sm { padding: 12px 24px; font-size: 11.5px; }
.p50 .btn:disabled { opacity: .55; cursor: default; transform: none !important; box-shadow: none !important; }

/* ---------- nav ---------- */
.p50 .nav {
  position: fixed; inset: 0 0 auto 0; z-index: 9990;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--gutter);
  transition: background .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.p50 .nav--solid { background: rgba(18,17,16,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--line); }
.p50 .nav__brand { display: grid; gap: 3px; text-decoration: none; color: var(--cream); justify-items: start; }
.p50 .nav__brand-name { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.p50 .nav__brand-name sup, .p50 .footer__brand span sup { font-size: .48em; vertical-align: .55em; letter-spacing: .06em; margin-left: .04em; }
.p50 .nav__brand-sub { font-family: var(--caps); font-size: 9px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.p50 .nav__links { display: flex; gap: 34px; justify-self: center; }
.p50 .nav__links a {
  font-family: var(--caps); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-70); text-decoration: none; position: relative; padding: 6px 0; transition: color .3s;
}
.p50 .nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.p50 .nav__links a:hover { color: var(--cream); }
.p50 .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.p50 .nav__links a.nav__cta { color: var(--brass-2); }
.p50 .nav__date { justify-self: end; font-family: var(--caps); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-70); }
.p50 .nav__burger { display: none; justify-self: end; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.p50 .nav__burger span { display: block; height: 1px; background: var(--cream); margin: 7px 0; transition: transform .35s var(--ease), opacity .3s; }

/* ---------- hero: full-bleed portrait, centred type ---------- */
.p50 .hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: 0 var(--gutter) 0; overflow: hidden; text-align: center;
}
.p50 .hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--ink); }
.p50 .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* blurred, darkened copy fills the width; the sharp portrait sits full-height in the centre */
.p50 .hero__bg-blur { object-fit: cover; object-position: 50% 20%; filter: blur(34px) saturate(.6) brightness(.38); transform: scale(1.12); }
.p50 .hero__bg-main { top: 22%; height: 78%; object-fit: contain; object-position: 50% 0%; filter: saturate(.85) contrast(1.04); }
.p50 .hero__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,17,16,.2) 0%, rgba(18,17,16,0) 30%, rgba(18,17,16,0) 55%, rgba(18,17,16,.62) 74%, rgba(18,17,16,.94) 90%, var(--ink) 100%),
    linear-gradient(90deg, var(--ink) 0%, rgba(18,17,16,0) 22%, rgba(18,17,16,0) 78%, var(--ink) 100%);
}
.p50 .hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .4; mix-blend-mode: overlay;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.p50 .hero__inner {
  position: relative; z-index: 1; width: min(var(--container), 100%); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  min-height: 100svh; padding-top: 104px;
}
.p50 .hero .eyebrow { display: none; }
.p50 .hero__titlewrap { position: relative; align-self: center; font-size: clamp(54px, 8.6vw, 132px); }
.p50 .hero__title {
  font-family: var(--display); font-size: 1em;
  line-height: .94; letter-spacing: .03em; font-weight: 600; text-transform: uppercase; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.45); text-align: left;
}
.p50 .hero__title .line { display: block; }
/* FIFTY YEARS, stretched taller */
.p50 .hero__title .line:first-child { transform: scaleY(1.3); transform-origin: 50% 100%; padding-top: .3em; }
/* the script line starts under the A of YEARS and rides up over its baseline;
   width: max-content so the metallic fill covers the whole word */
.p50 .hero__title .line:last-child {
  display: inline-block; width: max-content; font-family: var(--script); text-transform: none; letter-spacing: 0; white-space: nowrap;
  font-size: 1.3em; line-height: .9; margin: -.34em 0 0 55%; padding: 0 .15em; font-weight: 400; text-shadow: none;
}
.p50 .hero__sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--cream-70); max-width: 520px; margin: auto 0 28px; font-style: italic; }
.p50 .hero__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 36px; }
.p50 .hero__meta-date { font-family: var(--caps); font-size: 16px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); }
.p50 .hero__meta-place { font-family: var(--caps); font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.p50 .hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: clamp(56px, 8vh, 96px); }

/* the wax seal: the gold seal image, tilted 25°, with the text pressed into it */
.p50 .seal {
  position: absolute; left: 0; top: 1.2em; z-index: 2;
  width: 1.25em; height: 1.25em;
  transform: translate(-58%, -42%) rotate(-25deg);
  background: url("images/wax-seal.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.75)) drop-shadow(0 2px 3px rgba(0,0,0,.5));
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: .04em;
}
/* the 50 / Est. 1976 lettering is part of the wax-seal image itself; the text spans stay for screen readers only */
.p50 .seal__num, .p50 .seal__est { display: none !important; }
/* embossed lettering: dark edge upper-left, light catch lower-right */
.p50 .seal__num, .p50 .seal__est {
  position: relative; color: #9a7a2c;
  text-shadow: -1px -1px 1px rgba(70,45,5,.85), 1px 1px 0 rgba(255,244,205,.7), 0 0 2px rgba(120,90,20,.4);
}
.p50 .seal__num { font-family: var(--display); font-size: .48em; line-height: .72; font-weight: 700; letter-spacing: -.02em; }
.p50 .seal__est { font-family: var(--caps); font-size: .065em; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: .9em; }

.p50 .countdown {
  position: relative; z-index: 1; width: min(var(--container), 100%); margin: 0 auto;
  display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.p50 .countdown__unit { flex: 1; padding: 22px 8px; text-align: center; border-right: 1px solid var(--line); }
.p50 .countdown__unit:last-child { border-right: 0; }
.p50 .countdown__unit b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.p50 .countdown__unit span { display: block; margin-top: 8px; font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); }

/* ---------- welcome ---------- */
.p50 .welcome { background: var(--ink-2); }
.p50 .welcome::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-dim), transparent); }
.p50 .welcome__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.p50 .welcome__photo { margin: 0; isolation: isolate; }
.p50 .welcome__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; filter: saturate(.85); }
.p50 .welcome__photo::after { content: ""; position: absolute; inset: 0; transform: translate(-16px, 16px); border: 1px solid var(--brass-dim); z-index: -1; }
.p50 .welcome__body p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--cream-70); margin-bottom: 22px; }
.p50 .welcome__body p:first-child { color: var(--cream); }
.p50 .welcome__signoff { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; color: var(--cream-50); font-size: 16px; font-style: italic; }
.p50 .welcome__signoff em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 52px; line-height: 1; display: inline-block; padding-right: .1em; }

/* ---------- itinerary ---------- */
.p50 .itinerary {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(58,21,24,.45), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ox-deep) 55%, var(--ink) 100%);
}
.p50 .days { display: grid; gap: clamp(28px, 4vw, 44px); }
.p50 .day {
  display: grid; grid-template-columns: 300px 1fr; background: rgba(18,17,16,.55); border: 1px solid var(--line);
  overflow: hidden; backdrop-filter: blur(6px); transition: border-color .4s;
}
.p50 .day:hover { border-color: rgba(233,228,216,.36); }
.p50 .day__media { position: relative; min-height: 280px; overflow: hidden; }
.p50 .day__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: filter .7s var(--ease); }
.p50 .day:hover .day__media img { filter: saturate(1); }
/* the shade slides off to the left on hover, revealing the photo; the frame stays put */
.p50 .day__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,17,16,.25) 0%, rgba(18,17,16,.35) 60%, rgba(18,17,16,.7) 100%), linear-gradient(0deg, rgba(18,17,16,.75), transparent 50%); transition: transform .8s var(--ease); }
.p50 .day:hover .day__media::after { transform: translateX(-101%); }
.p50 .day__label { position: absolute; left: 26px; bottom: 22px; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.p50 .day__num { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--cream); line-height: 1; letter-spacing: .08em; }
.p50 .day__content { padding: clamp(30px, 3.8vw, 48px) clamp(26px, 4vw, 56px); }
.p50 .day__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.p50 .day__name { font-family: var(--display); font-size: clamp(36px, 3.6vw, 48px); line-height: 1; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.p50 .day__sub { font-style: italic; color: var(--cream-50); margin-top: 6px; font-size: 17px; }
.p50 .day__date { font-family: var(--caps); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); padding-bottom: 6px; }
.p50 .events { display: grid; gap: 24px; }
.p50 .event { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.p50 .event__time { font-family: var(--caps); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); padding-top: 8px; }
.p50 .event__title { font-family: var(--display); font-size: 27px; line-height: 1.05; color: var(--cream); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.p50 .event__venue { margin-top: 8px; font-size: 18px; color: var(--cream-70); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.p50 .event__link { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--brass-dim); transition: border-color .3s, color .3s; padding-bottom: 1px; }
.p50 .event__link:hover { color: var(--brass-2); border-color: var(--brass); }
.p50 .event__details { background: none; border: 1px solid var(--brass-dim); color: var(--brass); font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 5px 11px 4px; border-radius: 0; cursor: pointer; line-height: 1.4; transition: border-color .3s, background .3s, color .3s; }
.p50 .event__details:hover { border-color: var(--brass); background: rgba(181,143,71,.1); color: var(--brass-2); }
.p50 .event__note { margin-top: 8px; font-size: 16.5px; color: var(--cream-50); font-style: italic; }

/* TODO placeholders are visible while editing */
.p50 .todo { text-decoration: underline dashed rgba(181,143,71,.6); text-underline-offset: 4px; }

.p50 .cta-band {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 40px;
  padding: 32px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.p50 .cta-band__text { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 22px; color: var(--cream-70); }
.p50 .cta-band__text span { color: var(--cream); }
.p50 .cta-band__copy { display: grid; gap: 8px; text-align: center; }
.p50 .cta-band__note { font-style: italic; color: var(--cream-50); font-size: 16px; max-width: 520px; margin-inline: auto; }

/* ---------- venues ---------- */
.p50 .venues { background: var(--ink); padding-top: clamp(40px, 5vw, 72px); }
.p50 .itinerary { padding-bottom: clamp(48px, 6vw, 80px); }
.p50 .venue-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p50 .venue {
  position: relative; display: block; padding: 0; margin: 0; border: 1px solid var(--line); background: var(--ink-2);
  aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .4s, transform .5s var(--ease);
}
.p50 .venue:hover, .p50 .venue:focus-visible { border-color: var(--brass); transform: translateY(-4px); outline: none; }
.p50 .venue img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.82);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.p50 .venue:hover img, .p50 .venue:focus-visible img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.05); }
.p50 .venue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,17,16,.92) 0%, rgba(18,17,16,.35) 45%, transparent 70%); pointer-events: none; }
.p50 .venue__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 18px 18px; display: grid; gap: 5px; }
.p50 .venue__when { font-family: var(--caps); font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.p50 .venue__name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 22px; line-height: 1.05; color: var(--cream); letter-spacing: .03em; }
.p50 .venue__more { font-family: var(--caps); font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-50); margin-top: 6px; transition: color .3s; }
.p50 .venue:hover .venue__more { color: var(--brass-2); }
.p50 .venue__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 96px; background: radial-gradient(60% 50% at 50% 40%, rgba(58,21,24,.5), transparent 70%), var(--ink-3); }
.p50 .venue__ph span { font-family: var(--display); font-weight: 600; font-size: 92px; line-height: 1; color: var(--brass-dim); }
.p50 .venue__ph small { font-family: var(--caps); font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-30); }
.p50 .venue--placeholder::after { background: linear-gradient(0deg, rgba(18,17,16,.85) 0%, transparent 55%); }

/* ---------- modal ---------- */
.p50 .modal { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; padding: 20px; }
.p50 .modal[hidden] { display: none; }
.p50 .modal__backdrop { position: absolute; inset: 0; background: rgba(10,9,8,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.p50 .modal__card {
  position: relative; width: min(920px, 100%); max-height: min(90vh, 900px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); border: 1px solid var(--brass-dim);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,1);
  opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .3s, transform .4s var(--ease);
}
.p50 .modal.is-open .modal__backdrop { opacity: 1; }
.p50 .modal.is-open .modal__card { opacity: 1; transform: none; }
.p50 .modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brass-dim); background: rgba(18,17,16,.7); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .3s, color .3s; }
.p50 .modal__close:hover { border-color: var(--brass); color: var(--brass-2); }
.p50 .modal__media { position: relative; min-height: 320px; background: var(--ink-3); }
.p50 .modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p50 .venue__ph--modal { padding-bottom: 0; }
.p50 .venue__ph--modal span { font-size: 120px; }
.p50 .modal__body { padding: clamp(30px, 4vw, 52px); display: grid; align-content: start; gap: 12px; }
.p50 .modal__title { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.p50 .modal__kind { font-style: italic; color: var(--brass-2); font-size: 19px; margin-top: -2px; }
.p50 .modal__desc { color: var(--cream-70); font-size: 17.5px; margin-top: 8px; }
.p50 .modal__meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16.5px; }
.p50 .modal__meta dt { font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); padding-top: 5px; }
.p50 .modal__meta dd { color: var(--cream-70); }
.p50 .modal__actions { margin-top: 18px; }

/* ---------- guests ---------- */
.p50 .guests { background: var(--ink-2); }
.p50 .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p50 .card {
  padding: 38px 32px 32px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  transition: border-color .4s, transform .5s var(--ease);
}
.p50 .card:hover { border-color: rgba(233,228,216,.36); transform: translateY(-3px); }
.p50 .card__icon { width: 24px; height: 24px; fill: var(--brass); margin-bottom: 20px; display: block; }
.p50 .card__title { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.05; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .03em; }
.p50 .card__intro { color: var(--cream-70); font-size: 17px; margin-bottom: 14px; font-style: italic; }
.p50 .card__list { display: grid; gap: 14px; }
.p50 .card__list li { display: grid; gap: 3px; font-size: 17px; color: var(--cream-70); padding-left: 18px; position: relative; }
.p50 .card__list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 1px; background: var(--brass); }
.p50 .card__list strong { font-weight: 600; color: var(--cream); font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.p50 .card__list a { font-family: var(--caps); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); text-decoration: none; width: fit-content; margin-top: 2px; }
.p50 .card__list a:hover { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }
.p50 .card__list a[href^="mailto:"] { text-transform: none; letter-spacing: .04em; font-family: var(--body); font-size: 17px; color: var(--brass-2); border-bottom: 1px solid var(--brass-dim); }
.p50 .card__list a.card__cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 12px 22px;
  border: 1px solid var(--cream-30); color: var(--cream); font-family: var(--caps); font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: border-color .3s, transform .35s var(--ease), background .3s;
}
.p50 .card__list a.card__cta:hover { border-color: var(--cream); text-decoration: none; transform: translateY(-2px); background: rgba(233,228,216,.06); }

/* ---------- rsvp ---------- */
.p50 .rsvp { padding: 0; position: relative; overflow: hidden; }
.p50 .rsvp__photo { position: absolute; inset: 0; z-index: 0; }
.p50 .rsvp__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.8); }
.p50 .rsvp__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.6) 0%, rgba(18,17,16,.86) 60%, var(--ink) 100%); }
.p50 .rsvp__panel { position: relative; z-index: 1; text-align: center; padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(64px, 8vw, 100px); max-width: 720px; margin-inline: auto; }
.p50 .rsvp__lead { font-family: var(--script); font-size: clamp(40px, 4.2vw, 56px); line-height: 1; color: var(--brass-2); margin-top: 18px; }
.p50 .rsvp__sub { color: var(--cream-70); margin: 12px 0 0; font-size: 19px; }
.p50 .rsvp__note { color: var(--cream-50); font-style: italic; margin: 10px auto 0; font-size: 16px; max-width: 460px; }
.p50 .rsvp__hint { margin-top: 36px; font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-50); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.p50 .rsvp__hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(180deg, var(--brass), transparent); }

.p50 .rsvp__slot { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 0 var(--gutter) clamp(88px, 10vw, 140px); }
.p50 .rsvp__form { position: relative; }
.p50 .form { display: grid; gap: 22px; text-align: left; }
.p50 .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.p50 .form__row.is-hidden { display: none; }
.p50 .field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.p50 .field > span, .p50 .field legend { font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); padding: 0; }
.p50 .field legend { margin-bottom: 8px; }
.p50 .field input, .p50 .field select, .p50 .field textarea {
  width: 100%; background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid var(--cream-30); border-radius: 0;
  padding: 10px 0; font: inherit; font-size: 18px; outline: none; transition: border-color .3s;
}
.p50 .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b58f47' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; cursor: pointer; }
.p50 .field select option { background: var(--ink-3); color: var(--cream); }
.p50 .field textarea { resize: vertical; min-height: 60px; }
.p50 .field input:focus, .p50 .field select:focus, .p50 .field textarea:focus { border-bottom-color: var(--brass); }
.p50 .field input::placeholder, .p50 .field textarea::placeholder { color: var(--cream-30); font-style: italic; }
.p50 .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p50 .choice input { position: absolute; opacity: 0; pointer-events: none; }
.p50 .choice label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 15px 12px; border: 1px solid var(--cream-30); cursor: pointer;
  font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; color: var(--cream-70);
  transition: border-color .3s, color .3s, background .3s;
}
.p50 .choice label:hover { border-color: var(--brass-dim); color: var(--cream); }
.p50 .choice input:checked + label { border-color: var(--brass); color: var(--brass-2); background: rgba(181,143,71,.08); }
.p50 .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.p50 .form__error { color: #e28b8b; font-size: 15px; }
.p50 .form__success { padding: 20px 0 0; text-align: center; display: grid; justify-items: center; }
.p50 .form__success-mark { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); display: grid; place-items: center; font-size: 22px; margin-bottom: 24px; }
.p50 .form__success h3 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }
.p50 .form__success p { color: var(--cream-70); font-size: 19px; }

/* ---------- footer ---------- */
.p50 .footer { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--ink); }
.p50 .footer__inner { text-align: center; display: grid; gap: 14px; justify-items: center; }
.p50 .footer__brand { display: grid; gap: 4px; justify-items: center; margin-top: 8px; }
.p50 .footer__brand span { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 28px; letter-spacing: .08em; line-height: 1; }
.p50 .footer__brand b { font-family: var(--caps); font-weight: 500; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.p50 .footer__line { font-style: italic; color: var(--cream-70); font-size: 19px; }
.p50 .footer .btn { margin-top: 6px; }
.p50 .footer__meta { font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-30); margin-top: 10px; }

/* ---------- reveal (only when JS is running, so nothing can get stuck invisible) ---------- */
.p50.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.p50.js .reveal.is-in { opacity: 1; transform: none; }
.p50.js .hero .reveal:nth-child(1) { transition-delay: .05s; }
.p50.js .hero .reveal:nth-child(2) { transition-delay: .15s; }
.p50.js .hero .reveal:nth-child(3) { transition-delay: .25s; }
.p50.js .hero .reveal:nth-child(4) { transition-delay: .35s; }
.p50.js .hero .reveal:nth-child(5) { transition-delay: .45s; }
.p50.js .hero__portrait.reveal { transition-delay: .2s; transform: translateY(30px) scale(.98); }
.p50.js .venue.reveal { transform: translateY(18px); }
.p50.js .venue.reveal.is-in { transform: none; }
.p50.js .venue.reveal.is-in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .p50.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .p50 .venue-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .p50 .cards { grid-template-columns: 1fr 1fr; }
  .p50 .day { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .p50 .nav { grid-template-columns: 1fr auto; }
  .p50 .nav__links {
    position: fixed; inset: 0; background: rgba(18,17,16,.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 34px;
    transform: translateY(-100%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none;
  }
  .p50 .nav__links a { font-size: 18px; }
  .p50 .nav--open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .p50 .nav__date { display: none; }
  .p50 .nav__burger { display: block; position: relative; z-index: 2; }
  .p50 .nav--open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .p50 .nav--open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  /* mobile hero: the portrait fills the screen, type sits in the lower half */
  .p50 .hero { padding-top: 0; min-height: 100svh; }
  .p50 .hero__bg-main { top: 36%; height: 64%; object-fit: cover; object-position: 50% 0%; }
  .p50 .hero__bg-blur { display: none; }
  .p50 .hero__inner { padding-top: 92px; }
  .p50 .hero__sub { display: none; }
  .p50 .hero__meta { margin-top: auto; }
  /* FIFTY YEARS, on one line; "lived / well." stacked to the right beneath it */
  .p50 .hero__titlewrap { font-size: clamp(36px, 11.2vw, 52px); width: 100%; }
  .p50 .hero__title { font-size: 1em; }
  .p50 .hero__title .line:first-child { white-space: nowrap; text-align: center; }
  /* "lived" on one line, "well." tucked up under its "ed" and hanging past the d */
  /* padding-top gives the metallic fill room for the ascenders of "lived" (the fill is clipped to the box) */
  .p50 .hero__title .line:last-child { display: block; width: 46%; white-space: nowrap; margin: -.5em 0 0 47%; padding: .3em .15em 0; font-size: 1.6em; line-height: .82; text-align: left; }
  .p50 .hero__title .line:last-child .w { display: block; }
  .p50 .hero__title .line:last-child .w:first-child { margin-left: .16em; }
  .p50 .hero__title .line:last-child .w:last-child { margin: -.5em 0 0 .72em; }
  .p50 .seal { width: 1.5em; height: 1.5em; top: 1.3em; left: 0; transform: translate(4%, 6%) rotate(-25deg); padding-top: .24em; }
  .p50 .seal__num, .p50 .seal__est { text-shadow: -1px -1px 1px rgba(70,45,5,.95), 1px 1px 0 rgba(255,244,205,.85), 0 0 1px rgba(120,90,20,.5); }
  .p50 .seal__num { font-size: .56em; }
  .p50 .seal__est { font-size: .085em; margin-top: 1.1em; }
  .p50 .hero__actions { margin-bottom: 40px; }
  .p50 .hero__actions .btn { width: 100%; }
  /* countdown stays on one line: four narrow cells, smaller digits and labels */
  .p50 .countdown { flex-wrap: nowrap; }
  .p50 .countdown__unit { flex: 1 1 0; min-width: 0; padding: 14px 2px; }
  .p50 .countdown__unit b { font-size: clamp(22px, 7.5vw, 34px); }
  .p50 .countdown__unit span { font-size: 8px; letter-spacing: .18em; margin-top: 6px; }

  .p50 .welcome__grid { grid-template-columns: 1fr; }
  .p50 .welcome__photo { max-width: 420px; }

  .p50 .day { grid-template-columns: 1fr; }
  .p50 .day__media { min-height: 220px; aspect-ratio: 16 / 9; }
  .p50 .day__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .p50 .event { grid-template-columns: 1fr; gap: 4px; }

  .p50 .venue-grid { grid-template-columns: repeat(2, 1fr); }
  .p50 .modal__card { grid-template-columns: 1fr; }
  .p50 .modal__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .p50 { font-size: 17px; }
  .p50 .cards { grid-template-columns: 1fr; }
  .p50 .form__row { grid-template-columns: 1fr; }
  .p50 .choice { grid-template-columns: 1fr; }
  .p50 .hero__actions .btn { width: 100%; }
  .p50 .cta-band { flex-direction: column; text-align: center; }
  .p50 .venue-grid { gap: 10px; }
  .p50 .venue__name { font-size: 20px; }
  .p50 .venue__cap { padding: 14px 12px 12px; }
}
