/* Home page: the RAÍ/CES poster, the strip, the three rituals and the waitlist. */

/* ---- poster ---- */
.stack { position: relative; margin: 0 auto; width: 93cqw; padding-top: 7cqw; }
.row { display: flex; justify-content: space-between; align-items: flex-end; }
.L { --f: saturate(1); display: block; margin: 0; font-family: var(--display); font-size: 41cqw; line-height: 0.74; letter-spacing: -0.02em; height: 31.5cqw; overflow: visible; filter: var(--f); }
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; }
.L.k { color: var(--ink); }
.L.g { color: var(--grey); }
.ph { --f: saturate(1.1) contrast(1.05); --py: 0px; background-size: cover; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph1 { background-image: url(/img/serranos.webp); background-position: 50% calc(55% + var(--py)); }
.ph2 { background-image: url(/img/nord.webp); background-position: 42% calc(45% + var(--py)); }
.tower { position: absolute; left: 46%; bottom: -0.5cqw; height: 74cqw; width: auto; transform: translateX(-50%); display: block; filter: saturate(1.1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 90%); mask-image: linear-gradient(to bottom, #000 66%, transparent 90%); will-change: translate; }
.tag { font-family: var(--display); font-size: clamp(24px, 4vw, 58px); line-height: 1.05; margin: 2.4cqw 0 0; text-align: center; color: var(--muted); }

/* load sequence: letters rise out of a blur one by one, then the tower, then the caption */
.js .L { animation: rise 1.25s var(--ease) both; animation-delay: calc(120ms + var(--i) * 75ms); }
.js .tower { animation: tower 1.7s var(--ease) 420ms both; }
.js .tag { animation: track 1.6s var(--ease) 900ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14%); filter: blur(14px) var(--f); } to { opacity: 1; transform: none; filter: blur(0) var(--f); } }
@keyframes tower { from { opacity: 0; transform: translate(-50%, 7%) scale(0.97); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes track { from { opacity: 0; letter-spacing: 1.1em; } to { opacity: 1; } }

/* ---- intro line under the poster ---- */
.intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.intro p { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.5; }

/* ---- moving strip ---- */
.strip { overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 18px 0; user-select: none; }
.strip-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-set { display: flex; align-items: center; flex: none; }
.strip-set span { font-family: var(--display); font-size: clamp(36px, 6cqw, 84px); line-height: 1; letter-spacing: -0.03em; padding: 0 0.35em; white-space: nowrap; }
.strip-set .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.strip-set i { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--ink); flex: none; font-size: clamp(36px, 6cqw, 84px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- three rituals ---- */
.rituals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 96px 0 24px; }
.ritual { padding: 0 3cqw 0 0; }
.ritual + .ritual { padding-left: 3cqw; border-left: 1px solid var(--line); }
.ritual .num { font-family: var(--display); font-size: 15px; letter-spacing: 0.02em; color: var(--muted); }
.ritual h3 { margin: 18px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.2cqw, 58px); line-height: 0.92; letter-spacing: -0.04em; }
.ritual p { margin: 0; max-width: 22rem; font-size: 17px; line-height: 1.55; color: #333; }
.rituals-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-top: 96px; }
.rituals-head h2 { margin: 0; font-size: clamp(14px, 1.2cqw, 16px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.rituals-head p { margin: 0; max-width: 30rem; color: var(--muted); font-size: 17px; }
.rituals { padding-top: 40px; }

/* ---- waitlist ---- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4cqw; margin-top: 96px; padding: 96px 0 88px; border-top: 2px solid var(--ink); }
.join h2 { margin: 0; font-weight: 900; font-size: clamp(44px, 6.4cqw, 88px); line-height: 0.92; letter-spacing: -0.055em; }
.join h2 .out { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: -0.04em; }
.join .lede { margin: 28px 0 0; max-width: 28rem; font-size: 18px; line-height: 1.5; color: var(--muted); }
form { display: flex; flex-direction: column; }
.field { position: relative; display: block; margin-top: 22px; }
.field > span { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.field small { text-transform: none; letter-spacing: 0; }
.field input { display: block; width: 100%; border: 0; border-bottom: 2px solid var(--grey); border-radius: 0; background: transparent; padding: 10px 0 12px; font: 500 19px/1.3 "Inter Tight", system-ui, sans-serif; color: var(--ink); outline: none; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after, .field.filled::after { transform: scaleX(1); }
.field:focus-within > span { color: var(--ink); }
.field.bad::after { background: var(--error); transform: scaleX(1); }
fieldset { border: 0; margin: 26px 0 0; padding: 0; }
legend { padding: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pills label:hover span { background: rgba(0,0,0,0.06); }
.pills input:checked + span { background: var(--ink); color: var(--bg); }
.pills input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.check:first-of-type { margin-top: 28px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #000; flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.check .opt { color: var(--ink); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 36px; align-self: flex-start; }
/* the quiet way in for people who are already members */
.member-in { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.member-in a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.status { margin: 16px 0 0; min-height: 1.5em; font-size: 15px; }
.status.err { color: var(--error); }
.done { display: none; }
.done h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6cqw, 64px); letter-spacing: -0.04em; line-height: 0.95; }
.done p { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 26rem; }
form[hidden], form.sent { display: none; }
form.sent + .done { display: block; animation: rise 1s var(--ease) both; }

@container (max-width: 820px) {
  .intro { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .rituals-head { flex-direction: column; align-items: flex-start; padding-top: 64px; }
  .rituals { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .ritual, .ritual + .ritual { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .join { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 0; margin-top: 64px; }
}
@container (max-width: 520px) {
  .spaced { letter-spacing: 0.22em; }
  .js .tag { animation-name: fade; }
}
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

.field input::placeholder { color: #b4b4b4; }
legend small { text-transform: none; letter-spacing: 0; }

/* optional questions on the confirm page */
.profile { max-width: 46rem; margin-top: 48px; padding-top: 8px; border-top: 2px solid var(--ink); }
.profile fieldset { margin-top: 30px; }
.profile-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.skiplink { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.skiplink:hover { color: var(--ink); }

/* rsvp page: one gathering, one question */
.rsvp [hidden] { display: none !important; }
.rsvp .r-hi { margin: 0 0 22px; color: var(--muted); }
.rsvp h1.r-title { font-size: clamp(44px, 8cqw, 112px); line-height: 0.9; overflow-wrap: anywhere; }
.rsvp h1.r-title .out { -webkit-text-stroke-width: clamp(1.5px, 0.2cqw, 2.5px); }
.r-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.r-meta > div { padding: 16px 32px 18px 0; min-width: 0; }
.r-meta > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.r-meta dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.r-meta dd { margin: 6px 0 0; font-size: clamp(18px, 2cqw, 24px); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rsvp .r-desc { white-space: pre-line; overflow-wrap: anywhere; }
.r-answer { max-width: 46rem; margin-top: 48px; padding: clamp(24px, 4cqw, 40px); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--grey); }
.r-state { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4cqw, 52px); line-height: 0.95; letter-spacing: -0.04em; }
.r-note { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.r-place { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.r-venue { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.8cqw, 32px); line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.r-address { margin: 10px 0 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.r-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rlink { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 700; transition: background-color .3s var(--ease), color .3s var(--ease); }
.rlink::after { content: "↗"; margin-left: 8px; font-weight: 500; }
.rlink:hover { background: var(--ink); color: var(--bg); }
.r-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.r-photos p { margin: 0; font-weight: 600; }
.r-photos .rpill { height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.r-photos .rpill:hover { background: var(--ink); color: var(--bg); }
.r-photos .linkish { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 32px; }
.r-answer .status { margin-top: 20px; min-height: 0; }
.r-answer .status:empty { margin-top: 0; }
/* the quieter of the two answers: same shape, outlined dot */
.cta.alt { font-weight: 600; color: var(--muted); }
.cta.alt .dot { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cta.alt:hover { color: var(--ink); }
.cta.alt[disabled] .dot::before { border-color: rgba(0,0,0,0.2); border-top-color: var(--ink); }

@container (max-width: 520px) {
  .r-meta { flex-direction: column; }
  .r-meta > div, .r-meta > div + div { padding: 14px 0; border-left: 0; }
  .r-meta > div + div { border-top: 1px solid var(--line); }
  .r-actions { flex-direction: column; align-items: flex-start; }
  .r-actions .cta { white-space: normal; }
  .r-answer { box-shadow: 5px 5px 0 var(--grey); }
}

/* "Bring someone": the member's invite link on the confirm page */
.share { max-width: 46rem; margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--ink); }
.share[hidden], .share [hidden] { display: none !important; }
.share-h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5cqw, 64px); line-height: 0.92; letter-spacing: -0.04em; }
.share-sub { margin: 16px 0 0; max-width: 32rem; font-size: 18px; line-height: 1.5; color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 16px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: -0.01em; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.sbtn:hover { background: var(--ink); color: var(--bg); }
.sbtn-main { background: var(--ink); color: var(--bg); }
.sbtn-main::after { content: "↗"; margin-left: 10px; font-weight: 500; }
.sbtn-main:hover { background: #222; }
.sbtn.done { background: var(--ink); color: var(--bg); }
.share-link { display: block; margin-top: 24px; }
.share-link span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.share-link input { display: block; width: 100%; margin-top: 8px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid var(--grey); border-radius: 0; background: transparent; font: 600 17px/1.3 "Inter Tight", system-ui, sans-serif; font-feature-settings: "calt" 0; font-variant-ligatures: none; color: var(--ink); outline: none; text-overflow: ellipsis; }
.share-link input:focus { border-bottom-color: var(--ink); }
[data-state="thanks"] .share { margin-top: 48px; }
@container (max-width: 520px) {
  .share-btns .sbtn { flex: 1 1 calc(50% - 5px); padding: 0 14px; }
}

/* suggestion list under a text field (barrios, places). Free text always allowed. */
.cb-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--grey); max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.cb-list[hidden] { display: none !important; }
.cb-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cb-opt[aria-selected="true"], .cb-opt:hover { background: var(--ink); color: var(--bg); }
.cb-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.cb-sub { font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.cb-opt[aria-selected="true"] .cb-sub, .cb-opt:hover .cb-sub { color: #bdbdbd; }
.cb-opt.cb-quiet .cb-title { font-weight: 500; font-style: italic; }

/* ---- Homepage FAQ & Valencia guides link ---- */
.faq { margin-top: clamp(56px, 8cqw, 108px); padding-top: clamp(28px, 4cqw, 48px); border-top: 2px solid var(--ink); }
.faq-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.faq-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5cqw, 56px); line-height: 0.92; letter-spacing: -0.04em; }
.faq-guides { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.faq-list { max-width: 48rem; margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 22px; max-width: 42rem; font-size: 17px; line-height: 1.55; color: var(--muted); }
