/* ==========================================================================
   Glasgow CEOs & Founders Meet & Greet
   "Mackintosh at dusk": aubergine night, lilac mist, chalk, one rose accent.
   Signature: the square lattice (100 seats, one is yours).
   ========================================================================== */

:root {
  --night: #22112a;
  --night-2: #2e1a37;
  --heather: #6b4a7a;
  --mist: #dcd3e8;
  --mist-soft: #e9e3f0;
  --chalk: #f2f1ec;
  --rose: #e2566d;
  --rose-deep: #c43d55;
  --ink: #1b1320;
  --ink-soft: #5a4d63;
  --line: rgba(34, 17, 42, 0.14);
  --line-light: rgba(220, 211, 232, 0.18);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --header-h: 4.75rem;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-top: var(--header-h);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: inherit;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

::selection {
  background: var(--rose);
  color: var(--night);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--rose);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bracket {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--heather);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heather);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

/* small Mackintosh square before every eyebrow */
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--rose);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.section-title--wide {
  max-width: 24ch;
}

.section-title em,
.hero-title em,
.final-title em {
  font-style: normal;
  color: var(--rose);
}

.section-intro {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 34rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 36rem;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose .btn {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--rose);
  color: var(--night);
}

.btn--primary:hover {
  background: #ec6e83;
}

.btn--dark {
  background: var(--night);
  color: var(--chalk);
}

.btn--dark:hover {
  background: var(--night-2);
}

.btn--ghost {
  border-color: var(--line-light);
  color: var(--chalk);
}

.btn--ghost:hover {
  border-color: var(--mist);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  background: var(--rose);
  color: var(--night);
}

.btn--small:hover {
  background: #ec6e83;
}

.btn--large {
  min-height: 3.75rem;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--chalk);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}

.logo-img {
  height: 3rem;
  width: auto;
}

.footer-logo {
  display: inline-flex;
  padding: 0.6rem 0.8rem;
  background: var(--chalk);
  border-radius: var(--radius);
}

.footer-logo img {
  height: 2.25rem;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.btn--cta-header[hidden] {
  display: none;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--night);
  color: var(--chalk);
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a:not(.btn) {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 2rem;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--night);
  color: var(--chalk);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 3rem;
  align-items: end;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.9rem, 7.2vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--mist);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-free {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mist);
}

.hero-portrait {
  position: relative;
  max-width: 26rem;
  justify-self: start;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  background: var(--night-2);
  filter: saturate(0.92);
}

/* lattice detail stepping off the portrait corner */
.hero-portrait::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 4.25rem;
  height: 4.25rem;
  background-image:
    linear-gradient(var(--rose), var(--rose)),
    linear-gradient(var(--mist), var(--mist)),
    linear-gradient(var(--mist), var(--mist)),
    linear-gradient(var(--mist), var(--mist)),
    linear-gradient(var(--mist), var(--mist)),
    linear-gradient(var(--mist), var(--mist));
  background-size: 1.25rem 1.25rem;
  background-repeat: no-repeat;
  background-position:
    100% 0,
    50% 0,
    100% 50%,
    0 0,
    100% 100%,
    50% 50%;
  opacity: 0.95;
  z-index: 1;
}

.hero-portrait figcaption {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-portrait-name {
  font-weight: 600;
}

.hero-portrait-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist);
}

/* Ticket strip */
.ticket {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 0;
}

.ticket-facts,
.ticket-count {
  border-top: 1px solid var(--line-light);
  padding: 1.25rem 0;
}

.ticket-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}

.ticket-facts dt,
.ticket-count-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.8;
}

.ticket-facts dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.1;
}

.ticket-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.countdown-grid {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
}

.countdown-num {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}

.countdown-cap {
  font-size: 0.8125rem;
  color: var(--rose);
  margin-left: 0.1rem;
}

/* Hero load sequence */
.hero-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.hero.is-loaded .hero-reveal {
  animation: rise 0.9s var(--ease) forwards;
}

.hero.is-loaded .hero-kicker { animation-delay: 0.05s; }
.hero.is-loaded .hero-title { animation-delay: 0.15s; }
.hero.is-loaded .hero-sub { animation-delay: 0.3s; }
.hero.is-loaded .hero-actions { animation-delay: 0.4s; }
.hero.is-loaded .hero-portrait { animation-delay: 0.25s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-inner + .section-inner {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.section--chalk {
  background: var(--chalk);
}

.section--mist {
  background: var(--mist-soft);
}

.section--heather {
  background: var(--heather);
  color: var(--chalk);
}

.section--night {
  background: var(--night);
  color: var(--chalk);
}

.section--rose {
  background: var(--rose);
  color: var(--night);
}

/* light-on-dark adjustments */
.section--night .eyebrow,
.section--heather .eyebrow {
  color: var(--mist);
}

.section--night .section-intro,
.section--night .prose,
.section--heather .section-intro,
.section--heather .prose {
  color: var(--mist);
}

.section--heather .prose {
  color: var(--chalk);
}

.section--heather .eyebrow::before {
  background: var(--chalk);
}

.split {
  display: grid;
  gap: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hook */
.hook .section-inner {
  max-width: 64rem;
}

.hook-text {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.hook-turn {
  font-weight: 700;
  color: var(--rose-deep);
}

.hook-body {
  margin-top: 2rem;
  max-width: 40rem;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* Problem statements */
.statement-list {
  border-top: 1px solid var(--line-light);
}

.statement-list li {
  padding: 1.35rem 0 1.35rem 2rem;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.statement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--rose);
}

.pull-quote {
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--rose);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  max-width: 30ch;
  text-wrap: balance;
}

/* Audience fit */
.fit-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.fit-card {
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.fit-card--yes {
  background: var(--chalk);
}

.fit-card--no {
  background: transparent;
  border: 1px solid var(--line);
}

.fit-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--heather);
}

.fit-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--line);
}

.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.fit-card--yes .fit-list li::before {
  content: "✓";
  color: var(--rose-deep);
}

.fit-card--no .fit-list li {
  color: var(--ink-soft);
}

.fit-card--no .fit-list li::before {
  content: "×";
  color: var(--heather);
}

/* Gains */
.gain-grid {
  margin: 3.5rem 0 3rem;
  display: grid;
  border-top: 1px solid var(--line-light);
}

.gain-grid li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-light);
}

.gain-grid h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.gain-grid p {
  color: var(--mist);
  max-width: 28rem;
}

/* Host */
.host {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.host-figure {
  position: relative;
  max-width: 28rem;
}

.host-figure img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--night);
}

.host-badge {
  padding: 1rem 1.15rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--night);
  color: var(--chalk);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.15;
}

.host-badge span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}

.host-copy .prose {
  margin-top: 2rem;
}

.host-turn {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  padding: 0.5rem 0;
}

/* Experience run sheet */
.experience {
  display: grid;
  gap: 3rem;
}

.run-sheet {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-light);
}

.run-sheet li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-light);
}

.run-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--rose);
  padding-top: 0.2rem;
}

.run-body {
  color: var(--mist);
}

.run-body strong {
  display: block;
  font-weight: 600;
  color: var(--chalk);
  font-size: 1.0625rem;
}

.venue-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--night-2);
}

.venue-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist);
}

/* Proof */
.stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.stats li {
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--night);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.quotes {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--mist-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.quote p {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.quote p {
  position: relative;
}

.quote p::before {
  content: "“";
  position: absolute;
  right: 100%;
  padding-right: 0.08em;
  color: var(--rose-deep);
}

.quote p::after {
  content: "”";
  color: var(--rose-deep);
}

.quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote cite {
  font-style: normal;
  font-weight: 600;
}

.quote footer span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.source-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Signature: the 100-seat lattice
   -------------------------------------------------------------------------- */

.seats {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.seat-lattice {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 0.9vw, 8px);
  width: 100%;
  max-width: 30rem;
}

.seat {
  aspect-ratio: 1;
  border: 1.5px solid var(--heather);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 9ms);
}

.seat--yours {
  background: var(--rose);
  border-color: var(--rose);
}

.is-visible .seat {
  opacity: 1;
  transform: none;
}

.is-visible .seat--yours {
  animation: pulse 2.4s ease-in-out 1.4s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(226, 86, 109, 0.22);
  }
}

.seat-facts {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.seat-facts li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.seat-facts strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Registration
   -------------------------------------------------------------------------- */

.register-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.register-pass {
  margin-top: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line-light);
  border-radius: var(--radius);
}

.register-pass span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}

.register-pass span:last-child {
  text-transform: none;
  letter-spacing: 0;
}

.register-pass strong {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 0.95;
  color: var(--rose);
}

.register-form-wrap {
  background: var(--chalk);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.register-form-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--heather);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 0 1rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.register-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.register-form input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(34, 17, 42, 0.22);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.register-form input:hover {
  border-color: var(--heather);
}

.register-form input:focus {
  outline: none;
  border-color: var(--night);
  box-shadow: 0 0 0 3px rgba(226, 86, 109, 0.35);
}

.register-form input.is-invalid {
  border-color: var(--rose-deep);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--rose-deep);
}

.field-error:empty {
  display: none;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(226, 86, 109, 0.12);
  border-left: 3px solid var(--rose-deep);
  font-size: 0.9375rem;
}

.form-error[hidden] {
  display: none;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

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

.register-form .btn {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

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

.faq-item dt {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-trigger::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--heather);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.3s var(--ease);
}

.faq-trigger:hover::after {
  border-color: var(--rose-deep);
}

.faq-trigger[aria-expanded="true"]::after {
  background: var(--rose);
  border-color: var(--rose);
  transform: rotate(45deg);
}

.faq-panel {
  margin: 0;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-title {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 16ch;
  text-wrap: balance;
}

.final-row {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.final-copy {
  max-width: 34rem;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--mist);
  padding: 3rem 0;
  font-size: 0.9375rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--chalk);
  text-decoration: underline;
}

.footer-inner .btn {
  justify-self: start;
}

/* --------------------------------------------------------------------------
   Mobile sticky CTA
   -------------------------------------------------------------------------- */

.mobile-cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--night);
  border-top: 1px solid var(--line-light);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}

.mobile-cta-bar.is-visible {
  transform: none;
}

body.has-mobile-cta .site-footer {
  padding-bottom: 6rem;
}

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */

.thank-you-main {
  background: var(--night);
  color: var(--chalk);
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: var(--section-y) var(--gutter);
}

.thank-you-inner {
  max-width: 40rem;
  width: 100%;
}

.thank-you-inner .eyebrow {
  color: var(--mist);
}

.thank-you-title {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.thank-you-title em {
  font-style: normal;
  color: var(--rose);
}

.thank-you-lead {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--mist);
}

.thank-you-ticket {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.thank-you-ticket div {
  padding: 1.1rem 0;
}

.thank-you-ticket dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.thank-you-ticket dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
}

.thank-you-note {
  margin-top: 1.5rem;
  color: var(--mist);
}

.thank-you-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 40rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
  }

  .thank-you-ticket {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 48rem) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }

  .header-inner .logo {
    margin-right: 0;
  }

  .nav-desktop {
    margin-left: auto;
  }

  .ticket {
    grid-template-columns: 1.6fr 1fr;
  }

  .ticket-count {
    padding-left: 2rem;
    border-left: 1px solid var(--line-light);
    flex-direction: column;
    gap: 0.3rem;
  }

  .fit-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .gain-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }

  .final-row {
    grid-template-columns: 1fr auto;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 3rem;
  }

  .mobile-cta-bar {
    display: none;
  }
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: 1.55fr 1fr;
    gap: 4rem;
  }

  .hero-portrait {
    justify-self: end;
    width: 100%;
  }

  .split {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
    align-items: start;
  }

  .split-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .gain-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .host {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }

  .experience {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: end;
  }

  .venue-figure img {
    aspect-ratio: 4 / 5;
  }

  .seats {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .register-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .hero-reveal {
    opacity: 1;
    transform: none;
  }
}

.thank-you-page .site-footer {
  border-top: 1px solid var(--line-light);
}

/* --------------------------------------------------------------------------
   Footer legal row
   -------------------------------------------------------------------------- */

.footer-legal {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 2.5rem auto 0;
  padding: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
}

.footer-legal ul {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--chalk);
  text-decoration: underline;
}

.form-note a {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Legal pages (privacy, terms)
   -------------------------------------------------------------------------- */

.legal-hero {
  background: var(--night);
  color: var(--chalk);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.legal-hero .eyebrow {
  color: var(--mist);
}

.legal-hero .section-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.legal-updated {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mist);
}

.legal-body {
  padding: clamp(3rem, 7vw, 5.5rem) 0 var(--section-y);
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
}

.legal-toc {
  font-size: 0.9375rem;
}

.legal-toc p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heather);
  margin-bottom: 0.75rem;
}

.legal-toc li {
  border-top: 1px solid var(--line);
}

.legal-toc a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-content {
  max-width: 42rem;
  color: var(--ink-soft);
}

.legal-content h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.05;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p {
  margin-top: 1rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--rose);
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--ink);
}

@media (min-width: 64rem) {
  .legal-layout {
    grid-template-columns: 14rem 1fr;
    gap: 5rem;
    align-items: start;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.header-cta {
  margin-left: auto;
}

/* Agreement checkbox */
.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
  margin-top: 0.25rem;
}

.register-form .form-check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: var(--rose-deep);
  cursor: pointer;
}

.register-form .form-check input.is-invalid {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

.register-form .form-check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-check label a {
  color: var(--ink);
}

.form-check .field-error {
  grid-column: 2;
  margin-top: 0;
}
