@font-face {
  font-family: "Riela Brand";
  src: url("/fonts/fraunces-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #14100a;
  --earth: #21180c;
  --umber: #2b2013;
  --ash: #b9ad9c;
  --steam: #e8dcc8;
  --bone: #f7f5f1;
  --paper: #faf9f6;
  --card: #fffdf9;
  /* the water's light, from card-3d.js */
  --copper: #c76e2e;
  --glow: #e0a874;
  --copper-deep: #9c5220;
  /* where the closing gradient lands, and the footer sits */
  --sand: #faf9f6;

  --on-dark: var(--bone);
  --on-dark-muted: rgba(247, 245, 241, 0.66);
  --on-dark-line: rgba(247, 245, 241, 0.14);
  --on-light: var(--ink);
  --on-light-muted: rgba(20, 16, 10, 0.64);
  --on-light-line: rgba(20, 16, 10, 0.12);

  --brand: "Riela Brand", Georgia, serif;
  --serif: var(--sans);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--sans);

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  /* the inset around the hero and the footer */
  --frame: clamp(0.5rem, 1.1vw, 0.9375rem);
  --radius: 0.5rem;
  --radius-card: 0.5rem;
  --nav-h: 3.5rem;

  --pass-width: clamp(11rem, 17vw, 16rem);
  --pass-height: calc(var(--pass-width) / 1.586);
  --mark-scale: 0.086;
  --pass-radius: calc(var(--pass-width) * 0.056);

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--frame) * 2 + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-rm {
  font-family: system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 0.06em;
  opacity: 0.7;
}

/* ------------------------------------------------------------- type */

.mono,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--glow);
}

.eyebrow--dark {
  color: var(--copper-deep);
}

.display,
.title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display em,
.title em {
  font-style: normal;
  color: var(--copper-deep);
}

.display em {
  display: block;
  color: var(--glow);
}

.display {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  line-height: 1.08;
}

.title {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1;
}

.title--large {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
}

.lead {
  margin-top: 1.4rem;
  max-width: 31rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.sub {
  margin-top: 1.1rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
  color: var(--on-light-muted);
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(156, 82, 32, 0.1);
  color: var(--copper-deep);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 0.2em;
}

/* ---------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions--center {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.25rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

/* the warm dot after the label */
.btn--dot {
  padding-right: 2.05rem;
}

.btn--dot::after {
  content: "";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: -0.1875rem;
  border-radius: 50%;
  background: var(--glow);
}

.btn--accent {
  background: var(--glow);
  color: var(--ink);
}

.btn--accent:hover {
  background: #eab98a;
}

.btn--ink {
  background: var(--ink);
  color: var(--bone);
}

.btn--ink:hover {
  background: var(--umber);
}

.btn--white {
  background: var(--card);
  color: var(--ink);
}

.btn--white:hover {
  background: #fff;
}

.btn--glass {
  background: rgba(247, 245, 241, 0.1);
  color: var(--bone);
}

.btn--glass:hover {
  background: rgba(247, 245, 241, 0.16);
}

/* in the header: glass over the hero, ink once the header turns light */
.btn--nav {
  background: rgba(247, 245, 241, 0.1);
  color: var(--bone);
}

.btn--nav:hover {
  background: rgba(247, 245, 241, 0.16);
}

.arrow {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.arrow:hover {
  background: #fff;
}

.arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}

.arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ----------------------------------------------------------- header */

/* A floating pill: it rides in the hero frame, then sticks to the top of the
   window and turns light. site.js sets --banner and --scroll on it. */
.header {
  position: fixed;
  z-index: 50;
  left: calc(var(--frame) + 0.6rem);
  right: calc(var(--frame) + 0.6rem);
  top: max(var(--frame), calc(var(--banner, 0px) + var(--frame) + 0.6rem - var(--scroll, 0px)));
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 0.375rem 0 1.25rem;
  border-radius: 1.125rem;
  color: var(--bone);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.header.is-scrolled .header__inner {
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink);
  box-shadow: 0 12px 18px -4px rgba(20, 16, 10, 0.125);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header.is-scrolled .btn--nav {
  background: var(--ink);
  color: var(--bone);
}

.header.is-scrolled .btn--nav:hover {
  background: var(--umber);
}

.brand {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.055em;
  color: inherit;
  text-decoration: none;
}

.header__nav {
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

.header__nav-link,
.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s ease;
}

.header__nav-link:hover,
.header__link:hover {
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

@media (max-width: 960px) {
  .header__nav {
    display: none;
  }
}

@media (max-width: 400px) {
  .header__inner {
    padding-left: 1rem;
  }

  .header__link {
    display: none;
  }
}

/* ------------------------------------------------------------- hero */

.hero {
  padding: var(--frame);
}

.hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(38rem, calc(100svh - 2.75rem - var(--frame) * 2), 56rem);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  border-radius: var(--radius);
  color: var(--on-dark);
}

/* the ground the card sits on */
.ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 74% 62%, rgba(199, 110, 46, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 8% 96%, rgba(201, 168, 118, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0c0905 0%, var(--ink) 38%, var(--umber) 100%);
}

.ground__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: var(--grain);
  background-size: 160px 160px;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

/* clear of the phone, which starts just left of the frame's middle */
.hero__copy {
  max-width: min(34rem, 44vw - 1rem);
}

@media (max-width: 860px) {
  .hero__copy {
    max-width: 34rem;
  }
}

/* The product, bleeding off the frame's right edge and its foot. Not a
   stacking context: the 3D card's canvas (z 1) has to sit between the phone
   and the copy, and the hidden CSS card (the handle) above it. */
.collage {
  position: absolute;
  right: -3rem;
  bottom: 0;
  width: min(56%, 52rem);
  height: 82%;
  pointer-events: none;
}

.collage .scene {
  position: absolute;
  z-index: 3;
  left: 27%;
  bottom: 9%;
  pointer-events: auto;
}

@media (max-width: 860px) {
  :root {
    --pass-width: min(14rem, 54vw);
  }

  .hero__frame {
    display: block;
    min-height: 0;
    padding: calc(var(--nav-h) + 3rem) 0 0;
  }

  .collage {
    position: relative;
    right: auto;
    width: 100%;
    height: clamp(22rem, 92vw, 30rem);
    margin-top: 3rem;
  }

  .collage .scene {
    left: 34%;
    bottom: 10%;
  }
}

@media (max-width: 600px) {
  .desk {
    width: 84%;
    right: -8%;
    font-size: 0.625rem;
  }

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

  .desk__cols .panel + .panel {
    display: none;
  }

  .panel__row {
    white-space: nowrap;
  }

  .pcard {
    min-height: 0;
  }

  .phone {
    width: 36%;
    left: 4%;
  }
}

/* the redemption screen */
.desk {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 76%;
  height: 74%;
  overflow: hidden;
  border-radius: 1.125rem;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: clamp(0.5625rem, 0.78vw, 0.75rem);
  letter-spacing: 0;
}

.desk__side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  width: 3.9em;
  padding-top: 1.2em;
  background: var(--ink);
}

.desk__logo {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  margin-bottom: 0.9em;
  border-radius: 0.6em;
  background: var(--glow);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35em;
  line-height: 1;
}

.desk__side i {
  width: 1.2em;
  height: 1.2em;
  border: 1.5px solid rgba(247, 245, 241, 0.32);
  border-radius: 0.35em;
}

.desk__side i.is-on {
  border-color: var(--glow);
}

.desk__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5em 1.6em;
}

.panel--chart {
  flex: 1;
  margin-top: 1em;
}

.panel--chart svg {
  flex: 1;
  width: 100%;
  min-height: 3em;
}

.desk__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.1em;
  border-bottom: 1px solid var(--on-light-line);
}

.desk__title {
  font-family: var(--serif);
  font-size: 2em;
  line-height: 1;
}

.desk__place {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--on-light-muted);
}

.desk__cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1em;
  margin-top: 1.2em;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.1em;
  border-radius: 0.8em;
  background: var(--card);
  box-shadow: 0 1px 0 var(--on-light-line);
}

.panel__kicker,
.scan__kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copper-deep);
  font-size: 0.85em;
}

.panel__code {
  font-family: var(--serif);
  font-size: 2em;
  line-height: 1;
}

.panel__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.7em 0;
  border-block: 1px solid var(--on-light-line);
  font-weight: 500;
}

.seg {
  display: flex;
  padding: 0.25em;
  border-radius: 999px;
  background: var(--paper);
}

.seg span {
  flex: 1;
  padding: 0.4em 0;
  border-radius: 999px;
  text-align: center;
  color: var(--on-light-muted);
}

.seg .is-on {
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(20, 16, 10, 0.12);
}

.panel__cta,
.scan__cta {
  padding: 0.75em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  font-weight: 500;
}

.log li {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.65em 0;
  border-bottom: 1px dashed var(--on-light-line);
}

.log li span:last-child {
  color: var(--on-light-muted);
}

.log li:last-child {
  border-bottom: 0;
  font-weight: 600;
}

/* the wallet */
.phone {
  position: absolute;
  left: 7%;
  bottom: -7%;
  width: 31%;
  max-width: 15.5rem;
  aspect-ratio: 0.49;
  padding: 0.45rem;
  border-radius: 2.1rem;
  background: #0b0805;
  box-shadow: 0 0 0 1px rgba(247, 245, 241, 0.12), 0 40px 70px -20px rgba(0, 0, 0, 0.8);
  font-size: clamp(0.5rem, 0.72vw, 0.6875rem);
  letter-spacing: 0;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 3.6em 0.9em 0;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, #1d160d, #120d07);
  color: var(--bone);
}

.phone__notch {
  position: absolute;
  top: 0.8em;
  left: 50%;
  width: 34%;
  height: 1.9em;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone__title {
  margin-bottom: 0.9em;
  font-family: var(--serif);
  font-size: 2.3em;
  line-height: 1;
}

.wpass {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 1em 1.1em 2.6em;
  margin-top: -1.6em;
  border-radius: 0.9em;
  box-shadow: 0 -6px 14px -6px rgba(0, 0, 0, 0.5);
}

.wpass:first-of-type {
  margin-top: 0;
}

.wpass__kicker {
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.wpass__name {
  font-family: var(--serif);
  font-size: 1.7em;
  line-height: 1.05;
}

.wpass__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4.5em;
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.wpass--steam {
  background: var(--steam);
  color: var(--ink);
}

.wpass--umber {
  background: #4a3720;
  color: var(--bone);
}

.wpass--copper {
  padding-bottom: 1.2em;
  color: var(--bone);
  background:
    radial-gradient(ellipse 70% 60% at 25% 15%, rgba(255, 220, 180, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 95%, rgba(80, 36, 8, 0.6), transparent 60%),
    linear-gradient(160deg, var(--copper), #7c3b12);
}

/* --------------------------------------------- the card (CSS fallback) */

.scene {
  position: relative;
  width: var(--pass-width);
  height: var(--pass-height);
  perspective: 72rem;
  perspective-origin: 50% 48%;
}

.scene__float {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.scene::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: calc(var(--pass-width) * -0.058);
  height: calc(var(--pass-width) * 0.067);
  border-radius: 50%;
  background: rgba(6, 4, 2, 0.45);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.pass {
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.pass__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--pass-radius);
  background:
    radial-gradient(ellipse at 25% 12%, rgba(255, 255, 255, 0.13), transparent 48%),
    rgba(41, 24, 12, 0.12);
  -webkit-backdrop-filter: blur(3px) saturate(135%);
  backdrop-filter: blur(3px) saturate(135%);
  box-shadow:
    0 46px 90px -40px rgba(6, 4, 2, 0.78),
    0 12px 34px -20px rgba(6, 4, 2, 0.68),
    inset 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset -1px -1px 0 rgba(201, 168, 118, 0.2),
    inset 0 0 38px rgba(255, 255, 255, 0.03);
}

.pass__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, transparent 28%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 32%, transparent 70%, rgba(201, 118, 54, 0.08));
  pointer-events: none;
  z-index: 2;
}

.pass__water {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.pass__water.is-ready {
  opacity: 1;
}

.pass__mark {
  position: absolute;
  z-index: 3;
  right: calc(var(--pass-width) * 0.055);
  bottom: calc(var(--pass-height) * 0.11);
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(var(--pass-width) * var(--mark-scale));
  line-height: 0.9;
  color: var(--bone);
}

.pass__mark:not(.pass__vale) {
  font-family: var(--brand);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.brand .brand-rm {
  font-size: 0.28em;
  letter-spacing: 0;
  margin-left: 0.2em;
}

/* The access label opens the card; the flip reveals the Riela wordmark. */
.pass__vale {
  opacity: 0;
}

/* The 3D card (card-3d.js) draws over where the CSS card is laid out, on a
   canvas that covers the hero frame: above the phone and the screen, below
   the copy. The CSS card stays as the handle to turn it. */
.card3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.card3d canvas {
  display: block;
}

html.card-3d-pending .pass,
html.card-3d .pass {
  opacity: 0;
}

html.card-3d .pass {
  cursor: grab;
  touch-action: pan-y;
}

html.card-3d.is-turning .pass {
  cursor: grabbing;
}

html.card-3d-pending .scene::after,
html.card-3d .scene::after {
  content: none;
}

@media (prefers-reduced-motion: no-preference) {
  .pass {
    animation: pass-flip 1.85s linear 0.55s both;
  }

  .pass__mark {
    animation: brand-reveal 1.85s linear 0.55s both;
  }

  .pass__vale {
    animation: vale-hide 1.85s linear 0.55s both;
  }

  .scene::after {
    animation: pass-shadow 1.85s linear 0.55s both;
  }

  .scene__float {
    animation: pass-float 13s ease-in-out 2.6s infinite;
  }
}

/* Hold the blank card, flip through the edge, land with the brand on the face. */
@keyframes pass-flip {
  0%, 22% {
    transform: rotateY(0deg) translateZ(0) scale(1);
    animation-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  }
  49.99% {
    transform: rotateY(90deg) translateZ(1.6rem) scale(1.03);
    animation-timing-function: step-end;
  }
  50% {
    transform: rotateY(-90deg) translateZ(1.6rem) scale(1.03);
    animation-timing-function: cubic-bezier(0.22, 0.84, 0.32, 1);
  }
  100% {
    transform: rotateY(0deg) translateZ(0) scale(1);
  }
}

@keyframes vale-hide {
  0%, 49.99% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes brand-reveal {
  0%, 49.99% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

@keyframes pass-shadow {
  0%, 22% {
    transform: scaleX(1);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  }
  49.99% {
    transform: scaleX(0.18);
    opacity: 0.35;
    animation-timing-function: step-end;
  }
  50% {
    transform: scaleX(0.18);
    opacity: 0.35;
    animation-timing-function: cubic-bezier(0.22, 0.84, 0.32, 1);
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes pass-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

/* ------------------------------------------------------------ strip */

.strip {
  overflow: hidden;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip__track {
  display: flex;
  width: max-content;
}

.strip__list {
  display: flex;
  align-items: center;
  flex: none;
}

.strip__list li {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  color: rgba(20, 16, 10, 0.42);
  white-space: nowrap;
}

.strip__list li::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-inline: clamp(1.75rem, 3.5vw, 3rem);
  border-radius: 50%;
  background: rgba(156, 82, 32, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .strip__track {
    animation: strip 48s linear infinite;
  }
}

@keyframes strip {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------- sections */

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

/* a section that follows another on the same ground */
.section--flush {
  padding-top: 0;
}

.intro--center {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.intro--center .sub {
  margin-inline: auto;
}

.intro--wide {
  max-width: 50rem;
}

.intro .title {
  margin-top: 0.9rem;
}

/* a section head with its controls on the right */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.head .intro {
  max-width: 46rem;
}

.head__aside {
  flex: none;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* scroll reveal: only when JS can bring it back */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------- tiles (the card) */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.tile,
.story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  color: var(--bone);
}

.tile {
  aspect-ratio: 1 / 1.08;
}

.tile::before,
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: var(--grain);
  background-size: 160px 160px;
  pointer-events: none;
}

/* the water's light, on three grounds */
.tile--copper {
  background:
    radial-gradient(ellipse 60% 50% at 28% 22%, rgba(255, 214, 170, 0.55), transparent 62%),
    radial-gradient(ellipse 55% 60% at 82% 70%, rgba(224, 168, 116, 0.35), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(60, 26, 6, 0.75), transparent 70%),
    linear-gradient(160deg, var(--copper) 0%, #7a3a12 100%);
}

.tile--umber {
  background:
    radial-gradient(ellipse 55% 45% at 72% 22%, rgba(224, 168, 116, 0.42), transparent 62%),
    radial-gradient(ellipse 50% 50% at 18% 60%, rgba(199, 110, 46, 0.22), transparent 60%),
    linear-gradient(160deg, #3b2a16 0%, var(--ink) 100%);
}

.tile--steam {
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(ellipse 60% 60% at 85% 85%, rgba(156, 82, 32, 0.28), transparent 62%),
    linear-gradient(160deg, var(--steam) 0%, #b89f7d 100%);
}

.tile--earth {
  background:
    radial-gradient(ellipse 60% 50% at 30% 25%, rgba(224, 168, 116, 0.3), transparent 62%),
    linear-gradient(160deg, #5a4128 0%, var(--earth) 100%);
}

.tile__art {
  position: absolute;
  inset: 0 0 34%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.tile__body {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1.4rem 1.35rem;
  background: linear-gradient(to top, rgba(12, 9, 5, 0.86) 0%, rgba(12, 9, 5, 0.6) 55%, transparent 100%);
}

.tile__title {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
}

.tile__text {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

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

  .tile {
    aspect-ratio: auto;
    min-height: 25rem;
  }

  .tile__art {
    inset: 0 0 42%;
  }
}

/* the co-branded card, small */
.gift {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(82%, 16rem);
  aspect-ratio: 1.586;
  padding: 0.95rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(ellipse at 25% 12%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(150deg, rgba(41, 24, 12, 0.55), rgba(20, 12, 5, 0.75));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 50px -24px rgba(20, 8, 0, 0.8), inset 1px 1px 0 rgba(255, 255, 255, 0.3);
  transform: rotate(-6deg);
}

.gift__top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
}

.gift__x {
  opacity: 0.6;
}

.gift__network {
  opacity: 0.85;
}

.gift__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gift__label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glow);
}

.gift__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

/* named experiences, as a list */
.menu {
  width: min(86%, 17rem);
  padding: 0.4rem 1rem;
  border-radius: 0.85rem;
  background: rgba(247, 245, 241, 0.08);
  border: 1px solid rgba(247, 245, 241, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.menu li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.1;
}

.menu li:last-child {
  border-bottom: 0;
}

.menu b {
  flex: none;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glow);
}

/* the one venue it is spent at */
.place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.place__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--card);
  color: var(--copper-deep);
  box-shadow: 0 0 0 0.6rem rgba(255, 253, 249, 0.35), 0 0 0 1.4rem rgba(255, 253, 249, 0.18), 0 20px 40px -16px rgba(60, 30, 8, 0.5);
}

.place__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.place__name {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.place__units {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.place__units i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

/* -------------------------------------------------- rail (what changes) */

.rail {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}

.pcard {
  display: flex;
  flex-direction: column;
  width: clamp(16.5rem, 24vw, 18.75rem);
  min-height: 29rem;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  scroll-snap-align: start;
}

.pcard__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.pcard__text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pcard__today {
  margin: 1rem 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-light-muted);
}

.pcard__today span {
  color: var(--copper-deep);
}

.pcard__today span::after {
  content: " ·";
}

.pcard__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex: none;
  height: 13rem;
  margin: auto -1.5rem 0;
  padding: 1.25rem 1.25rem 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(224, 168, 116, 0.3), transparent 70%),
    var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* the storefront */
.shop {
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  background: var(--card);
  box-shadow: 0 -2px 20px -8px rgba(60, 30, 8, 0.3);
}

.shop__bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
  background: var(--bone);
  border-bottom: 1px solid var(--on-light-line);
}

.shop__bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ash);
}

.shop__bar span {
  margin-left: 0.4rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-light-muted);
}

.shop__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 1rem;
}

.shop__brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.shop__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.4rem 0.5rem 0.7rem;
  border-radius: 0.55rem;
  background: var(--bone);
}

.shop__item b {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-weight: 500;
  font-size: 0.6875rem;
}

/* the pass, and where it goes */
.mini-pass {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 82%;
  height: 6.5rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem 0.8rem 0 0;
  color: var(--bone);
  background:
    radial-gradient(ellipse 70% 60% at 25% 15%, rgba(255, 220, 180, 0.45), transparent 60%),
    linear-gradient(160deg, var(--copper), #7c3b12);
}

.mini-pass__top {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
}

.mini-pass__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  order: 1;
}

.chips li {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--card);
  font-weight: 500;
  font-size: 0.6875rem;
  box-shadow: 0 1px 0 var(--on-light-line);
}

/* the redemption, small */
.scan {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem 0.75rem 0 0;
  background: var(--card);
  box-shadow: 0 -2px 20px -8px rgba(60, 30, 8, 0.3);
}

.scan__code {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
}

/* the statement */
.ledger {
  width: 100%;
  padding: 0.5rem 1rem 0.25rem;
  border-radius: 0.75rem 0.75rem 0 0;
  background: var(--card);
  box-shadow: 0 -2px 20px -8px rgba(60, 30, 8, 0.3);
}

.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--on-light-line);
}

.ledger li span:last-child {
  color: var(--on-light-muted);
}

.ledger .is-total {
  border-bottom: 0;
  font-weight: 600;
}

.ledger .is-total span:last-child {
  color: var(--ink);
}

/* the money's path */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
  padding-bottom: 1.5rem;
}

.flow li {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  font-weight: 500;
  box-shadow: 0 1px 0 var(--on-light-line);
}

.flow li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 1.35rem;
  border-left: 1px dashed var(--copper-deep);
}

.flow .is-end {
  background: var(--ink);
  color: var(--bone);
}

/* ------------------------------------------------- network cards */

.ncards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.ncard {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--card);
}

.ncard__title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.ncard__text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--on-light-muted);
}

.ncard__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  background: var(--paper);
  color: var(--copper-deep);
}

.ncard__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.ncard__tag {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--copper-deep);
}

.minicard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 10.5rem;
  aspect-ratio: 1.586;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  color: var(--bone);
  box-shadow: 0 16px 30px -18px rgba(20, 10, 2, 0.6);
}

.minicard--gift {
  background:
    radial-gradient(ellipse 70% 60% at 25% 15%, rgba(255, 220, 180, 0.45), transparent 60%),
    linear-gradient(160deg, var(--copper), #7c3b12);
}

.minicard--access {
  background:
    radial-gradient(ellipse 60% 60% at 75% 20%, rgba(224, 168, 116, 0.35), transparent 60%),
    linear-gradient(160deg, #3b2a16, var(--ink));
}

.minicard__top {
  font-family: var(--serif);
  font-size: 0.875rem;
  line-height: 1;
}

.minicard__top b {
  font-weight: 400;
  opacity: 0.6;
}

.minicard__name {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1;
}

.facts {
  margin-top: 1.25rem;
}

.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--on-light-line);
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.facts dd {
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* The lodging's neighbourhood: its pin, the curated venues around it, and
   the ones it picked for its card. */
.ncard--map {
  grid-column: span 2;
}

.ncard--wide {
  grid-column: 1 / -1;
}

.ncard--wide .nmap {
  aspect-ratio: 1200 / 460;
}

.ncard__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.ncard__row .ncard__text {
  max-width: 34rem;
}

.ncard__row .nmap__legend {
  flex: none;
}

.nmap {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: 0.75rem;
  background: var(--bone);
  overflow: hidden;
}

.nmap__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nmap__water { fill: rgba(185, 173, 156, 0.22); }
.nmap__street { stroke: var(--on-light-line); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nmap__ring { stroke: rgba(199, 110, 46, 0.22); stroke-width: 1.2; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.nmap__link { stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; }

.nmap__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-0.375rem, -50%);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--on-light-muted);
}

.nmap__spot::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--ash);
  background: var(--card);
}

.nmap__spot.is-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 0.375rem), -50%);
}

.nmap__spot.is-picked {
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 6px 16px -10px rgba(20, 10, 2, 0.5);
  color: var(--ink);
  transform: translate(-0.675rem, -50%);
}

.nmap__spot.is-picked.is-left {
  padding: 0.3rem 0.3rem 0.3rem 0.55rem;
  transform: translate(calc(-100% + 0.675rem), -50%);
}

.nmap__spot.is-picked::before {
  border-color: var(--copper);
  background: var(--copper);
}

.nmap__home {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem 0.5rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(199, 110, 46, 0.18), 0 12px 24px -12px rgba(20, 10, 2, 0.7);
}

.nmap__home svg {
  width: 1rem;
  height: 1rem;
  color: var(--glow);
}

.nmap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--on-light-muted);
}

.nmap__legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nmap__legend li::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 1.5px solid var(--ash);
}

.nmap__legend li.is-picked::before {
  border-color: var(--copper);
  background: var(--copper);
}

@media (prefers-reduced-motion: no-preference) {
  .nmap__link { animation: nmap-flow 1.6s linear infinite; }
  .nmap__home { animation: nmap-pulse 2.8s ease-in-out infinite; }
}

@keyframes nmap-flow {
  to { stroke-dashoffset: -24; }
}

@keyframes nmap-pulse {
  50% { box-shadow: 0 0 0 12px rgba(199, 110, 46, 0.08), 0 12px 24px -12px rgba(20, 10, 2, 0.7); }
}

@media (max-width: 960px) {
  .ncards {
    grid-template-columns: minmax(0, 1fr);
  }
  .ncard--map {
    grid-column: auto;
  }
  .ncard--wide .nmap {
    aspect-ratio: 8 / 5;
  }
  .ncard__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nmap, .ncard--wide .nmap { aspect-ratio: 4 / 3; }
  .nmap__spot:not(.is-picked) { font-size: 0; gap: 0; }
  .nmap__spot.is-picked { font-size: 0.6875rem; }
  .nmap__home { font-size: 0.75rem; }
}

/* -------------------------------------------- stories (lodgings) */

.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.story {
  min-height: 25rem;
}

.story__art {
  position: absolute;
  inset: 0 0 40%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

/* the white label, inset like a caption card */
.story__label {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--ink);
}

.story__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
}

.story__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--on-light-muted);
}

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

  .story {
    min-height: 25rem;
  }

  .story__art {
    inset: 0 0 45%;
  }
}

/* the access pass */
.access {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(80%, 15rem);
  aspect-ratio: 1.586;
  padding: 0.95rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(247, 245, 241, 0.25);
  background:
    radial-gradient(ellipse 60% 60% at 75% 20%, rgba(224, 168, 116, 0.4), transparent 60%),
    linear-gradient(160deg, #4a3720, #1b140b);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8), inset 1px 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(4deg);
}

.access__top {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.access__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.access__foot {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glow);
}

/* the concierge thread */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(86%, 17rem);
  font-size: 0.875rem;
  line-height: 1.35;
}

.chat__msg {
  align-self: flex-start;
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: rgba(247, 245, 241, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.chat__msg--reply {
  align-self: flex-end;
  border-radius: 1rem 1rem 0.3rem 1rem;
  background: var(--glow);
  color: var(--ink);
}

/* --------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.stat {
  padding-top: 1.25rem;
  border-top: 1px solid var(--on-light-line);
}

.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 0.75rem;
  max-width: 16rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--on-light-muted);
}

.stats__source {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--on-light-muted);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* ---------------------------------------------- assurances (venues) */

.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.assure li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.assure li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.3rem;
  margin-top: -0.2rem;
  border-left: 1.5px solid var(--glow);
  border-bottom: 1.5px solid var(--glow);
  transform: rotate(-45deg);
}

.assure--light {
  justify-content: center;
  color: var(--on-light-muted);
}

.assure--light li::before {
  border-color: var(--copper-deep);
}

/* ------------------------------------------------ perks (venues) */

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.perk {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--card);
}

.perk__title {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
}

.perk__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-light-muted);
}

@media (max-width: 960px) {
  .perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ------------------------------- versus the check-in apps (venues) */

.versus {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
}

.versus table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.versus th,
.versus td {
  padding: 1.1rem 1.5rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.versus tbody tr {
  border-top: 1px dashed var(--on-light-line);
}

.versus thead th {
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-light-muted);
}

.versus tbody th {
  font-weight: 500;
}

.versus td {
  color: var(--on-light-muted);
}

.versus .is-ducha {
  background: rgba(199, 110, 46, 0.07);
  color: var(--on-light);
}

.versus thead .is-ducha {
  color: var(--copper-deep);
}

@media (max-width: 720px) {
  .versus table,
  .versus thead,
  .versus tbody {
    display: block;
  }

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

  .versus thead td {
    display: none;
  }

  .versus tbody th {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .versus th,
  .versus td {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
  }

  .versus tbody td {
    padding-top: 0.5rem;
  }
}

/* ---------------------------------------------------------- finale */

/* the paper warms into sand, where the footer sits */
.finale {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 62rem;
  margin: clamp(2.5rem, 5vw, 3.25rem) auto 0;
}

.step__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
}

.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.step__text {
  margin-top: 0.6rem;
  padding-left: 2.15rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-light-muted);
}

.finale .actions {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

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

/* ------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.faq__lead {
  margin-top: 1rem;
  color: var(--on-light-muted);
}

.faq__more {
  margin-top: 2rem;
  font-weight: 500;
}

.faq__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.faq__links a {
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.faq__links a:hover {
  color: var(--copper-deep);
}

.qa {
  border-bottom: 1px dashed rgba(20, 16, 10, 0.28);
}

.qa summary {
  position: relative;
  display: block;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.qa summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.qa[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.qa p {
  max-width: 42rem;
  padding-bottom: 1.4rem;
  color: var(--on-light-muted);
}

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

/* ---------------------------------------------------------- footer */

.footer {
  padding: 0 var(--frame) var(--frame);
  background: var(--sand);
}

.footer__frame {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) calc(var(--gutter) + var(--frame)) 2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, auto));
  gap: clamp(2rem, 5vw, 4.5rem);
}

.footer__heading {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.5);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.footer__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--glow);
}

.footer__mark {
  font-family: var(--brand);
  font-weight: 600;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--glow);
  text-decoration: none;
}

.footer__mark .brand-rm {
  font-size: 0.2em;
  vertical-align: 2.6em;
}

.footer__closing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
}

.footer__line {
  max-width: 22rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.05;
}

.footer__line em {
  color: var(--glow);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--on-dark-line);
}

.footer__note {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.45);
}

@media (max-width: 860px) {
  .footer__top {
    flex-direction: column-reverse;
  }
}

@media (max-width: 520px) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Quiet typography and surfaces for the public landing. */
.display, .title { font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; }
.eyebrow { font-size: .8125rem; text-transform: none; letter-spacing: 0; }
.btn { border-radius: .375rem; }
.ground { background: #1b1916; }
.ground__grain { display: none; }
.finale { background: var(--paper); }
.header.is-scrolled .header__inner { box-shadow: none; border-bottom: 1px solid var(--on-light-line); }
.tile, .story { border-radius: .5rem; }
.tile__title, .pcard__title, .ncard__title, .story__title { font-size: 1.375rem; line-height: 1.25; }
.footer__line em { font-style: normal; color: inherit; }

/* Audience selection stays visible, including on narrow screens. */
[hidden] { display: none !important; }
.audience-switch {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  gap: 0.125rem;
  border: 1px solid rgba(185, 173, 156, 0.3);
  border-radius: 999px;
  background: rgba(185, 173, 156, 0.08);
}
.audience-switch a {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.35s ease;
}
.audience-switch a[aria-current="page"] {
  color: var(--ink);
  cursor: default;
}
/* Without audiences.js the current link carries its own fill; with it, the
   thumb slides from one link to the other. */
.audience-switch:not(.is-ready) a[aria-current="page"] { background: var(--steam); }
.audience-switch__thumb {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: var(--thumb-w, 0);
  border-radius: 999px;
  background: var(--steam);
  transform: translateX(var(--thumb-x, 0));
  opacity: 0;
}
.audience-switch.is-ready .audience-switch__thumb { opacity: 1; }
.audience-switch.is-animated .audience-switch__thumb {
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .audience-switch.is-animated .audience-switch__thumb { transition: none; }
}
.audience-switch a:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
html[data-audience="venues"] .ground {
  background: radial-gradient(ellipse at 75% 65%, #533a26 0%, transparent 65%), #21180c;
}
@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; height: auto; gap: 0.75rem; padding: 0.6rem 0.75rem; }
  .header__actions { gap: 0.75rem; }
  .header__actions .btn--nav { display: none; }
  .audience-switch { order: 3; width: 100%; justify-content: center; }
  .audience-switch a { flex: 1; text-align: center; min-height: 44px; display: grid; place-items: center; padding: 0.65rem 0.5rem; }
  .hero__frame { padding-top: 10.5rem; }
  .section { scroll-margin-top: 9rem; }
}
