/* /features: a story told in photographs and things you can try.
   Builds on landing.css, together.css and system.css (tokens).
   hero · chapter bar · I Discover · interlude · II Messages · III Privacy
   · interlude · IV Community · V By level · the invitation */

/* chapter numerals */
.fx-num {
  display: block; width: max-content; margin-bottom: var(--space-1);
  font-family: var(--type-serif); font-style: italic; font-weight: 400;
  font-size: clamp(56px, 6.4vw, 96px); line-height: 1; letter-spacing: 0.02em;
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.42;
}
.st-note { margin: var(--space-4) 0 0; text-align: center; font-size: var(--fs-xs); color: var(--text-3); }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- hero: one photograph, full bleed ---------- */
.st-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: min(100svh, 980px); padding-bottom: clamp(64px, 10vh, 120px); }
.st-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; filter: grayscale(0.15) brightness(0.6); }
.st-hero-img.is-loaded { animation: stSettle 9s var(--ease-out) both; }
.st-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 70% 60% at 0% 100%, rgba(107, 26, 48, 0.45), transparent 70%),
  linear-gradient(180deg, rgba(11, 10, 12, 0.7) 0%, rgba(11, 10, 12, 0.1) 30%, rgba(11, 10, 12, 0.5) 62%, var(--c-noir) 100%); }
.st-hero > .container, .st-final > .container { width: 100%; }
.st-hero-inner { padding-top: 160px; }
.st-hero .mono-tag { display: flex; margin-top: var(--space-5); }
.st-hero h1.display-xl { font-size: var(--fs-h1); max-width: 13ch; margin-top: var(--space-4); }
.st-hero .section-lede { max-width: 44ch; font-size: var(--fs-lg); color: rgba(242, 236, 223, 0.86); }
@keyframes stSettle { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------- chapter bar: sticky, shows where you are, keeps the invitation in reach ---------- */
.st-chapters { position: sticky; top: var(--st-top, 0px); z-index: var(--z-sticky); background: rgba(11, 10, 12, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--border-1); transition: top var(--dur-3) var(--ease-out); }
body:has(header.nav-hidden) .st-chapters { top: 0; }
.st-chapters-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.st-chapters ol { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.st-chapters ol::-webkit-scrollbar { display: none; }
.st-chapters a:not(.btn) { position: relative; display: inline-flex; align-items: baseline; gap: var(--space-2); padding: 12px 14px; white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); transition: color var(--dur-2) ease; }
.st-chapters a:not(.btn) span { font-family: var(--type-serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--c-gold); }
.st-chapters a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--accent-fill); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.st-chapters a:not(.btn):hover { color: var(--text-1); }
.st-chapters a[aria-current="true"] { color: var(--text-1); }
.st-chapters a[aria-current="true"]::after { transform: scaleX(1); }
.st-chapters-cta { flex-shrink: 0; padding: 10px 18px; font-size: 11px; }
.st-chapters-progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent-fill); transform: scaleX(0); transform-origin: left; opacity: 0.8; }
@supports (animation-timeline: scroll()) {
  .st-chapters-progress { animation: stProgress linear both; animation-timeline: scroll(root); }
}
@keyframes stProgress { to { transform: scaleX(1); } }

/* ---------- chapters ---------- */
.st-chapter { padding: var(--section-y) 0; scroll-margin-top: 64px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.st-copy .display-xl, .st-head .display-xl, .fx-ledger-head .display-xl { font-size: var(--fs-h2); }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.st-head .section-lede { max-width: 42ch; margin-bottom: var(--space-2); }
.st-discover { background: radial-gradient(ellipse 58% 44% at 75% 50%, var(--wash-wine), transparent 72%), radial-gradient(ellipse 40% 28% at 10% 80%, var(--wash-wine-soft), transparent 70%), linear-gradient(180deg, var(--noir) 0%, var(--tint-wine) 50%, var(--noir) 100%); }
.st-messages { background: radial-gradient(ellipse 58% 44% at 60% 60%, var(--wash-gold), transparent 72%), radial-gradient(ellipse 40% 28% at 10% 20%, var(--wash-gold-soft), transparent 70%), linear-gradient(180deg, var(--noir) 0%, var(--tint-gold) 50%, var(--noir) 100%); }
.st-privacy { background: radial-gradient(ellipse 58% 44% at 72% 50%, var(--wash-forest), transparent 72%), radial-gradient(ellipse 40% 28% at 12% 80%, var(--wash-forest-soft), transparent 70%), linear-gradient(180deg, var(--noir) 0%, var(--tint-forest) 50%, var(--noir) 100%); }
.st-community .pg-more { margin-top: var(--space-6); }

/* the search sentence, inside Discover */
.st-search { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border-1); }
.st-search-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-3); }
.st-search-label b { font-weight: 400; color: var(--c-gold-bright); margin-left: 6px; }
.fx-sentence { margin: var(--space-3) 0 0; font-family: var(--type-serif); font-size: clamp(25px, 2.5vw, 36px); line-height: 1.4; letter-spacing: -0.01em; color: var(--text-1); }
/* Elina's closing swashes (r, e) reach past the word; gradient text only
   paints inside its box, so give the right side room and take it back with
   a negative margin. */
.fx-pick { display: inline; padding: 0 0.24em 0 0.06em; margin-right: -0.18em; border: 0; border-bottom: 1px dashed rgba(199, 166, 92, 0.55); border-radius: 0; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; font: inherit; font-family: var(--type-script); font-style: italic; font-weight: 300; cursor: pointer; transition: border-color var(--dur-2) ease; }
.fx-pick:hover { border-bottom-style: solid; border-color: var(--c-gold-bright); }
.fx-pick.turn { animation: fxTurn 0.45s ease; }
@keyframes fxTurn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.fx-hint { margin: var(--space-3) 0 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-3); }

/* ---------- I: the Discover deck ---------- */
.st-deck-show { display: grid; justify-items: center; gap: var(--space-5); }
.dk-deck { position: relative; width: min(360px, 100%); aspect-ratio: 3 / 4.15; touch-action: pan-y; }
.dk-card { --i: 0; --dx: 0px; position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-xl); background: #160f13; box-shadow: var(--shadow-3), inset 0 0 0 1px var(--border-1);
  transform: translate(var(--dx), calc(var(--i) * 16px)) rotate(calc(var(--dx) / 18)) scale(calc(1 - var(--i) * 0.05));
  opacity: calc(1 - var(--i) * 0.25); z-index: calc(10 - var(--i));
  transition: transform 0.55s var(--ease-spring), opacity var(--dur-3) ease; user-select: none; -webkit-user-select: none; }
.dk-card[data-i="3"], .dk-card[data-i="4"] { opacity: 0; }
.dk-card.dragging { transition: none; cursor: grabbing; }
.dk-card[data-i="0"] { cursor: grab; }
.dk-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: brightness(0.92); }
.dk-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10, 8, 10, 0.92) 88%); }
.dk-info { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: grid; gap: var(--space-2); }
.dk-name { font-family: var(--type-serif); font-size: 27px; line-height: 1.1; color: var(--text-1); }
.dk-city { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.dk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-row .ds-chip { padding: 5px 10px; font-size: 9.5px; }
.dk-kink { padding: 5px 10px; border-radius: var(--radius-pill); font-size: 12px; color: var(--text-1); background: rgba(242, 236, 223, 0.1); }
.dk-kink i { font-style: normal; color: var(--c-gold-bright); margin-right: 5px; }
.dk-stamp { position: absolute; z-index: 2; top: 26px; padding: 6px 14px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; transition: opacity var(--dur-1) linear; }
.dk-stamp--like { left: 22px; color: var(--c-gold-bright); box-shadow: inset 0 0 0 2px var(--c-gold-bright); transform: rotate(-12deg); }
.dk-stamp--pass { right: 22px; color: var(--text-2); box-shadow: inset 0 0 0 2px var(--text-2); transform: rotate(12deg); }
.dk-card.out-right { transform: translate(150%, 0) rotate(22deg); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s ease; }
.dk-card.out-left { transform: translate(-150%, 0) rotate(-22deg); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s ease; }
.dk-controls { display: flex; align-items: center; gap: var(--space-5); }
.dk-btn { display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-3) ease, background var(--dur-3) ease; }
.dk-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-pass { color: var(--text-2); background: rgba(242, 236, 223, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.2); }
.dk-like { color: var(--c-noir); background: var(--accent-fill); box-shadow: 0 10px 30px rgba(199, 166, 92, 0.3); }
.dk-like svg { fill: currentColor; stroke: none; }
.dk-btn:hover { transform: scale(1.07); }
.dk-btn:active { transform: scale(0.93); }
.dk-left { min-width: 150px; text-align: center; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.dk-left b { display: block; font-family: var(--type-serif); font-weight: 400; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--text-1); }
.dk-tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.dk-flash { position: absolute; z-index: 20; left: 50%; bottom: 14px; translate: -50% 0; white-space: nowrap; padding: 8px 14px; border-radius: var(--radius-pill); font-size: var(--fs-xs); color: var(--text-1); background: var(--surface-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-2); opacity: 0; transition: opacity var(--dur-3) ease, translate var(--dur-3) var(--ease-spring); pointer-events: none; }
.dk-flash.in { opacity: 1; translate: -50% -6px; }
.dk-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--space-3); padding: var(--space-5); text-align: center; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--border-2); animation: dsRise var(--dur-3) var(--ease-out); }
.dk-empty b { font-family: var(--type-serif); font-weight: 400; font-size: 24px; }
.dk-empty small { color: var(--text-2); font-size: var(--fs-sm); }
.dk-empty .btn { justify-self: center; margin-top: var(--space-2); }

/* ---------- interludes: a photograph and a line ---------- */
.st-interlude { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; margin: 0; height: clamp(340px, 64vh, 660px); }
.st-interlude img { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; filter: grayscale(0.2) brightness(0.48); }
@supports (animation-timeline: view()) {
  .st-interlude img { animation: stDrift linear both; animation-timeline: view(); }
  @keyframes stDrift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
}
.st-interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--c-noir) 0%, transparent 26%, transparent 74%, var(--c-noir) 100%); }
.st-interlude--wine::after { background: linear-gradient(180deg, var(--c-noir) 0%, transparent 26%, transparent 74%, var(--c-noir) 100%), radial-gradient(ellipse 70% 70% at 50% 50%, rgba(107, 26, 48, 0.35), transparent 75%); }
.st-interlude figcaption { padding: 0 var(--gutter); text-align: center; font-family: var(--type-serif); font-size: clamp(38px, 6vw, 92px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-1); text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.st-interlude figcaption em { display: inline-block; font-family: var(--type-display); font-style: italic; font-weight: 300; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.06em; }

/* ---------- II: messages and terms ---------- */
.st-messages .st-grid { grid-template-columns: 1fr; gap: var(--space-7); }
.st-messages .st-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: var(--space-7); align-items: end; }
.st-messages .st-copy > :not(.st-facts) { grid-column: 1; }
.st-facts { grid-column: 2; grid-row: 1 / span 4; align-self: end; list-style: none; margin: 0; padding: 0; }
.st-facts li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border-1); }
.st-facts b { font-family: var(--type-serif); font-weight: 400; font-size: var(--fs-lg); color: var(--text-1); }
.st-chat-show { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.st-chat-show > .st-note { grid-column: 1 / -1; }
/* the chat: a phone in dark glass with a gold hairline bezel */
.ch-window { position: relative; display: flex; flex-direction: column; height: 560px; overflow: hidden; border-radius: 42px; background: radial-gradient(120% 55% at 50% 0%, rgba(107, 26, 48, 0.26), transparent 62%), linear-gradient(180deg, #120f13, #09080a); box-shadow: 0 0 0 9px #070608, 0 0 0 10px rgba(199, 166, 92, 0.38), 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 90px rgba(199, 166, 92, 0.06); }
.ch-window::before { content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #040304; }
.ch-window::after { content: ""; position: absolute; z-index: 2; bottom: 8px; left: 50%; width: 118px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(242, 236, 223, 0.22); pointer-events: none; }
.ch-head { display: flex; align-items: center; gap: var(--space-3); padding: 48px var(--space-5) var(--space-3); box-shadow: inset 0 -1px 0 rgba(199, 166, 92, 0.14); }
.ch-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--type-display); font-style: italic; font-size: 19px; color: var(--c-gold-bright); background: radial-gradient(circle at 30% 25%, #3a1422, #14080d); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.45); }
.ch-who { display: grid; flex: 1; gap: 2px; }
.ch-who b { font-family: var(--type-serif); font-weight: 400; font-size: 18px; color: var(--text-1); }
.ch-who small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ch-who small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold-bright); box-shadow: 0 0 8px rgba(228, 198, 135, 0.8); }
.ch-vanish-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 11.5px; color: var(--tier-black); box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.55); animation: dsRise var(--dur-2) var(--ease-out); }
.ch-vanish-badge[hidden] { display: none; }
.ch-vanish-badge svg, .ch-msg .t svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ch-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: var(--space-5) var(--space-4); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 10px), transparent); }
.ch-msgs::-webkit-scrollbar { display: none; }
.ch-msg { max-width: 78%; align-self: flex-start; padding: 11px 15px; border-radius: 20px 20px 20px 6px; font-family: var(--type-serif); font-size: 15.5px; line-height: 1.45; color: var(--text-1); background: rgba(242, 236, 223, 0.055); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.07); animation: chIn var(--dur-3) var(--ease-spring) both; }
.ch-msg.mine { align-self: flex-end; border-radius: 20px 20px 6px 20px; color: #f6eedd; background: linear-gradient(150deg, rgba(122, 30, 56, 0.92), rgba(70, 15, 31, 0.96)); box-shadow: inset 0 0 0 1px rgba(228, 198, 135, 0.22), 0 8px 22px rgba(60, 10, 25, 0.35); }
.ch-msg .t { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; opacity: 0.55; }
.ch-msg.mine .t { justify-content: flex-end; }
.ch-termcard { align-self: flex-end; width: min(250px, 85%); padding: 14px 16px; border-radius: 16px 16px 6px 16px; background: linear-gradient(160deg, #19131b, #0c0a0d); color: var(--text-1); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.55), inset 0 0 0 4px #0e0b0f, inset 0 0 0 5px rgba(199, 166, 92, 0.2), 0 10px 24px rgba(0, 0, 0, 0.4); animation: chIn var(--dur-3) var(--ease-spring) both; }
.ch-termcard b { display: inline-block; padding: 0 0.08em 0.12em 0; font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 20px; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-termcard small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ch-termcard.signed small { color: var(--c-gold-bright); }
.ch-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(242, 236, 223, 0.055); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.07); }
.ch-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: chDot 1s infinite ease-in-out; }
.ch-typing i:nth-child(2) { animation-delay: .15s; } .ch-typing i:nth-child(3) { animation-delay: .3s; }
.ch-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px var(--space-4) 4px; box-shadow: inset 0 1px 0 rgba(199, 166, 92, 0.12); }
.ch-timer { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(242, 236, 223, 0.04); }
.ch-timer span { margin: 0 6px 0 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ch-timer button { padding: 5px 8px; border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: 11.5px; color: var(--text-3); cursor: pointer; transition: background var(--dur-2) ease, color var(--dur-2) ease; }
.ch-timer button:hover { color: var(--text-1); }
.ch-timer button[aria-pressed="true"] { color: var(--text-1); background: rgba(176, 68, 95, 0.32); box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.6); }
.ch-terms-btn { flex-shrink: 0; padding: 7px 12px; border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: 12px; color: var(--c-gold-bright); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.5); cursor: pointer; transition: background var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.ch-terms-btn:hover { background: rgba(199, 166, 92, 0.1); box-shadow: inset 0 0 0 1px var(--c-gold-bright); }
.ch-terms-btn:disabled { opacity: 0.5; cursor: default; }
.ch-compose { display: flex; gap: var(--space-2); padding: 8px var(--space-4) 24px; }
.ch-compose input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid rgba(199, 166, 92, 0.18); border-radius: var(--radius-pill); background: rgba(242, 236, 223, 0.035); font-family: var(--type-serif); font-size: 15px; color: var(--text-1); }
.ch-compose input::placeholder { color: var(--text-3); }
.ch-compose input:focus { outline: none; border-color: var(--border-3); }
.ch-compose button { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent-fill); color: var(--c-noir); cursor: pointer; transition: transform var(--dur-2) var(--ease-spring); }
.ch-compose button:hover { transform: scale(1.06); }
.ch-compose button:active { transform: scale(0.92); }
.ch-compose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes chDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* the agreement: a noir invitation card, gold foil frame, gold ink, wax seal */
.fx-doc-wrap { position: relative; display: flex; justify-content: center; padding: var(--space-5) 0 var(--space-7); }
.fx-doc-wrap::before { content: ""; position: absolute; inset: 6% 6% 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(199, 166, 92, 0.13), transparent); filter: blur(24px); pointer-events: none; }
.fx-doc { position: relative; width: min(480px, 100%); padding: 50px 46px 54px; border-radius: 4px; background: radial-gradient(120% 70% at 50% 0%, rgba(107, 26, 48, 0.24), transparent 62%), linear-gradient(170deg, #171218 0%, #0d0b0e 62%, #0a090b 100%); color: var(--text-1); transform: translateY(14px); box-shadow: var(--shadow-4), inset 0 0 0 1px rgba(199, 166, 92, 0.6); font-family: var(--type-serif); transition: transform var(--dur-4) var(--ease-out); }
.fx-doc::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199, 166, 92, 0.22); pointer-events: none; }
.fx-doc::after { content: "\2726"; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 0 12px; background: #161117; font-size: 12px; line-height: 18px; color: var(--c-gold); }
.fx-doc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding-bottom: 18px; border-bottom: 1px solid rgba(199, 166, 92, 0.28); }
.fx-doc-label, .fx-doc-h { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-gold); }
.fx-doc-title { display: inline-block; margin-top: 8px; padding: 0.04em 0.1em 0.2em 0; font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 36px; line-height: 1.05; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-doc-status { position: relative; flex-shrink: 0; padding: 6px 11px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.35); }
.fx-doc-status .done { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; color: var(--c-noir); background: var(--accent-fill); opacity: 0; }
.fx-doc-sec { padding: 18px 0 4px; }
.fx-doc-sec + .fx-doc-sec { margin-top: 12px; border-top: 1px solid rgba(199, 166, 92, 0.1); }
.fx-doc-sec p { margin: 7px 0 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.fx-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.fx-sign svg { display: block; width: 100%; max-width: 170px; height: 48px; overflow: visible; }
.fx-sign path { fill: none; stroke: var(--c-gold-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; filter: drop-shadow(0 0 3px rgba(228, 198, 135, 0.35)); }
.fx-sign span { display: block; margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(199, 166, 92, 0.3); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.fx-seal { position: absolute; right: 26px; bottom: -40px; width: 104px; display: block; opacity: 0; transform: scale(1.7) rotate(-14deg); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.fx-seal img { display: block; width: 100%; height: auto; }
.fx-doc.in { transform: none; }
.fx-doc.in .fx-sign div:first-child path { animation: fxDraw 1.4s ease 0.2s forwards; }
.fx-doc.in .fx-sign div:last-child path { animation: fxDraw 1.4s ease 1.7s forwards; }
.fx-doc.in .fx-doc-status .done { animation: fxFade 0.5s ease 3.1s forwards; }
.fx-doc.in .fx-seal { animation: fxStamp 0.55s var(--ease-spring) 3.3s forwards; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@keyframes fxFade { to { opacity: 1; } }
@keyframes fxStamp { to { opacity: 1; transform: scale(1) rotate(-14deg); } }

/* ---------- III: privacy, as another member sees you ---------- */
.st-privacy .pg-more { margin-top: var(--space-5); }
.fx-switches { list-style: none; margin: var(--space-6) 0 0; padding: 0; max-width: 520px; }
.fx-switches li { border-top: 1px solid rgba(242, 236, 223, 0.09); }
.fx-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); width: 100%; padding: 14px 0; border: 0; background: none; color: var(--text-1); font: inherit; text-align: left; cursor: pointer; }
.fx-switch b { display: block; font-family: var(--type-serif); font-weight: 400; font-size: var(--fs-lg); transition: color var(--dur-2) ease; }
.fx-switch:hover b { color: var(--c-gold-bright); }
.fx-switch small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.fx-switch small.black { color: var(--tier-black); }
.fx-knob { position: relative; width: 46px; height: 26px; border-radius: var(--radius-pill); background: rgba(242, 236, 223, 0.12); transition: background var(--dur-3) ease; }
.fx-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-1); box-shadow: var(--shadow-1); transition: transform var(--dur-3) var(--ease-spring); }
.fx-switch[aria-checked="true"] .fx-knob { background: var(--accent-fill); }
.fx-switch[aria-checked="true"] .fx-knob::after { transform: translateX(20px); background: var(--c-noir); }
.pv-card { width: min(380px, 100%); margin: 0 auto; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--border-1); }
.pv-photo { position: relative; isolation: isolate; aspect-ratio: 3 / 3.6; overflow: hidden; }
.pv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-4) var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.pv-card[data-blur="true"]:not([data-step="2"]) .pv-photo img { filter: blur(24px) saturate(0.5) brightness(0.6); transform: scale(1.16); }
.pv-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; color: var(--text-1); opacity: 0; visibility: hidden; transition: opacity var(--dur-3) ease, visibility 0s linear var(--dur-3); }
.pv-card[data-blur="true"]:not([data-step="2"]) .pv-lock { opacity: 1; visibility: visible; transition-delay: 0s; }
.pv-lock svg { width: 32px; height: 32px; fill: none; stroke: var(--c-gold-bright); stroke-width: 1.4; stroke-linecap: round; }
.pv-lock b { font-family: var(--type-serif); font-weight: 400; font-size: 22px; }
.pv-photo .fx-mark { position: absolute; inset: -40%; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; transform: rotate(-24deg); pointer-events: none; opacity: 0; transition: opacity 0.9s ease; }
.fx-mark span { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.22); }
.fx-mark span:nth-child(even) { margin-left: -80px; }
.pv-card[data-mark="true"]:is([data-blur="false"], [data-step="2"]) .fx-mark { opacity: 1; }
.pv-badges { position: absolute; z-index: 3; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pv-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--radius-pill); font-size: 11.5px; color: var(--text-1); background: rgba(11, 10, 12, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(176, 68, 95, 0.55); animation: dsRise var(--dur-3) var(--ease-spring); }
.pv-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tier-black); }
.pv-meta { display: grid; gap: 2px; padding: var(--space-4) var(--space-5) var(--space-5); }
.pv-meta b { font-family: var(--type-serif); font-weight: 400; font-size: 22px; }
.pv-meta small { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- V: by level ---------- */
.fx-ledger-sec { padding: var(--section-y) 0; scroll-margin-top: 64px; }
.fx-ledger-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.fx-ledger-head .section-lede { margin-bottom: 6px; }
.fx-ledger { width: 100%; border-collapse: separate; border-spacing: 0; }
.fx-ledger th, .fx-ledger td { padding: 17px 14px; border-bottom: 1px solid var(--border-1); text-align: left; vertical-align: middle; font-weight: 400; }
.fx-ledger thead th { padding-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border-2); vertical-align: bottom; }
.fx-ledger thead .tier { width: 150px; text-align: center; font-family: var(--type-display); font-style: italic; font-size: 28px; line-height: 1; }
.fx-ledger thead .tier small { display: block; margin-top: 8px; font-family: var(--font-mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.fx-ledger .silver { color: var(--tier-silver); }
.fx-ledger .gold { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-ledger thead .gold small { -webkit-text-fill-color: var(--text-3); }
.fx-ledger .black { color: var(--tier-black); }
.fx-ledger thead th:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.fx-ledger tr > :nth-child(4) { background: rgba(107, 26, 48, 0.12); }
.fx-ledger thead th:nth-child(4) { border-radius: 18px 18px 0 0; }
.fx-ledger tbody tr:last-child > :nth-child(4) { border-radius: 0 0 18px 18px; }
.fx-ledger .grp th { padding-top: 44px; padding-bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold); }
.fx-ledger td.f b { display: block; font-family: var(--type-serif); font-weight: 400; font-size: 19.5px; color: var(--text-1); }
.fx-ledger td.f small { display: block; margin-top: 3px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); max-width: 56ch; }
.fx-ledger td.c { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-1); }
.fx-ledger td.c i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 12px rgba(228, 198, 135, 0.45); }
.fx-ledger td.c.no i { width: 14px; height: 1px; border-radius: 0; background: var(--text-3); box-shadow: none; opacity: 0.6; }
.fx-ledger tbody tr:not(.grp) td { transition: background-color var(--dur-2) ease; }
.fx-ledger tbody tr:not(.grp):hover td { background-color: rgba(255, 255, 255, 0.025); }
.fx-ledger tbody tr:not(.grp):hover td:nth-child(4) { background-color: rgba(107, 26, 48, 0.2); }
.fx-ledger-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-6); font-size: 15px; color: var(--text-2); }
.fx-ledger-foot a:not(.btn) { color: var(--c-gold-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the invitation, over a photograph ---------- */
.st-final { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: min(86vh, 820px); padding: var(--section-y) 0; text-align: center; }
.st-final img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(0.2) brightness(0.55); }
.st-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(107, 26, 48, 0.4), transparent 75%), linear-gradient(180deg, var(--c-noir) 0%, transparent 30%, transparent 70%, var(--c-noir) 100%); }
.st-final-inner { max-width: 760px; }
.st-final .mono-tag { display: inline-flex; }
.st-final .display-xl { font-size: var(--fs-h2); }
.st-final .section-lede { margin-left: auto; margin-right: auto; }
.st-final .st-actions { justify-content: center; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .st-chat-show { grid-template-columns: 1fr; justify-items: center; }
  .ch-window { width: min(440px, 100%); }
}
@media (max-width: 1000px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-messages .st-copy { grid-template-columns: 1fr; }
  .st-facts { grid-column: 1; grid-row: auto; margin-top: var(--space-5); }
  .fx-ledger thead .tier { width: 110px; }
}
@media (max-width: 700px) {
  .st-hero { min-height: 92svh; }
  .st-hero-inner { padding-top: 130px; }
  .st-chapters-cta { display: none; }
  .st-chapters a:not(.btn) { padding: 12px 10px; font-size: 10.5px; }
  .st-chapters a:not(.btn)::after { left: 10px; right: 10px; }
  .st-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ch-window { height: 500px; width: calc(100% - 20px); border-radius: 36px; }
  .ch-tools { flex-wrap: wrap; }
  .fx-doc { padding: 30px 24px 40px; }
  .fx-doc-title { font-size: 25px; }
  .fx-sign { gap: 18px; }
  .fx-seal { width: 84px; right: 16px; bottom: -32px; }
  .dk-controls { gap: var(--space-4); }
  .dk-left { min-width: 120px; }
  .fx-ledger th, .fx-ledger td { padding: 14px 6px; }
  .fx-ledger thead .tier { width: 58px; font-size: 19px; }
  .fx-ledger thead .tier small { font-size: 9px; letter-spacing: 0.04em; }
  .fx-ledger .pm { display: none; }
  .fx-ledger td.f b { font-size: 17px; }
  .fx-ledger td.f small { font-size: 13px; }
  .fx-ledger td.c { font-size: 9.5px; letter-spacing: 0.02em; }
  .fx-ledger thead th:nth-child(4) { border-radius: 12px 12px 0 0; }
  .fx-ledger tbody tr:last-child > :nth-child(4) { border-radius: 0 0 12px 12px; }
}

/* with reduced motion: finished states, nothing drifts */
@media (prefers-reduced-motion: reduce) {
  .st-hero-img.is-loaded, .st-interlude img { animation: none; }
  .fx-sign path { stroke-dashoffset: 0; }
  .fx-doc-status .done, .fx-seal { opacity: 1; transform: rotate(-14deg); }
  .fx-doc { transform: none; }
}

/* the request flow inside the private photo */
.pv-lock small { max-width: 24ch; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.pv-lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-1); }
.pv-meta { grid-template-columns: 1fr auto; align-items: center; }
.pv-meta small { grid-column: 1; }
.pv-reset { grid-column: 2; grid-row: 1 / span 2; padding: 7px 12px; border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: var(--fs-xs); color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.2); cursor: pointer; transition: color var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.pv-reset:hover { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--border-3); }

/* ---------- the Discover deck, on a phone (iphone-frame.webp laid over the screen) ---------- */
.dk-phone { position: relative; display: flex; justify-content: center; }
.dk-phone .phone-frame { width: 330px; transform: none; animation: none; filter: none; }
.dk-phone .phone-frame::before { content: ""; position: absolute; z-index: -1; inset: 3% 6% 1%; border-radius: 44px; box-shadow: 0 46px 60px rgba(0, 0, 0, 0.6), 0 12px 24px rgba(0, 0, 0, 0.4); pointer-events: none; }
.dk-phone .phone-glow { opacity: 0.55; }
.dk-screen { display: flex; flex-direction: column; padding: 0 12px 10px; background: radial-gradient(ellipse 120% 60% at 50% 0%, #1f1218, #0b0a0c 62%); }
.dk-status { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 6px 14px 0 18px; font-family: var(--type-ui); font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.dk-sys { display: inline-flex; align-items: flex-end; gap: 2px; }
.dk-sys i { width: 3px; border-radius: 1px; background: var(--text-1); }
.dk-sys i:nth-child(1) { height: 5px; } .dk-sys i:nth-child(2) { height: 7px; } .dk-sys i:nth-child(3) { height: 9px; }
.dk-sys b { width: 21px; height: 10px; margin-left: 5px; padding: 2px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.7); background: linear-gradient(90deg, var(--text-1) 0 70%, transparent 70%) content-box; }
.dk-app-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 6px 10px; }
.dk-app-head b { font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 26px; color: var(--text-1); }
.dk-app-head span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.dk-screen .dk-deck { flex: 1; width: 100%; aspect-ratio: auto; min-height: 0; }
.dk-screen .dk-card { border-radius: 20px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-1);
  transform: translate(var(--dx), calc(var(--i) * 9px)) rotate(calc(var(--dx) / 18)) scale(calc(1 - var(--i) * 0.04)); }
.dk-screen .dk-card.out-right { transform: translate(150%, 0) rotate(22deg); }
.dk-screen .dk-card.out-left { transform: translate(-150%, 0) rotate(-22deg); }
.dk-screen .dk-info { left: 14px; right: 14px; bottom: 14px; gap: 6px; }
.dk-screen .dk-name { font-size: 22px; }
.dk-screen .dk-city { font-size: 9.5px; }
.dk-screen .dk-row { gap: 4px; }
.dk-screen .dk-row .ds-chip { padding: 4px 8px; font-size: 8px; letter-spacing: 0.08em; }
.dk-screen .dk-kink { padding: 4px 8px; font-size: 11px; }
.dk-screen .dk-stamp { top: 16px; padding: 4px 10px; font-size: 11px; }
.dk-screen .dk-stamp--like { left: 14px; }
.dk-screen .dk-stamp--pass { right: 14px; }
.dk-screen .dk-flash { bottom: 10px; padding: 7px 12px; font-size: 11.5px; }
.dk-screen .dk-empty { border-radius: 20px; }
.dk-screen .dk-empty b { font-size: 20px; }
.dk-screen .dk-controls { justify-content: space-between; gap: 8px; padding: 12px 8px 6px; }
.dk-screen .dk-btn { width: 50px; height: 50px; }
.dk-screen .dk-btn svg { width: 20px; height: 20px; }
.dk-screen .dk-left { min-width: 0; font-size: 9px; }
.dk-screen .dk-left b { font-size: 20px; }
.dk-home { align-self: center; width: 108px; height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(242, 236, 223, 0.55); }
@media (max-width: 700px) { .dk-phone .phone-frame { width: 300px; } }
@media (max-width: 360px) { .dk-phone .phone-frame { width: 272px; } }
