/* Tokens */
:root {
  color-scheme: dark;
  --bg: #0a0908;
  --bg-raised: #13110e;
  --bg-input: #0d0c0a;
  --line: rgba(232, 214, 178, 0.11);
  --line-strong: rgba(232, 214, 178, 0.22);
  --text: #f4efe6;
  --text-muted: #a8a093;
  --text-faint: #6f685d;
  --gold: #d8b46a;
  --gold-bright: #f0d595;
  --gold-deep: #b08a45;
  --gold-wash: rgba(216, 180, 106, 0.09);
  --danger: #ec8a76;
  --danger-wash: rgba(236, 138, 118, 0.1);
  --success: #93d3a0;
  --success-wash: rgba(147, 211, 160, 0.1);
  --cream: #f6efe1;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

::selection {
  background: rgba(216, 180, 106, 0.35);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #17120a;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
}

.muted-strong {
  color: #cfc7b9;
  font-size: 17px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    filter 160ms var(--ease),
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--gold-bright), #cfa457);
  color: #1a140a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 30px -12px rgba(216, 180, 106, 0.65);
}

.button-primary:hover {
  filter: brightness(1.06);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--gold);
}

.button-danger {
  border-color: rgba(236, 138, 118, 0.5);
  background: var(--danger-wash);
  color: var(--danger);
}

.button-danger:hover {
  border-color: var(--danger);
}

.button-small {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 14px;
}

.button-large {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 16px;
}

.button-block {
  width: 100%;
}

.button[disabled],
.button[aria-busy='true'] {
  cursor: progress;
  filter: saturate(0.6) brightness(0.85);
}

.button[aria-busy='true']::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

/* Hero */
.hero {
  position: relative;
  padding: 116px 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(52rem 36rem at 78% 8%, rgba(216, 180, 106, 0.17), transparent 62%),
    radial-gradient(36rem 28rem at 4% 40%, rgba(216, 180, 106, 0.06), transparent 65%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'intro video'
    'body video';
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 28px;
  align-items: start;
}

.hero-intro {
  grid-area: intro;
  align-self: end;
  padding-top: clamp(8px, 4vw, 48px);
}

.hero-video {
  grid-area: video;
}

.hero-body {
  grid-area: body;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2.2s var(--ease) infinite;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(3.4rem, 8.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-title em {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(100deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #d8d0c2;
  font-weight: 500;
}

.hero-meta li + li::before {
  content: '·';
  margin: 0 12px;
  color: var(--gold);
}

.lede {
  max-width: 34rem;
  color: #cfc7b9;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin-top: 36px;
}

.countdown-unit {
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  text-align: center;
}

.countdown-unit span {
  display: block;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.countdown-unit small {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Video */
.vsl {
  margin: 0;
  width: clamp(270px, 29vw, 360px);
}

.vsl-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(240, 213, 149, 0.75), rgba(216, 180, 106, 0.08) 40%, rgba(216, 180, 106, 0.4));
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.018),
    0 50px 120px -30px rgba(216, 180, 106, 0.38),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.vsl-frame video {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  background: #000;
  object-fit: cover;
}

.vsl-sound {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border: 1px solid rgba(240, 213, 149, 0.55);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.62);
  color: var(--text);
  font: 600 14px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 160ms var(--ease);
}

.vsl-sound:hover {
  background: rgba(10, 9, 8, 0.8);
}

.vsl-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), #cfa457);
}

.vsl-play::before {
  content: '';
  margin-left: 3px;
  border-left: 10px solid #1a140a;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.vsl-play::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2s var(--ease) infinite;
}

.vsl-caption {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sessions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.session-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}

.session-card p:not(.session-time, .session-tag) {
  color: #c9c1b3;
}

.session-card-vip {
  border-color: rgba(216, 180, 106, 0.35);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(216, 180, 106, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.session-time {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
}

.session-dash {
  margin: 0 0.18em;
  color: var(--gold-deep);
}

.session-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.session-tag {
  justify-self: start;
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(40px, 6vw, 64px) 0 0;
}

.details > div {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.details dt {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  color: #d8d0c2;
  font-size: 15px;
}

/* RSVP */
.section-rsvp {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(44rem 30rem at 12% 20%, rgba(216, 180, 106, 0.08), transparent 65%),
    var(--bg-raised);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.rsvp-intro {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 40px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: #d8d0c2;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%231a140a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--gold);
}

.existing-pass {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: var(--radius);
  background: var(--gold-wash);
}

.rsvp-form {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, #171410, #110f0c);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}

.form-step {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-step + .form-step {
  padding-top: 24px;
}

.form-step legend {
  display: flex;
  align-items: center;
  gap: 12px;
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
}

.form-step legend + * {
  clear: both;
}

.step {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(216, 180, 106, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.session-options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  cursor: pointer;
}

.option input,
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.option:hover .option-body {
  border-color: rgba(216, 180, 106, 0.5);
}

.option-text {
  display: grid;
  gap: 2px;
}

.option-title {
  font-weight: 600;
}

.option-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.option-check {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: all 160ms var(--ease);
}

.option input:checked + .option-body {
  border-color: var(--gold);
  background: var(--gold-wash);
}

.option input:checked + .option-body .option-check {
  border-color: var(--gold);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%231a140a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--gold);
}

.option input:focus-visible + .option-body {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.option input[aria-invalid='true'] + .option-body {
  border-color: rgba(236, 138, 118, 0.6);
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.field label {
  color: #ddd5c7;
  font-size: 14px;
  font-weight: 500;
}

.optional {
  margin-left: 6px;
  color: var(--text-faint);
  font-weight: 400;
}

input:not([type='checkbox']),
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text);
  font: 16px/1.4 var(--font-body);
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

textarea {
  min-height: 76px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:not([type='checkbox']):focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.18);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: rgba(236, 138, 118, 0.7);
}

.field-hint {
  color: var(--text-faint);
  font-size: 13px;
}

.field-error {
  display: flex;
  gap: 8px;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 500;
}

.field-error::before {
  content: '!';
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger-wash);
  font-size: 12px;
  font-weight: 700;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #ddd5c7;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 160ms var(--ease);
}

.check input:checked {
  border-color: var(--gold);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3 3 7-7' fill='none' stroke='%231a140a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--gold);
}

.check input[aria-invalid='true'] {
  border-color: var(--danger);
}

.check-age {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  cursor: pointer;
}

.switch-track {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-input);
  transition: all 200ms var(--ease);
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 200ms var(--ease);
}

.switch input:checked + .switch-track {
  border-color: var(--gold);
  background: var(--gold);
}

.switch input:checked + .switch-track::after {
  left: 21px;
  background: #1a140a;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.plus-one-fields {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: var(--radius);
  background: var(--gold-wash);
  animation: reveal 260ms var(--ease);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-form .button-block {
  margin-top: 18px;
}

.form-message {
  padding: 12px 14px;
  border: 1px solid rgba(236, 138, 118, 0.4);
  border-radius: 12px;
  background: var(--danger-wash);
  color: var(--danger);
  font-size: 14px;
}

.fine-print {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details p {
  max-width: 38rem;
  padding: 0 0 22px;
  color: #c9c1b3;
}

/* Footer */
.site-footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner .wordmark {
  color: var(--text);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
}

/* Pass */
.page-pass {
  background:
    radial-gradient(40rem 30rem at 50% -10%, rgba(216, 180, 106, 0.16), transparent 65%),
    var(--bg);
}

.pass-page {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  align-content: start;
}

.pass-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.pass-intro h1 {
  font-size: clamp(2.6rem, 9vw, 3.4rem);
}

.pass-intro p {
  max-width: 24rem;
  color: #cfc7b9;
}

.pass-intro .button {
  margin-top: 12px;
}

.pass-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M18 29l7 7 13-15' fill='none' stroke='%231a140a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 56px no-repeat,
    linear-gradient(180deg, var(--gold-bright), #cfa457);
  box-shadow: 0 16px 40px -12px rgba(216, 180, 106, 0.7);
  animation: pop 500ms var(--ease);
}

.ticket {
  position: relative;
  width: 100%;
  border: 1px solid rgba(216, 180, 106, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(26rem 14rem at 100% 0%, rgba(216, 180, 106, 0.14), transparent 70%),
    linear-gradient(180deg, #1a1712, #110f0c);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.ticket-head {
  display: grid;
  gap: 8px;
  padding: 26px 26px 0;
}

.ticket-head h2 {
  font-size: 2.2rem;
}

.ticket-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Student, free and staff passes each get their own label colour. */
.pass-kind {
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.pass-kind-student {
  background: linear-gradient(180deg, var(--gold-bright), #cfa457);
  color: #1a140a;
}

.pass-kind-free {
  border-color: var(--line-strong);
  color: var(--text);
}

.pass-kind-staff {
  background: var(--cream);
  color: var(--bg);
}

.guests .pass-kind {
  display: inline-block;
  margin-top: 6px;
}

.wallet-badge {
  display: inline-block;
  line-height: 0;
}

.wallet-badge img {
  width: auto;
  height: 50px;
}

.ticket-date {
  color: #d8d0c2;
  font-weight: 500;
}

.ticket-details {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 22px 26px 26px;
}

.ticket-details dt,
.guest-details dt {
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket-details dd,
.guest-details dd {
  margin: 0;
  font-weight: 500;
}

.ticket-details dd .muted {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
}

.session-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-list {
  gap: 12px;
}

.session-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 12px;
}

.session-venue {
  flex-basis: 100%;
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
}

.ticket-tear {
  position: relative;
  height: 0;
  margin: 0 18px;
  border-top: 2px dashed var(--line-strong);
}

.ticket-tear::before,
.ticket-tear::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.32);
  clip-path: inset(0 0 0 50%);
}

.ticket-tear::before {
  left: -31px;
}

.ticket-tear::after {
  right: -31px;
  clip-path: inset(0 50% 0 0);
}

.ticket-qr {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px;
}

.qr {
  width: 100%;
  max-width: 220px;
  padding: 18px;
  border-radius: 18px;
  background: var(--cream);
}

.qr svg {
  width: 100%;
  height: auto;
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.pass-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.pass-actions .button {
  flex: 1 1 180px;
}

.pass-cancel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 8px;
  text-align: center;
  font-size: 14px;
}

.confirm-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Admin */
.page-admin {
  background: var(--bg);
}

.admin {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.admin-head h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 10px;
}

.search {
  flex: 1 1 320px;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.toggle-inline input {
  accent-color: var(--gold);
}

.results-count {
  margin-bottom: 12px;
  font-size: 13px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
}

.guests {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.guests th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.guests td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.guests tr:last-child td {
  border-bottom: 0;
}

.guests td > a,
.guests td > .muted {
  display: block;
}

.guests td a {
  text-decoration: none;
}

.guests td a:hover {
  text-decoration: underline;
}

.guest-name {
  font-weight: 600;
}

.guests .mono {
  font-size: 12px;
  white-space: nowrap;
}

.guests:not(.show-cancelled) tr[data-status='cancelled'],
.guests tr.is-filtered-out {
  display: none;
}

.guests tr[data-status='cancelled'] td {
  opacity: 0.55;
}

.chips,
.check-ins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-gold {
  border-color: rgba(216, 180, 106, 0.5);
  color: var(--gold);
}

.chip-danger {
  border-color: rgba(236, 138, 118, 0.5);
  color: var(--danger);
}

.check-in {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 13px/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: all 160ms var(--ease);
}

.check-in:hover {
  border-color: var(--gold);
}

.check-in.is-checked {
  border-color: rgba(147, 211, 160, 0.5);
  background: var(--success-wash);
  color: var(--success);
}

.check-in[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}

.empty {
  display: grid;
  gap: 8px;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty h2 {
  font-size: 2rem;
}

.admin-guest {
  max-width: 560px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
}

.banner-danger {
  border: 1px solid rgba(236, 138, 118, 0.5);
  background: var(--danger-wash);
  color: var(--danger);
}

.guest-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-raised);
}

.guest-card h1 {
  font-size: clamp(2.4rem, 8vw, 3.2rem);
}

.guest-plus-one {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 180, 106, 0.3);
  border-radius: var(--radius);
  background: var(--gold-wash);
}

.guest-plus-one h2 {
  font-size: 1.9rem;
}

.check-in-big .check-in {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.guest-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guest-details dd {
  overflow-wrap: anywhere;
}

.guest-card .pass-cancel {
  justify-items: start;
  text-align: left;
}

/* Animation */
@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1040px) {
}

@media (max-width: 860px) {
  .hero {
    padding-top: 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'video'
      'body';
    grid-template-rows: auto;
    row-gap: 36px;
  }

  .hero-intro {
    padding-top: 0;
  }

  .hero-video {
    justify-self: center;
  }

  .vsl {
    width: min(340px, 82vw);
  }

  .sessions,
  .rsvp-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsvp-intro {
    position: static;
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-cta {
    position: fixed;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border: 1px solid rgba(216, 180, 106, 0.35);
    border-radius: 999px;
    background: rgba(19, 17, 14, 0.82);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 24px));
    transition: transform 280ms var(--ease);
  }

  .sticky-cta.is-visible {
    transform: none;
  }

  .sticky-cta-text {
    display: grid;
    line-height: 1.3;
  }

  .sticky-cta-text strong {
    font-size: 14px;
  }

  .sticky-cta-text span {
    color: var(--text-muted);
    font-size: 12px;
  }

  /* Guest list rows become cards on phones, for the door. */
  .table-wrap {
    border: 0;
    overflow: visible;
  }

  .guests thead {
    display: none;
  }

  .guests,
  .guests tbody,
  .guests tr,
  .guests td {
    display: block;
  }

  .guests tr {
    margin-bottom: 12px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
  }

  .guests td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
  }

  .guests td::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .guests tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  .guests td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .hero {
    padding-top: 84px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 13.5vw, 3.6rem);
  }

  /* Every item gets a dot when the line wraps, so no line starts with a stray separator. */
  .hero-meta {
    column-gap: 16px;
    font-size: 15px;
  }

  .hero-meta li::before,
  .hero-meta li + li::before {
    content: '·';
    margin: 0 6px 0 0;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .countdown {
    gap: 8px;
  }

  .session-options,
  .field-row,
  .details,
  .guest-details {
    grid-template-columns: minmax(0, 1fr);
  }


  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.send-ticket {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.send-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Sign-in, setup and invite pages */
.page-auth {
  background:
    radial-gradient(40rem 30rem at 50% -10%, rgba(216, 180, 106, 0.14), transparent 65%),
    var(--bg);
}

.auth {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 28px;
  min-height: 100vh;
  padding: 28px var(--gutter) 48px;
}

.auth-card {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin-top: clamp(8px, 8vh, 72px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, #171410, #110f0c);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}

.auth-card h1 {
  font-size: clamp(2.4rem, 8vw, 3rem);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-note {
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

/* Signed-in bar */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.admin-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--text);
}

.admin-nav a[aria-current='page'] {
  background: var(--gold-wash);
  color: var(--gold);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.admin-user-name .muted {
  margin-left: 4px;
}

/* Team page */
.team-invite,
.activity {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.team-invite h2,
.activity h2 {
  font-size: 1.8rem;
}

.invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 140px auto;
  align-items: end;
  gap: 12px;
}

select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text);
  font: 16px/1.4 var(--font-body);
}

.invite-link {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: var(--radius);
  background: var(--gold-wash);
}

.invite-link-row {
  display: flex;
  gap: 10px;
}

.invite-link-row input {
  font-family: var(--font-mono);
  font-size: 13px;
}

.team {
  margin-bottom: 32px;
}

.activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.activity-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 860px) {
  .invite-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .admin-user-name {
    display: none;
  }
}

/* Public event page and free tickets */
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 26px;
  border: 1px dashed rgba(216, 180, 106, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
}

.status-note {
  max-width: 30rem;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.ticket-preview {
  width: clamp(280px, 30vw, 360px);
  transform: rotate(2deg);
}

.ticket-preview .ticket-head h2 {
  font-size: 2rem;
}

.ticket-preview .qr {
  max-width: 170px;
}

.hero-title-public em {
  font-size: 0.62em;
  line-height: 1.05;
}

.hero-meta-stacked {
  display: grid;
  gap: 4px;
}

.hero-meta-stacked li::before,
.hero-meta-stacked li + li::before {
  content: '·';
  margin: 0 8px 0 0;
  color: var(--gold);
}

.rsvp-closed {
  align-content: start;
  gap: 14px;
}

.rsvp-closed h2,
.rsvp-closed h3 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.rsvp-closed .button {
  justify-self: start;
}

.site-header-static {
  position: static;
}

.tickets-main {
  min-height: 70vh;
  border-top: 0;
}

.tickets-title {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.page-tickets .hero-meta {
  margin-top: 4px;
}

.word-input {
  font-family: var(--font-mono) !important;
  font-size: 24px !important;
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
}

/* Guest page: manage section */
.manage {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.manage-action {
  display: grid;
  gap: 8px;
}

/* Settings */
.settings {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.settings-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.settings-card h2 {
  font-size: 1.9rem;
}

.settings-card .session-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
}

.settings-link code {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-input);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.settings-save {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-saved {
  color: var(--success);
  font-weight: 600;
}

/* Team invite QR */
.invite-link-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.invite-qr {
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
}

.invite-qr svg {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .ticket-preview {
    transform: none;
  }

  .settings-card .session-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .invite-link-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .invite-qr {
    max-width: 180px;
  }
}
