/* =====================================================================
   Low-Key, High Spirits Happy Hour · OPTECH 2026
   Co-brand design system for Apartment List, Flex, Grotto and Resi.
   Partners always appear in alphabetical order.

   Principles
   1. Neutral by default: ink, white and cool greys carry every surface,
      so the base belongs to no single host.
   2. Four colors, blended: partner signatures appear together as soft
      aurora gradients and overlapping circles. Never as color-coded
      bars, stripes or edges.
   3. Ink for action: buttons, links and focus states are ink, so no host's
      color ever means "click here".
   ===================================================================== */

:root {
  color-scheme: light;

  /* Neutrals: cool, with a faint violet bias that sits well beside the partner set */
  --ink: #0E0F14;
  --ink-2: #1D1F29;
  --graphite: #3C3F4C;
  --slate: #5F6371;
  --steel: #868A96;
  --line-strong: #D5D7DE;
  --line: #E7E8EC;
  --mist: #F4F5F7;
  --paper: #FAFAFB;
  --white: #FFFFFF;

  /* Text and lines on ink surfaces */
  --on-ink: #FFFFFF;
  --on-ink-2: rgba(255, 255, 255, 0.7);
  --on-ink-3: rgba(255, 255, 255, 0.5);
  --line-on-ink: rgba(255, 255, 255, 0.14);

  /* Partner signatures, sampled from each brand's live site and guidelines */
  --apartment-list: #6105C4;  /* Apartment List · violet */
  --flex: #D3FD63;            /* Flex · lime */
  --grotto: #FFC700;          /* Grotto · yellow */
  --resi: #8468D2;            /* Resi · Tru V */

  /* Aurora: the four signatures blended. Use blurred, behind content. */
  --aurora:
    radial-gradient(55% 60% at 20% 25%, rgba(132, 104, 210, 0.9), transparent 70%),
    radial-gradient(50% 55% at 80% 20%, rgba(255, 199, 0, 0.8), transparent 70%),
    radial-gradient(55% 60% at 30% 85%, rgba(97, 5, 196, 0.75), transparent 70%),
    radial-gradient(50% 55% at 82% 80%, rgba(211, 253, 99, 0.9), transparent 70%);
  --aurora-soft:
    radial-gradient(55% 60% at 20% 25%, rgba(132, 104, 210, 0.34), transparent 70%),
    radial-gradient(50% 55% at 80% 20%, rgba(255, 199, 0, 0.3), transparent 70%),
    radial-gradient(55% 60% at 30% 85%, rgba(97, 5, 196, 0.22), transparent 70%),
    radial-gradient(50% 55% at 82% 80%, rgba(211, 253, 99, 0.45), transparent 70%);
  --aurora-ring: conic-gradient(from var(--angle, 0deg), var(--apartment-list), var(--flex), var(--grotto), var(--resi), var(--apartment-list));
  /* For headline text on white: the signatures deepened just enough to read, blended dusk to lime */
  --aurora-text: linear-gradient(120deg, #6105C4 0%, #8468D2 26%, #D9668F 50%, #EDA20A 74%, #8CBF1F 100%);
  --aurora-text-ink: linear-gradient(120deg, #A47BFF 0%, #B9A6F0 26%, #F08FB4 50%, #FFC700 74%, #D3FD63 100%);

  /* Roles */
  --text: var(--ink);
  --text-2: var(--graphite);
  --text-3: var(--slate);
  --danger: #C8321F;

  /* Type */
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Archivo", "Helvetica Neue", Arial, sans-serif; /* set expanded, caps */
  --fs-display: clamp(3.25rem, 8vw, 6.75rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 20, 0.06);
  --shadow-md: 0 18px 44px -18px rgba(14, 15, 20, 0.16);
  --shadow-lg: 0 32px 48px rgba(14, 15, 20, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Primitives ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Partner mark: the four signatures as an overlapping stack */
.partner-stack {
  --dot: 16px;
  --ring: var(--white);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.partner-stack i {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ring);
}
.partner-stack i + i { margin-left: calc(var(--dot) * -0.28); }
.partner-stack i:nth-child(1) { background: var(--apartment-list); }
.partner-stack i:nth-child(2) { background: var(--flex); }
.partner-stack i:nth-child(3) { background: var(--grotto); }
.partner-stack i:nth-child(4) { background: var(--resi); }

/* Gradient text: the four signatures across a headline.
   On a multi-line block, add width: fit-content so the gradient spans the words, not the column. */
.text-aurora {
  background-image: var(--aurora-text);
  background-size: 125% 125%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.on-ink .text-aurora { background-image: var(--aurora-text-ink); }
@media (prefers-reduced-motion: no-preference) {
  .text-aurora { animation: aurora-shimmer 9s ease-in-out infinite alternate; }
  @keyframes aurora-shimmer { to { background-position: 100% 100%; } }
}

/* Aurora surface: drop into any positioned container as a glow */
.aurora {
  position: absolute;
  pointer-events: none;
  background: var(--aurora);
  border-radius: 50%;
  filter: blur(56px);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora.drift { animation: aurora-drift 16s ease-in-out infinite alternate; }
  @keyframes aurora-drift {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(40deg) scale(1.12); }
  }
}

/* Event lockup: mark + name + conference tag */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-decoration: none;
}
.lockup-name { min-width: 0; }
.lockup-name span { white-space: nowrap; }

/* Sticky site nav: frosted white, gains a hairline once the page scrolls */
.site-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-nav.is-scrolled { background: rgba(255, 255, 255, 0.9); border-bottom-color: var(--line); }
.site-nav .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.site-nav .nav-right { display: flex; flex-shrink: 0; align-items: center; gap: 20px; }
@media (max-width: 560px) {
  .site-nav .lockup-name span { display: block; }
  .site-nav .nav-meta { display: none; }
}
.lockup small {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.on-ink .lockup { color: var(--on-ink); }
.on-ink .lockup small { border-color: var(--line-on-ink); color: var(--on-ink-2); }
.on-ink .partner-stack { --ring: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font: 500 0.9375rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, translate 0.35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(14, 15, 20, 0.6);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* Aurora halo on hover. The button's container needs its own stacking context
   (isolation: isolate) so the halo sits behind the button, not behind the page. */
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--aurora-ring);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn-glow:hover::before, .btn-glow:focus-visible::before { opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .btn-glow:hover::before { animation: halo-spin 2.8s linear infinite; }
  @keyframes halo-spin { to { --angle: 360deg; } }
}

/* Calendar dropdown */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.menu-list a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  text-decoration: none;
}
.menu-list a:hover { background: var(--mist); }

/* ---------- Form controls ---------- */
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
}
.field .opt { color: var(--text-3); font-weight: 400; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--steel); }
.input:hover { border-color: #BFC2CB; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 15, 20, 0.08); }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .input:focus { box-shadow: 0 0 0 4px rgba(200, 50, 31, 0.12); }
.error { display: none; margin: 6px 0 0; font-size: 0.8125rem; color: var(--danger); }
.field.invalid .error { display: block; }

/* Radio chips (single choice), each keyed to a partner with a --brand dot */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-small);
  font-weight: 500;
  pointer-events: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand, var(--aurora-ring));
  box-shadow: inset 0 0 0 1px rgba(14, 15, 20, 0.14);
  transition: scale 0.3s var(--ease-out);
}
.chip:hover span { border-color: var(--steel); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:checked + span::before { scale: 1.3; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.invalid .chip span { border-color: var(--danger); }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.logo-slot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 96px;
  padding: 14px 18px;
  background: var(--white);
}
.logo-slot::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: var(--aurora-soft);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.logo-slot:hover::before, .logo-slot:focus-within::before { opacity: 1; }
.logo-slot > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}
/* Partner logos: one-color black so all four carry equal weight, their own colors on hover.
   --logo-h sets each logo's height to balance their optical size. */
.partner-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--logo-h, 30px);
  filter: brightness(0);
  opacity: 0.88;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
a:hover > .partner-logo, a:focus-visible > .partner-logo { filter: none; opacity: 1; }
.logo-placeholder {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
.logo-placeholder small {
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-slot { height: 84px; }
}

/* ---------- Photo ---------- */
/* Placeholder until a photo is dropped in: replace .photo-ph with <img> */
.photo {
  --rot: 0deg;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font: inherit;
  text-align: center;
}
button.photo { cursor: zoom-in; }
.photo::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background: var(--aurora-soft);
  filter: blur(28px);
  transform: rotate(var(--rot)) scale(1.1);
  transition: transform 0.9s var(--ease-out);
}
.photo:hover::before { transform: rotate(calc(var(--rot) + 24deg)) scale(1.25); }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.photo:hover img { transform: scale(1.04); }
.photo:has(img) { background: var(--ink); }
.photo:has(img)::before { display: none; }
.photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
}
.photo-ph svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--text-3); }
.photo-ph b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.photo-ph small {
  font-family: var(--font-label);
  font-stretch: 125%;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Event pass ---------- */
.pass-shadow { filter: drop-shadow(0 32px 40px rgba(14, 15, 20, 0.26)) drop-shadow(0 4px 10px rgba(14, 15, 20, 0.12)); }
.pass {
  --stub: 116px;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: var(--r-xl);
  color: var(--on-ink);
  overflow: hidden;
  /* Ticket notches where the stub tears off */
  -webkit-mask:
    radial-gradient(circle 12px at 0 calc(100% - var(--stub)), transparent 97%, #000 100%) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% calc(100% - var(--stub)), transparent 97%, #000 100%) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 12px at 0 calc(100% - var(--stub)), transparent 97%, #000 100%) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% calc(100% - var(--stub)), transparent 97%, #000 100%) right / 51% 100% no-repeat;
}
.pass > * { position: relative; }
.pass > .pass-glow {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 300px;
  height: 250px;
  background: var(--aurora);
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.6;
  pointer-events: none;
}
/* Glare that follows the pointer while the pass tilts */
.pass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.is-tilting .pass::after { opacity: 1; }
.pass-main { padding: 24px 24px 24px; }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-top .partner-stack { --dot: 14px; --ring: var(--ink); }
.pass .eyebrow { color: var(--on-ink-3); font-size: 0.625rem; }
.pass-kicker { margin: 30px 0 0 !important; }
.pass-venue {
  margin: 6px 0 0;
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.pass-sub { margin: 6px 0 0; font-size: 0.9375rem; color: var(--on-ink-2); }
.pass-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-ink);
}
.pass-fields dd { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; }
.pass-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--stub);
  padding: 18px 24px;
  background: var(--ink-2);
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
}
.pass-stub > div { min-width: 0; }
.pass-guest {
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pass-guest.is-empty { color: var(--on-ink-3); }
.pass-company { margin: 4px 0 0 !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pass-barcode { flex-shrink: 0; width: 88px; height: 44px; color: var(--on-ink); }

/* ---------- Interactions (interactions.js) ---------- */

/* Cursor: a whiskey glass in ink. It's a real system cursor, so it tracks the mouse exactly;
   interactions.js only adds the ring that eases in over links and buttons, and the labels. */
:root {
  --cursor-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 4h18l-2.1 19.4a2 2 0 0 1-2 1.8H9.1a2 2 0 0 1-2-1.8L5 4z' fill='%23fff' stroke='%230E0F14' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M6.3 12.5h15.4l-1.25 10.7a1 1 0 0 1-1 .9H8.55a1 1 0 0 1-1-.9z' fill='%230E0F14'/%3E%3Crect x='10.2' y='9.4' width='6.4' height='6.4' rx='1.3' transform='rotate(-14 13.4 12.6)' fill='%23fff' stroke='%230E0F14' stroke-width='1.4'/%3E%3C/svg%3E") 5 4;
}
html { cursor: var(--cursor-glass), auto; }
a, button, summary, label, [role="button"], .chip input, .btn, .text-link, button.photo, .hex, .lightbox-btn {
  cursor: var(--cursor-glass), pointer !important;
}
input:not([type="radio"]):not([type="checkbox"]), textarea { cursor: text !important; }
.btn[disabled] { cursor: progress !important; }
.cursor {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor.on { opacity: 1; }
.cursor.on.is-text { opacity: 0; }
.cursor > * { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.2s ease, scale 0.35s var(--ease-out);
}
.cursor-label span {
  display: block;
  padding: 10px 15px;
  translate: 18px -50%;
  background: var(--ink);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  color: var(--white);
  font: 600 0.625rem/1 var(--font-label);
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.2s ease, scale 0.35s var(--ease-out);
}
.cursor.is-hover .cursor-ring { opacity: 1; scale: 1; }
.cursor.is-down .cursor-ring { scale: 0.8; }
.cursor.is-label .cursor-label span { opacity: 1; scale: 1; }

/* Reveal on scroll (only once the script confirms it can run) */
.can-reveal .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.can-reveal .reveal.in { opacity: 1; translate: 0 0; }

/* Spotlight: an aurora glow that follows the pointer inside [data-spotlight] children */
[data-spotlight] > * { position: relative; isolation: isolate; }
[data-spotlight] > *::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(132, 104, 210, 0.16), transparent 70%),
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(211, 253, 99, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
[data-spotlight] > *:hover::before { opacity: 1; }

/* Photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(14, 15, 20, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox-panel { display: grid; gap: 14px; width: min(1100px, 100%); }
.lightbox-stage .photo {
  width: min(100%, calc(74vh * 1.5));
  aspect-ratio: 3 / 2;
  margin-inline: auto;
  border-color: transparent;
  border-radius: var(--r-xl);
}
.lightbox-stage .photo img { object-fit: contain; transform: none; }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, calc(74vh * 1.5));
  margin-inline: auto;
  color: var(--on-ink);
}
.lightbox-caption { margin: 0; font-weight: 500; }
.lightbox-count { color: var(--on-ink-3); font-variant-numeric: tabular-nums; }
.lightbox-nav { display: flex; align-items: center; gap: 8px; }
.lightbox-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  color: var(--on-ink);
  font: 500 1rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-btn:focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) .lightbox-panel { animation: lightbox-in 0.4s var(--ease-out) both; }
  @keyframes lightbox-in { from { opacity: 0; scale: 0.96; } }
}

/* Celebration burst after an RSVP */
.burst-dot {
  position: fixed;
  z-index: 950;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--white);
  pointer-events: none;
}
