/* ============================================================
   IPAYA — Luxury Activewear · Presale / Waitlist
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Optima";
  src: url("assets/fonts/Optima.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Kooka";
  src: url("assets/fonts/Kooka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kooka";
  src: url("assets/fonts/Kooka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Kooka";
  src: url("assets/fonts/Kooka-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "TouristPartner";
  src: url("assets/fonts/TouristPartner.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ivory:       #EFEDE2;
  --ivory-deep:  #E6E3D4;
  --ivory-warm:  #F4F2EA;
  --sage:        #A0A06C;
  --olive:       #5A6520;
  --forest:      #46512D;
  --forest-deep: #353D1F;
  --warm-gray:   #96927D;
  --olive-brown: #6C6642;
  --earth:       #6E5B48;

  --ink:      #3B4322;   /* primary text on ivory */
  --ink-soft: #5d6444;   /* AA-passing muted text on ivory (5.3:1) */
  --placeholder: #6f6c58;
  --terracotta: #9c5a3c;
  --line:     rgba(70, 81, 45, 0.18);

  --font-body:    "Optima", "Optima Nova", Candara, "Gill Sans", "Segoe UI", sans-serif;
  --font-display: "Optima", "Optima Nova", Candara, "Gill Sans", sans-serif;
  --font-kooka:   "Kooka", "Optima", serif;
  --font-script:  "TouristPartner", "Brush Script MT", cursive;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.5;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Focus (WCAG 2.4.7) ---------- */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}
.waitlist__input:focus-visible { outline: none; }
.club :focus-visible,
.site-footer :focus-visible { outline-color: var(--ivory); }

/* ---------- Paper grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Shared ---------- */
.script { font-family: var(--font-script); font-weight: 400; }
.kooka  { font-family: var(--font-kooka); }

.star {
  width: 0.85em;
  height: 0.85em;
  fill: var(--olive);
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}
.eyebrow--center { justify-content: center; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================== TICKER ===================== */
.ticker {
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.ticker__track {
  display: inline-flex;
  will-change: transform;
  animation: ticker 38s linear infinite;
}
.ticker__track span { padding: 0.65rem 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
  padding: 1.15rem 0;
}
.site-header.is-stuck {
  background: rgba(239, 237, 226, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.7rem 0;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.site-header__side {
  font-size: 1.05rem;
  color: var(--olive-brown);
  justify-self: start;
}
.site-header__brand img {
  height: 28px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.site-header.is-stuck .site-header__brand img { height: 24px; }
.site-header__cta {
  justify-self: end;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0.15rem;
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.site-header__cta:hover { color: var(--olive); text-decoration-color: transparent; }

/* ===================== STICKY JOIN (conditional) ===================== */
.sticky-join {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--olive);
  color: var(--ivory);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px -16px rgba(53, 61, 31, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s;
}
.sticky-join[hidden] { display: none; }
.sticky-join.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sticky-join:hover { background: var(--forest); }
.sticky-join__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 8vw, 6rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 1.3rem 0 1.6rem;
}
.hero__title em {
  font-style: italic;
  color: var(--olive);
  position: relative;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.hero__copy.is-visible .hero__title-line { opacity: 1; transform: none; }
.hero__copy.is-visible .hero__title-line:nth-child(1) { transition-delay: 0.12s; }
.hero__copy.is-visible .hero__title-line:nth-child(2) { transition-delay: 0.26s; }
.hero__copy.is-visible .hero__title-line:nth-child(3) { transition-delay: 0.40s; }
.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 31rem;
  margin-bottom: 2rem;
}

/* ---- Hero media ---- */
.hero__media {
  position: relative;
  align-self: stretch;
}
.hero__photo {
  position: relative;
  border-radius: 220px 220px 18px 18px;
  overflow: hidden;
  background: var(--ivory-warm);
  box-shadow: 0 40px 80px -40px rgba(53, 61, 31, 0.55);
  aspect-ratio: 4 / 5;
}
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(90, 101, 32, 0) 58%, rgba(70, 81, 45, 0.1));
  pointer-events: none;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__seal {
  position: absolute;
  width: clamp(96px, 13vw, 150px);
  height: auto;
  left: -3.2rem;
  bottom: -1.4rem;
  filter: drop-shadow(0 10px 24px rgba(53, 61, 31, 0.35));
}
.spin { animation: spin 64s linear infinite; }
.spin-slow { animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .spin-slow { animation: none; } }

/* ---- Hero scroll cue ---- */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0.5rem 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--olive), transparent);
  animation: drip 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ===================== WAITLIST FORM ===================== */
.waitlist { position: relative; }
.waitlist__row {
  display: flex;
  gap: 0.5rem;
  background: var(--ivory-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 0.3rem;
  max-width: 30rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.waitlist__row:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(90, 101, 32, 0.1);
}
.waitlist__input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 0.55rem 1rem;
  min-width: 0;
}
.waitlist__input::placeholder { color: var(--placeholder); }
.waitlist__input:focus { outline: none; }
.waitlist__btn {
  flex: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  background: linear-gradient(115deg, var(--forest) 0%, var(--olive) 48%, var(--olive) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  transition: background-position 0.5s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.waitlist__btn:hover {
  background-position: 0 0;
  transform: scale(1.02);
  box-shadow: 0 8px 20px -10px rgba(53, 61, 31, 0.6);
}
.waitlist__btn:active { transform: scale(0.99); }
.waitlist__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  padding-left: 0.3rem;
  transition: opacity 0.3s;
}
.waitlist__error {
  font-size: 0.82rem;
  color: var(--terracotta);
  margin-top: 0.7rem;
  padding-left: 0.3rem;
}
.waitlist__row.is-invalid {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(156, 90, 60, 0.12);
}

/* success — the orchid "bloom" moment */
.waitlist__success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding-left: 0.3rem;
}
.waitlist__bloom {
  width: 52px; height: auto;
  transform-origin: bottom center;
}
.waitlist__success-text {
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 27rem;
}
.waitlist__success-text em { font-family: var(--font-kooka); font-style: normal; color: var(--olive); }
.waitlist__actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; }
.waitlist__action {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--olive);
  border: 0; background: none; cursor: pointer; font-family: inherit;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.waitlist__action:hover { color: var(--forest); border-color: var(--olive); }

.waitlist.is-success .waitlist__row,
.waitlist.is-success .waitlist__note,
.waitlist.is-success .waitlist__error { display: none; }
.waitlist.is-success .waitlist__success { display: flex; }
.waitlist.is-success .waitlist__bloom { animation: bloom 0.9s var(--ease) both; }
.waitlist.is-success .waitlist__success-text { animation: rise 0.7s var(--ease) 0.18s both; }
.waitlist.is-success .waitlist__actions { animation: rise 0.7s var(--ease) 0.32s both; }

@keyframes bloom {
  0%   { opacity: 0; transform: scale(0.4) rotate(-12deg); filter: blur(3px); }
  60%  { opacity: 1; transform: scale(1.06) rotate(2deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ===================== PERFORMANCE / FABRIC ===================== */
.perf {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
}
.perf__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.perf__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ivory-warm);
  aspect-ratio: 4 / 4.1;
  box-shadow: 0 30px 60px -42px rgba(53, 61, 31, 0.55);
}
.perf__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.perf__chip {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(53, 61, 31, 0.82);
  color: var(--ivory);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.perf__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1rem 0;
}
.perf__lede {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 33rem;
  margin-bottom: 2rem;
}
.perf__specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.perf__spec {
  background: var(--ivory-deep);
  padding: 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
}
.perf__icon {
  grid-row: 1 / 3;
  width: 27px; height: 27px;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perf__spec-name {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.perf__spec-desc {
  grid-column: 2;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.perf__disclaimer {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .perf__inner { grid-template-columns: 1fr; }
  .perf__media { max-width: 30rem; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .perf__specs { grid-template-columns: 1fr; }
}

/* ===================== MANIFESTO ===================== */
.manifesto {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.manifesto__bg {
  position: absolute; inset: 0;
  background: url("assets/img/tropical.jpg") center 30% / cover no-repeat;
  background: image-set(url("assets/img/tropical.webp") type("image/webp"),
                        url("assets/img/tropical.jpg") type("image/jpeg")) center 30% / cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
  z-index: -2;
}
.manifesto__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(53, 61, 31, 0.3) 0%, rgba(53, 61, 31, 0.7) 78%),
    linear-gradient(180deg, rgba(53, 61, 31, 0.55), rgba(40, 46, 28, 0.65));
}
.manifesto__content {
  text-align: center;
  color: var(--ivory);
  max-width: 52rem;
  padding: 5rem var(--gutter);
}
.manifesto__orchid {
  width: 56px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.9;
}
.manifesto__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.manifesto__body {
  margin: 1.8rem auto 0;
  max-width: 38rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.16rem);
  line-height: 1.75;
  color: rgba(239, 237, 226, 0.88);
}

/* ===================== PILLARS ===================== */
.pillars {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
  text-align: center;
}
.pillars__list {
  list-style: none;
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}
.pillar {
  flex: 1 1 180px;
  padding: 1rem clamp(1rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.pillar + .pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 56%;
  background: var(--line);
}
.pillar__es {
  font-family: var(--font-kooka);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--olive);
  line-height: 1.05;
}
.pillar__en {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================== GLIMPSE / LOOKBOOK ===================== */
.glimpse {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}
.glimpse__head {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.glimpse__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 1.1rem;
  color: var(--ink);
}
.glimpse__sub {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.7;
}
.glimpse__grid {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
}
.g-item { display: flex; flex-direction: column; }
.g-item__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ivory-warm);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}
.g-item__media picture { display: block; width: 100%; height: 100%; }
.g-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.g-item:hover .g-item__media img { transform: scale(1.05); }
.g-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0.15rem 0;
}
.g-item__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}
.g-item__meta {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  white-space: nowrap;
}
.g-item__media--motion { background: rgb(245, 244, 238); }
.g-item__media--motion img { object-position: center 42%; }
.g-item--orchid .g-item__media { background: var(--forest); display: grid; place-items: center; }
.g-item--orchid .g-item__media img {
  object-fit: contain;
  padding: 1.6rem;
  width: auto; height: auto;
  max-width: 78%; max-height: 78%;
}

.glimpse__cta { text-align: center; margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.btn-pill {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--olive);
  border-radius: 999px;
  padding: 0.95rem 2rem;
  transition: background 0.4s var(--ease), transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-pill:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(53, 61, 31, 0.6);
}

/* ===================== CLUB ===================== */
.club {
  position: relative;
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--gutter);
}
.club__texture {
  position: absolute; inset: 0;
  z-index: -1;
  background: url("assets/img/pattern-damask.png") center / 360px repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
}
.club__inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.club__badge {
  width: clamp(116px, 16vw, 168px);
  height: auto;
  margin: 0 auto 1.6rem;
  opacity: 0.95;
}
.club__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}
.club__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.club__body {
  margin: 1.3rem auto 2.4rem;
  max-width: 34rem;
  color: rgba(239, 237, 226, 0.82);
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.14rem);
}

/* club form on dark */
.club .waitlist { display: flex; flex-direction: column; align-items: center; }
.club .waitlist__row {
  background: rgba(239, 237, 226, 0.07);
  border-color: rgba(239, 237, 226, 0.25);
  width: 100%;
}
.club .waitlist__input { color: var(--ivory); }
.club .waitlist__input::placeholder { color: rgba(239, 237, 226, 0.72); }
.club .waitlist__btn {
  background: linear-gradient(115deg, var(--sage) 0%, var(--ivory) 48%, var(--ivory) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--forest);
}
.club .waitlist__btn:hover { background-position: 0 0; color: var(--forest-deep); }
.club .waitlist__note { color: rgba(239, 237, 226, 0.72); }
.club .waitlist__row:focus-within {
  border-color: var(--ivory);
  box-shadow: 0 0 0 4px rgba(239, 237, 226, 0.12);
}
.club .waitlist__success { align-items: center; text-align: center; }
.club .waitlist__success-text { color: var(--ivory); }
.club .waitlist__success-text em { color: var(--sage); }
.club .waitlist__actions { justify-content: center; }
.club .waitlist__action { color: var(--ivory); border-color: rgba(239, 237, 226, 0.3); }
.club .waitlist__action:hover { color: var(--sage); border-color: var(--sage); }

.waitlist--lg .waitlist__row { max-width: 32rem; padding: 0.5rem; }
.waitlist--lg .waitlist__input { padding: 0.7rem 1.1rem; }
.waitlist--lg .waitlist__btn { padding: 0.85rem 1.7rem; }

.club__perks {
  list-style: none;
  margin: 2.8rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem clamp(1.5rem, 4vw, 3rem);
  max-width: 40rem;
}
.club__perks li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(239, 237, 226, 0.9);
}
.club__perk-num {
  font-family: var(--font-kooka);
  font-size: 0.9rem;
  color: var(--sage);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--forest-deep);
  color: var(--ivory);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 2.5rem;
  text-align: center;
}
.site-footer__inner { max-width: 40rem; margin: 0 auto; }
.site-footer__mark { width: clamp(120px, 18vw, 168px); height: auto; margin: 0 auto 2rem; opacity: 0.95; }
.site-footer__signoff {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(239, 237, 226, 0.85);
}
.site-footer__signoff .script { font-size: 1.7rem; color: var(--sage); display: inline-block; margin-top: 0.3rem; }
.site-footer__nav {
  margin: 2.2rem 0 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(239, 237, 226, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem 0.9rem;
}
.site-footer__nav a { transition: color 0.3s; padding: 0.45rem 0.15rem; }
.site-footer__nav a:hover { color: var(--sage); }
.site-footer__nav .dot { color: rgba(239, 237, 226, 0.4); }
.site-footer__es {
  font-family: var(--font-kooka);
  font-size: 1.1rem;
  color: var(--sage);
  margin-bottom: 1.6rem;
}
.site-footer__legal {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(239, 237, 226, 0.62);
}

/* ===================== REVEAL ANIMATION ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title-line { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  .waitlist.is-success .waitlist__bloom,
  .waitlist.is-success .waitlist__success-text,
  .waitlist.is-success .waitlist__actions { animation: none; }
  .sticky-join { transition: opacity 0.001s; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__copy { max-width: none; }
  .hero__media { max-width: 26rem; margin: 0 auto; width: 100%; }
  .hero__seal { left: auto; right: -1rem; }
  .glimpse__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .br-soft { display: none; }
  .glimpse__title, .manifesto__title { font-size: 1.95rem; line-height: 1.16; }
  .manifesto__title { letter-spacing: 0; }
}

@media (max-width: 620px) {
  .site-header__side { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__brand { justify-self: start; }
  .hero__title { font-size: clamp(3rem, 16vw, 4.4rem); }
  .waitlist__row { flex-wrap: wrap; border-radius: 18px; padding: 0.5rem; }
  .waitlist__input { flex-basis: 100%; text-align: center; padding: 0.7rem; }
  .waitlist__btn { flex-basis: 100%; padding: 0.85rem; }
  .waitlist__note, .waitlist__error { text-align: center; }
  .waitlist__success { align-items: center; text-align: center; }
  .waitlist__actions { justify-content: center; }
  .pillar + .pillar::before { display: none; }
  .pillar { flex-basis: 45%; }
  .hero__photo { border-radius: 160px 160px 14px 14px; }
  .sticky-join { bottom: 1rem; font-size: 0.7rem; padding: 0.8rem 1.3rem; }
}
