/* ==========================================================================
   Riva's Peluquería - Olive, beige, white and black brand system
   Titles: Bebas Neue. Text: Montserrat.
   ========================================================================== */

:root {
  /* Brand palette */
  --olive: #3e4b30;
  --olive-hover: #4b5a3b;
  --olive-deep: #323d27;
  --olive-soft: #8c9a6e; /* olive tuned for text on black (6.2:1) */
  /* Military green of the wordmark. #3e4b30 only reaches 2.0:1 on black, so the
     logo uses the lighter olive-soft (6.26:1 on #111, AA for small text). It is
     also the exact green of the approved logo sketch. */
  --military: var(--olive-soft);
  --beige: #e7e1d7;
  --white: #f5f5f5;
  --black: #111111;
  --black-soft: #191917;

  /* Text */
  --ink: #111111;
  --ink-muted: #45453f;
  --paper-text: #f5f5f5;
  --paper-muted: #bdb8ae;

  --line-dark: rgb(245 245 245 / 0.12);
  --line-light: rgb(17 17 17 / 0.14);

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers */
  --z-header: 10;
  --z-toast: 20;
  --z-grain: 30;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain on a fixed layer, never on scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: calc(var(--z-header) + 1);
  padding: 0.75rem 1.25rem;
  background: var(--olive);
  color: var(--white);
  font-weight: 600;
}

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

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

/* ==========================================================================
   TYPE PRIMITIVES
   ========================================================================== */
.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--olive);
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.rule {
  display: block;
  width: 48px;
  height: 3px;
  background: currentColor;
  color: var(--olive);
}

/* ==========================================================================
   BUTTONS AND LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    transform 0.2s var(--ease-out);
}

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

.btn-lg {
  padding: 1.1rem 2rem 1rem;
  font-size: 1.4rem;
}

.btn-arrow {
  width: 1.1em;
  height: 1.1em;
  margin-top: -0.1em;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--olive-hover);
}

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

.btn-light:hover {
  background: var(--white);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px; /* comfortable tap target */
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--olive);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.3s var(--ease-out);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link .icon {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   SEAL (round brand mark)
   ========================================================================== */
.seal {
  display: block;
  overflow: visible;
}

.seal-ring-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.seal-letter {
  font-family: var(--font-display);
  font-size: 96px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

/* Typographic logo: RIVA'S in white condensed caps, PELUQUERIA tracked out in
   military green underneath. Sized from the font-size on .wordmark. */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42em;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 2.7em;
  line-height: 0.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.wordmark-sub {
  /* Trailing letter-spacing is pulled back so the word ends flush with the name */
  margin-right: -0.28em;
  font-family: var(--font-body);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--military);
}

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

.nav-link {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--olive-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--olive-soft);
}

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

/* Client portal entry: icon and label on desktop, icon only next to the menu on phones */
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
}

.header-account .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.header-account:hover {
  color: var(--olive-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-toggle .icon {
  width: 28px;
  height: 28px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1099px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-account {
    justify-content: center;
    width: 44px;
  }

  .header-account .icon {
    width: 26px;
    height: 26px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.3s var(--ease-out),
      visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.3s var(--ease-out);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .nav-link {
    padding-block: 0.9rem;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-link::after {
    display: none;
  }
}

/* ==========================================================================
   HERO (three salon videos side by side; one at a time on phones)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: clamp(520px, calc(100dvh - var(--header-h)), 860px);
}

.hero-cell {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-cell + .hero-cell {
  border-left: 1px solid var(--black);
}

.hero-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shade under each caption */
.hero-cell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(0deg, rgb(17 17 17 / 0.8), transparent);
  pointer-events: none;
}

.hero-cell figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--beige);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse at center, rgb(17 17 17 / 0.72) 0%, rgb(17 17 17 / 0.25) 70%);
}

.hero-title {
  margin-block: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 720px) {
  .hero-strip {
    grid-template-columns: 1fr;
    height: calc(100dvh - var(--header-h));
  }

  /* Stacked in one cell; script.js fades between them */
  .hero-cell {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.9s ease;
  }

  .hero-cell.is-active {
    opacity: 1;
  }

  .hero-cell + .hero-cell {
    border: 0;
  }

  .hero-cell figcaption {
    top: 1rem;
    bottom: auto;
  }
}

/* ==========================================================================
   SERVICES (price list with a video or photo per service)
   ========================================================================== */
.services {
  padding-block: var(--section-y);
  background: var(--black-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.services .section-title {
  margin-top: 1rem;
}

.services-note {
  max-width: 46ch;
  margin-top: 1.25rem;
  color: var(--paper-muted);
}

.svc-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line-dark);
  /* script.js keeps the tapped row in place; browser scroll anchoring would double it */
  overflow-anchor: none;
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  transition:
    color 0.2s,
    padding 0.3s var(--ease-out);
}

.svc-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.svc-time {
  font-size: 0.8rem;
  color: var(--paper-muted);
}

.svc-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc-row:hover,
.svc-row.is-active {
  padding-left: 0.9rem;
  color: var(--olive-soft);
}

.price-foot {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--paper-muted);
}

.svc-preview {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--black);
}

.svc-preview video,
.svc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

.svc-preview[hidden],
.svc-preview video[hidden],
.svc-photo[hidden] {
  display: none;
}

.svc-preview.is-swapping video,
.svc-preview.is-swapping .svc-photo {
  opacity: 0;
}

/* Phones: the preview opens right under the chosen service */
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .svc-list .svc-preview {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-block: 0.25rem 1rem;
  }

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

  .svc-time {
    display: none;
  }
}

/* ==========================================================================
   MEMBERSHIP
   Rhythm inside the section: olive intro and dark credential desk, a beige
   at-a-glance strip, then a deep olive band with plans and points. The next
   section (before and after) is white, so the section closes on a dark band.
   ========================================================================== */
.membership {
  background: var(--olive);
  color: var(--white);
}

.membership-intro {
  display: grid;
}

.membership-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
}

.membership-copy-inner {
  width: 100%;
  max-width: 34rem;
}

.membership-watermark {
  position: absolute;
  z-index: -1;
  right: -4%;
  top: 50%;
  width: min(360px, 60%);
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.06;
}

.eyebrow-marked {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--beige);
  opacity: 0.8;
}

.eyebrow-marked::before {
  content: "";
  width: 4px;
  height: 0.9em;
  background: currentColor;
}

.membership .section-title {
  margin-top: 1rem;
}

.membership-text {
  max-width: 38ch;
  margin-block: 1.25rem 2.25rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgb(245 245 245 / 0.86);
}

.membership-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 3rem var(--gutter);
  overflow: hidden;
  /* Dark leather desk under a warm lamp */
  background:
    radial-gradient(ellipse 70% 60% at 60% 35%, rgb(231 225 215 / 0.14), transparent 70%),
    linear-gradient(160deg, #23221e, #121210 70%);
}

/* Sub-headings shared by the glance strip, the plans and the points block */
.block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   VIP credential. The tilt lives in custom properties so hover, pointer
   tracking (script.js) and the reveal can each change it without
   redeclaring the transform.
   -------------------------------------------------------------------------- */
.member-card {
  --foil: #d6ccb0;
  --rx: 14deg;
  --ry: 0deg;
  --rz: -8deg;
  --lift: 0px;
  --gx: 28%;
  --gy: 18%;
  position: relative;
  display: block;
  cursor: pointer;
  width: min(380px, 78%);
  aspect-ratio: 1.586;
  border-radius: 14px;
  container-type: inline-size;
  color: var(--foil);
  /* Near-black olive, like an anodised membership card */
  background:
    radial-gradient(ellipse at 28% 18%, rgb(214 204 176 / 0.14), transparent 58%),
    linear-gradient(145deg, #3a4a2d, #26301d 48%, #161d12);
  box-shadow:
    inset 0 0 0 1px rgb(214 204 176 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 2px 0 #10150d,
    0 30px 60px -20px rgb(0 0 0 / 0.85),
    0 12px 24px -12px rgb(0 0 0 / 0.6);
  transform:
    perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz))
    translateY(var(--lift));
  transition: transform 0.8s var(--ease-out);
}

.membership-visual:hover .member-card {
  --rx: 6deg;
  --rz: -3deg;
  --lift: -6px;
}

.member-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "head"
    "id"
    "meta";
  padding: 6.5cqi 7cqi 6cqi;
  border-radius: inherit;
  overflow: hidden;
  /* Fine engraved rings, like the guilloche on a printed card */
  background: repeating-radial-gradient(
    circle at 108% 118%,
    rgb(214 204 176 / 0.07) 0 1px,
    transparent 1px 9px
  );
}

/* Hairline frame inside the edge, like the border of an ID card */
.member-card-face::before {
  content: "";
  position: absolute;
  inset: 2.6cqi;
  border: 1px solid rgb(214 204 176 / 0.2);
  border-radius: 9px;
  pointer-events: none;
}

.member-card-head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 3.5cqi;
}

.member-card-seal {
  width: 13cqi;
  height: auto;
  aspect-ratio: 1;
}

.member-card-club {
  font-family: var(--font-display);
  font-size: 8cqi;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--beige);
}


.member-card-id {
  grid-area: id;
  align-self: center;
  display: grid;
  gap: 1cqi;
}

.member-card-label {
  font-family: var(--font-body);
  font-size: 3.6cqi;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Foil-stamped number: a light gradient clipped to the glyphs */
.member-card-number {
  width: fit-content;
  font-family: var(--font-display);
  font-size: 15cqi;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--foil);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .member-card-number {
    background: linear-gradient(100deg, #b3a786 0%, #f1e9d0 38%, #d6ccb0 58%, #a99e80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.member-card-meta {
  grid-area: meta;
  align-self: end;
  display: flex;
  gap: 7cqi;
}

.member-card-pair {
  display: grid;
  gap: 1cqi;
}

.member-card-value {
  font-family: var(--font-display);
  font-size: 5.2cqi;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--beige);
}


/* Light that follows the pointer (--gx/--gy) plus a foil band swept on scroll */
.member-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--gx) var(--gy),
    rgb(255 255 255 / 0.22),
    transparent 55%
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 0.5s var(--ease-out);
}

.member-card-glare::before {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgb(214 204 176 / 0.35) 48%,
    rgb(255 255 255 / 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-30%);
}

.membership-visual:hover .member-card-glare {
  opacity: 1;
}

@media (min-width: 900px) {
  .membership-intro {
    grid-template-columns: 1.15fr 1fr;
  }

  .membership-copy {
    justify-content: flex-end;
    padding-right: clamp(2rem, 5vw, 4.5rem);
  }

  .membership-copy-inner {
    max-width: 36rem;
  }
}

/* --------------------------------------------------------------------------
   At a glance: three steps. Without JS or with reduced motion every step
   shows its final state. script.js adds .is-animated and then toggles
   .is-reached / .is-passed / .is-current one step at a time.
   -------------------------------------------------------------------------- */
.membership-glance {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--beige);
  color: var(--ink);
}

.glance-steps {
  --node: 2.75rem;
  --gap: 2.75rem;
  display: grid;
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.glance-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  column-gap: 1.25rem;
  align-content: start;
}

.glance-node {
  position: relative;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  padding-top: 0.12em;
  border: 2px solid rgb(17 17 17 / 0.28);
  border-radius: 50%;
  background: var(--beige);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink-muted);
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out);
}

/* Expanding ring that marks the step being shown */
.glance-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--olive);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.glance-step-title {
  padding-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.glance-step-text {
  margin-top: 0.5rem;
  max-width: 30ch;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.glance-art {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1rem;
  color: var(--olive);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

/* Segment to the next node: a dim track plus an olive fill drawn on top */
.glance-step:not(:last-child)::before,
.glance-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) + 0.4rem);
  bottom: calc(var(--gap) * -1 + 0.4rem);
  width: 2px;
  background: rgb(17 17 17 / 0.16);
}

.glance-step:not(:last-child)::before {
  z-index: 1;
  background: var(--olive);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s var(--ease-out);
}

/* Step 1: a credential that settles into place */
.art-card {
  position: relative;
  width: 4.75rem;
  aspect-ratio: 1.586;
  border-radius: 6px;
  background: var(--olive);
  transition: transform 0.8s var(--ease-out);
}

.art-card::before,
.art-card::after {
  content: "";
  position: absolute;
  background: #d6ccb0;
}

.art-card::before {
  left: 10%;
  top: 16%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.art-card::after {
  left: 10%;
  bottom: 18%;
  width: 52%;
  height: 4px;
  border-radius: 2px;
  box-shadow: 0 -9px 0 -1px #d6ccb0;
}

/* Step 2: four visits, one mark each */
.art-visits {
  display: flex;
  gap: 0.5rem;
}

.art-visit {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid rgb(62 75 48 / 0.35);
  border-radius: 6px;
  transition: background-color 0.5s var(--ease-out);
  transition-delay: calc(var(--k) * 140ms);
}

.art-visit .icon {
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0;
  transform: scale(0.5) rotate(-25deg);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: calc(var(--k) * 140ms);
}

/* Step 3: points filling up */
.art-points {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(11rem, 100%);
}

.art-points-bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgb(17 17 17 / 0.14);
  overflow: hidden;
}

.art-points-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}

.art-points-star {
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 1.6;
  transform: scale(0.75);
  transition:
    fill 0.4s var(--ease-out),
    transform 0.6s var(--ease-out);
}

/* Reached state. It is the default when the script has not taken over. */
.membership-glance:not(.is-animated) .glance-node,
.glance-step.is-reached .glance-node {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--white);
}

.membership-glance:not(.is-animated) .glance-step:not(:last-child)::before,
.glance-step.is-passed:not(:last-child)::before {
  transform: none;
}

.membership-glance.is-animated .glance-step:not(.is-reached) .glance-art {
  opacity: 0.35;
  transform: translateY(6px);
}

.membership-glance.is-animated .glance-step:not(.is-reached) .art-card {
  transform: rotate(-7deg);
}

.membership-glance:not(.is-animated) .art-visit,
.glance-step.is-reached .art-visit {
  background: rgb(62 75 48 / 0.12);
}

.membership-glance:not(.is-animated) .art-visit .icon,
.glance-step.is-reached .art-visit .icon {
  opacity: 1;
  transform: none;
}

.membership-glance:not(.is-animated) .art-points-bar::before,
.glance-step.is-reached .art-points-bar::before {
  transform: scaleX(0.82);
}

.membership-glance:not(.is-animated) .art-points-star,
.glance-step.is-reached .art-points-star {
  fill: currentColor;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .membership-glance.is-animated .glance-step.is-current .glance-node::after {
    animation: glance-ring 1.5s var(--ease-out) infinite;
  }
}

@keyframes glance-ring {
  from {
    opacity: 0.7;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.65);
  }
}

@media (min-width: 900px) {
  .glance-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
  }

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

  .glance-node {
    grid-row: auto;
    margin-bottom: 1.25rem;
  }

  /* Segments run sideways from one node to the next */
  .glance-step:not(:last-child)::before,
  .glance-step:not(:last-child)::after {
    left: calc(var(--node) + 0.6rem);
    top: calc(var(--node) / 2 - 1px);
    bottom: auto;
    width: calc(100% + var(--gap) - var(--node) - 1.2rem);
    height: 2px;
  }

  .glance-step:not(:last-child)::before {
    transform: scaleX(0);
    transform-origin: left;
  }

  .membership-glance:not(.is-animated) .glance-step:not(:last-child)::before,
  .glance-step.is-passed:not(:last-child)::before {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Detail: plans and points
   -------------------------------------------------------------------------- */
.membership-detail {
  padding-block: var(--section-y);
  background: var(--olive-deep);
  color: var(--white);
}

.detail-note {
  max-width: 40ch;
  margin-top: 0.9rem;
  color: var(--paper-muted);
  text-wrap: pretty;
}

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--beige);
  color: var(--ink);
  border-top: 4px solid var(--olive);
}

.plan-icons {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--olive);
}

.plan-icons .icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.4;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.plan-visits {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.plan-prices {
  margin-block: 1.75rem 1.75rem;
  border-top: 1px solid var(--line-light);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line-light);
}

.plan-price dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.plan-price dd {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

/* Buttons line up at the bottom whatever the plan contains */
.plan .btn {
  margin-top: auto;
}

.points {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
}

.points-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--beige);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.points-text {
  max-width: 38ch;
  margin-top: 0.9rem;
  color: var(--paper-muted);
  text-wrap: pretty;
}

.points-list {
  display: grid;
  align-content: center;
}

.points-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--beige);
}

.points-list li:first-child {
  border-top: 1px solid var(--line-dark);
}

.points-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  margin-top: -0.15em;
  background: var(--olive-soft);
}

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

@media (min-width: 900px) {
  .points {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
  }
}

/* ==========================================================================
   WORK (swipeable row of salon videos)
   ========================================================================== */
.work {
  padding-block: var(--section-y);
  background: var(--black);
}

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work .section-title {
  margin-top: 1rem;
}

.work-ig {
  border-color: var(--line-dark);
  color: var(--white);
}

.work-ig:hover {
  border-color: var(--olive-soft);
  color: var(--olive-soft);
}

.reel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
}

/* Line the first reel up with the container on wide screens */
@media (min-width: 1280px) {
  .reel-track {
    padding-inline: calc((100vw - var(--container)) / 2);
    scroll-padding-inline: calc((100vw - var(--container)) / 2);
  }
}

.reel-track:focus-visible {
  outline: 2px solid var(--olive-soft);
  outline-offset: 4px;
}

.reel {
  position: relative;
  flex: 0 0 clamp(200px, 26vw, 280px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--black-soft);
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(17 17 17 / 0.7), transparent 35%);
  pointer-events: none;
}

.reel-cap {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

/* Paused by a tap */
.reel.is-paused::before {
  content: "❚❚";
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.75rem;
  color: var(--beige);
}

/* ==========================================================================
   LOCATION
   ========================================================================== */
.visit {
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--section-y);
  background: var(--beige);
  color: var(--ink);
}

.info-strip {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.info-item {
  display: flex;
  gap: 1.1rem;
}

.info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  padding-top: 0.35rem;
}

.info-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Live open/closed state: the only status dot on the page */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a948a;
}

.status.is-open {
  color: var(--olive);
}

.status.is-open .status-dot {
  background: var(--olive);
  box-shadow: 0 0 0 4px rgb(62 75 48 / 0.18);
}

.map-frame {
  border: 1px solid var(--line-light);
  background: #d9d3c8;
}

.map-iframe {
  width: 100%;
  height: clamp(320px, 42vw, 440px);
  border: 0;
  filter: grayscale(0.55) sepia(0.12) contrast(1.02);
}

@media (min-width: 900px) {
  .info-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .info-item {
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  }

  .info-item:first-child {
    padding-left: 0;
  }

  .info-item + .info-item {
    border-left: 1px solid var(--line-light);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding-block: clamp(3.5rem, 6vw, 4.5rem) 2rem;
  background: var(--black);
  color: var(--paper-muted);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-wordmark {
  margin-right: 0;
  font-size: 1.7rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--olive-soft);
  border-radius: 50%;
  color: var(--olive-soft);
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.social-link:hover {
  background: var(--olive-soft);
  color: var(--black);
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--beige);
}

.footer-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--olive-soft);
}

.footer-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.875rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target */
  margin-block: -0.5rem;
  color: var(--olive-soft);
  transition: color 0.3s var(--ease-out);
}

.footer-list a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgb(189 184 174 / 0.7);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: auto 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .footer-brand {
    align-items: center;
    padding-right: clamp(2.5rem, 6vw, 5rem);
    border-right: 1px solid var(--line-dark);
  }
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: var(--z-toast);
  padding: 0.8rem 1.4rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid var(--olive-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.9s var(--ease-out),
      transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

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

  /* The card keeps its own tilt; reveal only fades it in */
  .js .member-card.reveal:not(.is-visible) {
    --rx: 24deg;
    --rz: -14deg;
    --lift: 30px;
  }

  .js .member-card.reveal {
    transform:
      perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz))
      translateY(var(--lift));
  }

  /* While the pointer drives the tilt, follow it closely and skip the reveal delay */
  .js .member-card.reveal.is-tracking {
    transition:
      opacity 0.9s var(--ease-out),
      transform 0.45s var(--ease-out);
  }

  /* Touch screens have no hover: sweep the foil band as the card crosses the viewport */
  @supports (animation-timeline: view()) {
    @media (hover: none) {
      .member-card-glare::before {
        animation: member-card-sweep linear both;
        animation-timeline: view();
        animation-range: entry 20% exit 20%;
      }
    }
  }
}

@keyframes member-card-sweep {
  from {
    transform: translateX(-30%);
  }

  to {
    transform: translateX(30%);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
