:root {
  --identity-font-display: Antonio, 'Arial Narrow', sans-serif;
  --identity-font-accent: Titania, Georgia, serif;
  --identity-font-body: Inter, Arial, sans-serif;
  --identity-font-serif: 'Instrument Serif', Georgia, serif;

  --identity-type-event-title-wide: 3.5rem;
  --identity-type-event-title-large: 3rem;
  --identity-type-event-title-medium: 2.5rem;
  --identity-type-event-title-small: 2rem;
  --identity-type-event-title-mobile: 2.9375rem;
  --identity-type-event-title-compact: 2.625rem;
  --identity-type-event-title-narrow: 2.25rem;
  --identity-type-presenter-mobile: 1.75rem;
  --identity-type-accent-label: 1.125rem;
  --identity-type-body: 1rem;
  --identity-type-fineprint: 0.75rem;
  --identity-type-event-supporting: 0.875rem;
  --identity-type-event-body: 1rem;
  --identity-type-event-emphasis: 1.25rem;
  --identity-type-event-fact: clamp(1rem, calc(2vw - 0.125rem), 1.5rem);
  --identity-type-event-fact-mobile: clamp(0.925rem, calc(4.2vw - 0.125rem), 1.5rem);
  --identity-type-section-heading-mobile: 1.875rem;
  --identity-type-section-heading-wide: 1.875rem;
  --identity-type-event-title-serif: 2.375rem;
  --identity-type-event-title-serif-wide: 2.85rem;
  --identity-type-cta-mobile: 0.875rem;
  --identity-type-section-heading-large-mobile: 2.25rem;
  --identity-type-section-heading-large-wide: 2.5rem;
  --identity-type-ticket-title: 1.5rem;
  --identity-type-ticket-title-wide: 1.875rem;
  --identity-type-ticket-meta: 0.8125rem;
  --identity-type-step-label: 0.6875rem;
  --identity-type-hero-ribbon: 1.125rem;
  --identity-weight-display-heading: 600;
  --identity-weight-section-heading: 400;
  --identity-weight-cta: 500;
  --identity-weight-badge: 500;
  --identity-weight-hero-ribbon: 300;
  --identity-tracking-section-heading: -0.005em;
  --identity-tracking-serif-title: -0.01em;
  --identity-tracking-hero-ribbon: 0.06em;

  --identity-space-event-intro-top-wide: 3.25rem;
  --identity-size-step-marker: 1.375rem;
  --identity-size-checkout-thumbnail: 4.5rem;
  --identity-hero-poster-aspect: 4 / 5;
  --identity-hero-fade-height: 22%;
  --identity-hero-ribbon-top: 1.95rem;
  --identity-hero-ribbon-end: -3.425rem;
  --identity-hero-ribbon-width: 13.5rem;
  --identity-hero-ribbon-padding-block: 0.65rem;
  --identity-badge-padding-block: 0.25rem;
  --identity-badge-padding-inline: 0.625rem;
  --identity-badge-radius: 0.125rem;

  --identity-surface-forest-base-rgb: 10 10 10;
  --identity-surface-forest-base: rgb(var(--identity-surface-forest-base-rgb));
  --identity-surface-forest-shadow: #000;
  --identity-surface-forest-sticky: rgb(10 10 10 / 0.92);

  --identity-text-primary: #f8f6f0;
  --identity-text-secondary: rgb(248 246 240 / 0.88);
  --identity-text-tertiary: rgb(248 246 240 / 0.72);
  --identity-text-muted: rgb(248 246 240 / 0.58);
  --identity-text-faint: rgb(248 246 240 / 0.44);
  --identity-text-inverse: #0a0a0a;
  --identity-accent-label-background: var(--identity-avatar-sage);
  --identity-accent-label-text: #fff;
  --identity-link: var(--identity-avatar-sage);
  --identity-link-hover: #7cc2b4;
  --identity-avatar-rose: #c26a7a;
  --identity-avatar-lavender: #8a74b8;
  --identity-avatar-slate: #5a7fb0;
  --identity-avatar-sage: #4f9a8c;
  --identity-avatar-ochre: #b98240;
  --identity-action-primary-background: #fff;
  --identity-action-primary-hover: #ededed;
  --identity-action-primary-text: var(--identity-text-inverse);
  --identity-cta-loading-nudge: 0.375rem;
  --identity-border-faint: rgb(255 255 255 / 0.08);
  --identity-border-subtle: rgb(255 255 255 / 0.14);
  --identity-border-strong: rgb(255 255 255 / 0.34);
  --identity-border-rose-subtle: rgb(148 107 118 / 0.15);
  --identity-border-rose-hover: rgb(148 107 118 / 0.4);
  --identity-divider: rgb(255 255 255 / 0.12);
  --identity-surface-raised: rgb(255 255 255 / 0.04);
  --identity-surface-hover: rgb(255 255 255 / 0.08);
  --identity-badge-text: #e4bcc6;
  --identity-badge-background: rgb(200 149 162 / 0.16);
  --identity-badge-border: rgb(200 149 162 / 0.38);
  --identity-hero-ribbon-background: rgb(18 18 18 / 0.72);
  --identity-hero-ribbon-background-hover: rgb(18 18 18 / 0.88);
  --identity-shadow-cta: 0 8px 20px rgb(255 255 255 / 0.06);
}

.identity-loading-cta {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.identity-loading-cta-label {
  grid-column: 2;
  grid-row: 1;
  transition: transform 160ms ease;
}

.identity-loading-cta.is-loading .identity-loading-cta-label {
  transform: translateX(var(--identity-cta-loading-nudge));
}

.identity-loading-cta.is-loading::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.125rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: identity-cta-spin 700ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .identity-loading-cta-label { transition: none; }
  .identity-loading-cta.is-loading::before { animation: none; }
}

.identity-event-title {
  color: var(--identity-text-primary);
  font-family: var(--identity-font-body);
  font-size: var(--identity-type-event-title-mobile);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.identity-event-presenter {
  color: var(--identity-text-primary);
  font-family: var(--identity-font-body);
  font-size: var(--identity-type-presenter-mobile);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.identity-accent-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--identity-accent-label-background);
  color: var(--identity-accent-label-text);
  font-family: var(--identity-font-body);
  font-size: calc(var(--identity-type-body) - 2px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.identity-accent-label-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.identity-section-heading {
  color: var(--identity-text-primary);
  font-family: var(--identity-font-serif);
  font-size: var(--identity-type-section-heading-mobile);
  font-weight: var(--identity-weight-section-heading);
  letter-spacing: var(--identity-tracking-section-heading);
  line-height: 1.2;
}

.identity-section-heading-large { font-size: var(--identity-type-section-heading-large-mobile); }

.identity-event-title-serif {
  color: var(--identity-text-primary);
  font-family: var(--identity-font-serif);
  font-size: var(--identity-type-event-title-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.identity-sticky-fade {
  background: linear-gradient(to top, var(--identity-surface-forest-shadow), transparent);
}

.identity-sticky-surface {
  background: var(--identity-surface-forest-sticky);
}

@media (max-width: 360px) {
  .identity-event-title { font-size: var(--identity-type-event-title-compact); }
}

@media (min-width: 640px) {
  .identity-event-title { font-size: var(--identity-type-event-title-wide); }
  .identity-section-heading { font-size: var(--identity-type-section-heading-wide); }
  .identity-section-heading-large { font-size: var(--identity-type-section-heading-large-wide); }
}

@media (min-width: 1024px) {
  .identity-event-title-serif { font-size: var(--identity-type-event-title-serif-wide); }
}

/* The opening title and event details settle into place
   once when the page opens. A CSS animation of opacity and transform runs off the
   main thread, so it stays smooth while the rest of the page is still loading. The
   short delay lets the first paint finish before it starts. The reduced-motion rule
   in index.css makes it instant for visitors who ask for less motion. */
@keyframes identity-page-entrance {
  from { opacity: 0; transform: translateY(12px); }
}

.identity-page-entrance {
  animation: identity-page-entrance 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s both;
}

/* Mobile event hero: the photo dissolves into the page background. The stops
   follow an ease-in-out curve so the fade has no visible starting line. */
.identity-hero-fade {
  background: linear-gradient(
    to bottom,
    rgb(var(--identity-surface-forest-base-rgb) / 0) 0%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.013) 8.1%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.049) 15.5%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.104) 22.5%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.175) 29%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.259) 35.3%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.352) 41.2%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.45) 47.1%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.55) 52.9%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.648) 58.8%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.741) 64.7%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.825) 71%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.896) 77.5%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.951) 84.5%,
    rgb(var(--identity-surface-forest-base-rgb) / 0.987) 91.9%,
    var(--identity-surface-forest-base) 100%
  );
}
