/* IDA & CAAPID Simplified Conference Day
   The wheel is the one loud thing; everything around it stays quiet.
   Colors carry meaning: royal = discount, butter = free guide, white = free call. */

/* Archivo's ampersand is an "Et" form that reads like an 8 at small sizes, and
   it sits in the event name. Borrow a conventional one from the system sans. */
@font-face {
  font-family: "Ampersand";
  src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular");
  font-weight: 100 500;
  unicode-range: U+0026;
}

@font-face {
  font-family: "Ampersand";
  src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 501 900;
  unicode-range: U+0026;
}

:root {
  --cobalt: #0a2a8f;
  --royal: #125ad3;
  --royal-dark: #0d47ad;
  --sky: #49b1fc;
  --butter: #fee976;
  --butter-hover: #fff08f;
  --butter-shade: #c9ad35;
  --midnight: #121e3b;
  --paper: #f3f6fc;
  --ink: #121e3b;
  --ink-soft: #4b5675;
  --line: #dbe2f0;
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-soft: rgba(255, 255, 255, 0.76);
  --error-on-dark: #ffc4c4;

  --font: "Ampersand", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --radius-control: 14px;
}

@media (min-width: 960px) {
  :root {
    --header-h: 76px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--midnight);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.sprite {
  display: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

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

.button--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.button--butter {
  background: var(--butter);
  color: var(--ink);
}

.button--butter:hover {
  background: var(--butter-hover);
}

.button--royal {
  background: var(--royal);
  color: #fff;
}

.button--royal:hover {
  background: var(--royal-dark);
}

.button--outline {
  background: transparent;
  color: var(--royal);
  box-shadow: inset 0 0 0 2px var(--royal);
}

.button--outline:hover {
  background: var(--paper);
}

.button--ink {
  background: var(--midnight);
  color: #fff;
}

.button--ink:hover {
  background: #1d2c55;
}

/* Outline button for dark backgrounds */
.button--clear {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.button--clear:hover {
  box-shadow: inset 0 0 0 2px #fff;
}

/* The spin button is a physical, pressable game-show button. */
.button--spin {
  min-height: 62px;
  padding: 0 32px;
  font-size: 1.125rem;
  font-stretch: 112%;
  font-weight: 800;
  box-shadow: 0 5px 0 var(--butter-shade), 0 18px 28px -12px rgba(0, 0, 0, 0.55);
}

.button--spin:active,
.button--spin:disabled {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--butter-shade), 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}

.button--spin:disabled {
  cursor: progress;
}

.is-spinning .button--spin .icon {
  animation: turn 0.9s linear infinite;
}

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

.ig-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.ig-badge .icon {
  width: 18px;
  height: 18px;
}

.button--instagram {
  padding-left: 10px;
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.button--instagram:hover {
  box-shadow: inset 0 0 0 2px #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cobalt);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  background: rgba(10, 42, 143, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px -18px rgba(0, 0, 0, 0.7);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: rgba(10, 42, 143, 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}

.nav {
  max-width: calc(var(--max) + 2 * var(--gutter));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
}

.nav__brand {
  margin-right: auto;
  border-radius: 6px;
}

.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav__link:hover {
  color: #fff;
}

.nav__chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.nav__link[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__panel-list a,
.nav__panel-all {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.nav__panel-all {
  font-weight: 700;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #fff;
  cursor: pointer;
}

.nav__toggle .icon {
  width: 26px;
  height: 26px;
}

.nav__toggle[aria-expanded="true"] .icon--open,
.nav__toggle[aria-expanded="false"] .icon--close {
  display: none;
}

/* Phone and tablet: links fold into a panel under the bar. */
@media (max-width: 959.98px) {
  .nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 28px;
    background: var(--cobalt);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
  }

  .nav__menu[data-open="false"] {
    display: none;
  }

  .nav__links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 1.125rem;
  }

  .nav__link--instagram {
    justify-content: flex-start;
  }

  .nav__panel {
    padding: 0 0 14px;
  }

  .nav__panel-list a,
  .nav__panel-all {
    padding: 10px 14px;
    color: var(--on-dark-soft);
  }

  .nav__panel-all {
    color: var(--butter);
  }
}

@media (min-width: 960px) {
  .nav {
    gap: 28px;
  }

  .nav__brand img {
    height: 38px;
  }

  .nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav__link {
    position: relative;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--butter);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
  }

  .nav__link:hover::after,
  .nav__link[aria-expanded="true"]::after {
    transform: scaleX(1);
  }

  .nav__item--services {
    position: relative;
  }

  .nav__panel {
    position: absolute;
    top: calc(100% + 16px);
    left: -16px;
    width: 320px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 60px -24px rgba(7, 18, 60, 0.55), 0 0 0 1px rgba(18, 30, 59, 0.06);
  }

  .nav__panel :focus-visible {
    outline-color: var(--royal);
  }

  .nav__panel-list a:hover {
    background: var(--paper);
    color: var(--royal);
  }

  .nav__panel-all {
    margin-top: 6px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    color: var(--royal);
  }

  .nav__toggle {
    display: none;
  }
}

/* ---------- Hero: the stage */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 104px);
  background: var(--cobalt);
  color: #fff;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Phones read top to bottom: pitch, email, wheel, then prize. */
.hero__main {
  display: contents;
}

.hero__copy {
  order: 1;
  container-type: inline-size;
}

.hero__play {
  order: 2;
}

.hero__stage {
  order: 3;
}

.legend {
  order: 4;
}

.result {
  order: 5;
}

/* Tablets in portrait: one centred column with a larger wheel. */
@media (min-width: 600px) and (max-width: 959.98px) {
  .hero__inner {
    align-items: center;
  }

  .hero__copy,
  .hero__play,
  .legend,
  .result {
    width: 100%;
    max-width: 30rem;
  }
}

@media (min-width: 960px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    column-gap: clamp(40px, 6vw, 96px);
  }

  .hero__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
}

.hero__event {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--butter);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__event::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0 0 4px rgba(254, 233, 118, 0.22);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 11vw, 4.6rem);
  /* Sized to its column so "Every spin" (6.2em wide) never breaks onto a third line. */
  font-size: clamp(2.5rem, 15.5cqi, 4.6rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 30em;
  margin: 18px 0 0;
  color: var(--on-dark-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Email form */

.spin-form {
  display: grid;
  gap: 10px;
  max-width: 30rem;
}

.spin-form__label {
  font-weight: 600;
}

.spin-form__input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.6);
}

.spin-form__input::placeholder {
  color: #8a93ad;
}

.spin-form__input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(73, 177, 252, 0.4);
}

.spin-form__input[aria-invalid="true"] {
  border-color: #ff8a8a;
}

.spin-form__input:read-only {
  color: var(--ink-soft);
}

.spin-form__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--error-on-dark);
  font-weight: 600;
}

.spin-form__error .icon {
  margin-top: 2px;
}

.spin-form__suggest {
  margin: 0;
  color: var(--on-dark-soft);
}

.spin-form__suggest button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--butter);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.spin-form .button--spin {
  margin-top: 8px;
}

.spin-form__note {
  margin: 6px 0 0;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.spin-form__note a {
  color: #fff;
  text-underline-offset: 3px;
}

@media (min-width: 560px) {
  .spin-form .button--spin {
    justify-self: start;
  }
}

/* ---------- Wheel */

.hero__stage {
  position: relative;
  width: min(100%, 360px);
  align-self: center;
}

@media (min-width: 600px) {
  .hero__stage {
    width: min(100%, 460px);
  }
}

@media (min-width: 960px) {
  .hero__stage {
    width: min(100%, 580px);
    justify-self: center;
  }
}

/* Stage light behind the wheel */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: -32%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(73, 177, 252, 0.45), rgba(73, 177, 252, 0.14) 52%, transparent 76%);
  pointer-events: none;
}

.wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wheel > * {
  position: absolute;
}

.wheel__frame,
.wheel__rotor,
.wheel__shade {
  inset: 0;
  width: 100%;
  height: 100%;
}

.wheel__frame {
  filter: drop-shadow(0 26px 34px rgba(3, 10, 40, 0.55));
}

.wheel__rotor {
  transform-origin: 50% 50%;
  will-change: transform;
}

.wheel__shade {
  pointer-events: none;
}

.wheel__rim {
  fill: var(--midnight);
}

.wheel__ring {
  fill: none;
  stroke: var(--butter);
  stroke-width: 3;
}

.wheel__bulb {
  opacity: 0.32;
}

.wheel__bulb-core {
  fill: var(--butter);
}

.wheel__bulb-glow {
  fill: var(--butter);
  opacity: 0.3;
}

.wheel__divider {
  stroke: var(--midnight);
  stroke-width: 2.5;
  stroke-opacity: 0.5;
}

.wheel__label {
  font-family: var(--font);
  font-stretch: 80%;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.wheel__label--primary {
  font-size: 40px;
  letter-spacing: -0.01em;
}

.wheel__label--secondary {
  font-size: 23px;
  font-weight: 700;
}

.wheel__segment {
  transition: opacity 0.4s;
}

.wheel.has-winner .wheel__segment:not(.is-winner) {
  opacity: 0.45;
}

.wheel__segment.is-winner .wheel__wedge {
  stroke: #fff;
  stroke-width: 6;
  stroke-linejoin: round;
}

.wheel__hub {
  left: 39%;
  top: 39%;
  width: 22%;
  height: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px var(--midnight), 0 0 0 8px var(--butter), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.wheel__hub img {
  width: 46%;
  height: auto;
}

.wheel__pointer {
  left: 45%;
  top: -3.5%;
  width: 10%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 31.7%;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.4));
}

.wheel__pointer-body {
  fill: var(--butter);
  stroke: var(--midnight);
  stroke-width: 3;
  stroke-linejoin: round;
}

.wheel__pointer-pin {
  fill: var(--midnight);
}

/* Lights: chase while idle, race while spinning, flash on a win. */
.wheel[data-lights="intro"] .wheel__bulb {
  animation: bulb-on 0.5s ease-out both;
  animation-delay: calc(var(--i) * 45ms);
}

.wheel[data-lights="idle"] .wheel__bulb {
  animation: bulb-chase 1.6s steps(1, end) infinite;
}

.wheel[data-lights="idle"] .wheel__bulb:nth-child(even) {
  animation-delay: -0.8s;
}

.wheel[data-lights="spin"] .wheel__bulb {
  animation: bulb-chase 0.3s steps(1, end) infinite;
}

.wheel[data-lights="spin"] .wheel__bulb:nth-child(even) {
  animation-delay: -0.15s;
}

.wheel[data-lights="win"] .wheel__bulb {
  opacity: 1;
  animation: bulb-flash 0.36s steps(1, end) 6;
}

@keyframes bulb-on {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 1;
  }
}

@keyframes bulb-chase {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes bulb-flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}

.sound-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sound-toggle[aria-pressed="true"] .icon--off,
.sound-toggle[aria-pressed="false"] .icon--on {
  display: none;
}

/* ---------- Legend */

.legend {
  max-width: 30rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.legend__heading {
  margin: 0 0 12px;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.legend__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.legend__swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 2px var(--midnight), 0 0 0 3.5px rgba(255, 255, 255, 0.4);
  transform: translateY(1px);
}

.legend__title {
  font-weight: 700;
}

.legend__text {
  color: var(--on-dark-soft);
}

/* ---------- Prize ticket */

.result {
  max-width: 30rem;
  width: 100%;
  align-self: center;
}

@media (min-width: 960px) {
  .result {
    align-self: stretch;
  }
}

.result__note {
  margin: 0 0 16px;
  color: var(--butter);
  font-weight: 600;
}

.ticket {
  filter: drop-shadow(0 24px 30px rgba(3, 12, 48, 0.5));
  color: var(--ink);
}

.ticket :focus-visible {
  outline-color: var(--royal);
}

/* Two halves with notches cut where they meet, like a torn-off stub. */
.ticket__main,
.ticket__stub {
  position: relative;
  background: #fff;
  -webkit-mask:
    radial-gradient(circle 13px at 0 var(--notch-y), #0000 97%, #000) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% var(--notch-y), #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 13px at 0 var(--notch-y), #0000 97%, #000) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% var(--notch-y), #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
}

.ticket__main {
  --notch-y: 100%;
  padding: 22px 26px 22px;
  border-radius: 20px 20px 0 0;
}

.ticket__stub {
  --notch-y: 0%;
  padding: 22px 26px 24px;
  border-radius: 0 0 20px 20px;
}

.ticket__stub::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  border-top: 2px dashed #c3cde3;
}

.ticket__event {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.ticket__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  color: var(--royal);
  font-weight: 700;
}

.ticket__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1.5px var(--midnight);
}

.ticket__title {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-stretch: 115%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.ticket__title:focus {
  outline: none;
}

.ticket__terms {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ticket__code-label {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.ticket__code-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ticket__code {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border: 2px dashed var(--royal);
  border-radius: 12px;
  background: var(--paper);
  font-size: 2rem;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: all;
  -webkit-user-select: all;
}

.ticket__copy {
  flex: none;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--midnight);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ticket__copy:hover {
  background: #1d2c55;
}

.ticket__action {
  width: 100%;
  min-height: 54px;
}

.ticket__meta {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

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

.result__after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.result__hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .result.is-new .ticket {
    animation: ticket-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
  }

  .result.is-new .result__after {
    animation: rise 0.5s 0.4s ease-out both;
  }
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-2.5deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Services */

.services {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: #fff;
}

.services :focus-visible {
  outline-color: var(--royal);
}

.services__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .services__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }

  .services__head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.services__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.services__intro {
  max-width: 30em;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.services__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list > li {
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  row-gap: 4px;
  padding: 22px 4px;
  color: var(--ink);
  text-decoration: none;
}

.service__name {
  font-size: 1.25rem;
  font-stretch: 105%;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.15s;
}

.service__text {
  grid-column: 1;
  color: var(--ink-soft);
}

.service__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--royal);
  transition: background-color 0.15s, color 0.15s;
}

.service:hover .service__name {
  color: var(--royal);
}

.service:hover .service__go {
  background: var(--royal);
  color: #fff;
}

/* ---------- Instagram */

.follow {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  background: var(--butter);
  color: var(--ink);
}

.follow :focus-visible {
  outline-color: var(--royal);
}

.follow__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: end;
}

@media (min-width: 960px) {
  .follow__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
  }
}

.follow__copy {
  container-type: inline-size;
}

.follow__title {
  margin: 0;
}

.follow__kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 700;
}

.follow__handle {
  display: block;
  font-size: clamp(1.5rem, 6.6vw, 4.5rem);
  /* The handle is 11em wide: size it to its column so it stays on one line. */
  font-size: clamp(1.5rem, 8.8cqi, 5rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.follow__handle:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.follow__text {
  max-width: 34em;
  margin: 16px 0 0;
  color: #3d4459;
}

.follow .button--ink {
  min-height: 60px;
  padding: 10px 28px 10px 12px;
  font-size: 1.0625rem;
  justify-self: start;
}

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

.site-footer {
  padding: 56px var(--gutter) 32px;
  background: var(--midnight);
  color: var(--on-dark-soft);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  border-radius: 6px;
}

.footer__brand img {
  height: 40px;
  width: auto;
}

.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.15s;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ---------- Kiosk mode */

.is-kiosk {
  padding-bottom: 88px;
}

.kiosk-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: rgba(18, 30, 59, 0.95);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Wide screens: tuck it into the corner under the wheel, clear of the ticket. */
@media (min-width: 960px) {
  .kiosk-bar {
    left: auto;
    max-width: 520px;
  }
}

.kiosk-bar.is-warning {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 2px var(--butter);
}

.kiosk-bar__status {
  margin: 0;
}

.kiosk-bar__actions {
  display: flex;
  gap: 8px;
}

.kiosk-bar button {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.kiosk-bar button:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Confetti */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* ---------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .wheel .wheel__bulb {
    opacity: 1;
    animation: none !important;
  }

  .is-spinning .button--spin .icon {
    animation: none;
  }

  .button,
  .nav__chevron,
  .nav__link::after,
  .wheel__segment {
    transition: none;
  }
}
