/* ============================================================
   TRYB — Real life, in good company.
   Design language: luxury magazine + invitation card + journal
   + boutique hotel.  Not a startup.

   Palette (all five, used deliberately)
   --ink    #1e2a44  deep navy
   --bronze #b07a4b  warm metallic
   --sand   #d7cec3  soft stone
   --cream  #f7f2ea  paper
   --ember  #eb642e  signal / CTA
   ============================================================ */

:root {
  --ink: #1e2a44;
  --ink-2: #182238;
  --bronze: #b07a4b;
  --sand: #d7cec3;
  --cream: #f7f2ea;
  --ember: #eb642e;

  --font-script: "Pacifico", cursive;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 5vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  caret-color: transparent;
}
body.menu-open { overflow: hidden; }
/* On desktop (fine pointer) the custom cursor replaces the native one everywhere,
   so no stray I-beam/arrow ever shows on click. */
@media (hover: hover) and (pointer: fine) { * { cursor: none !important; } }
/* Touch devices keep the native cursor and normal selection. */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; user-select: auto; -webkit-user-select: auto; caret-color: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ember); color: var(--cream); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--cream); }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid var(--sand);
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.cursor-ring.is-hover {
  width: 66px; height: 66px;
  background: rgba(235, 100, 46, 0.18);
  border-color: var(--ember);
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--cream);
  opacity: 0;
  animation: loaderIn 1.4s var(--ease) forwards;
}
.loader__logo {
  width: min(52vw, 300px); height: auto;
  opacity: 0; animation: loaderIn 1.4s var(--ease) forwards;
}
@keyframes loaderIn {
  0%   { opacity: 0; transform: translateY(20px) scale(.96); }
  45%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(.9rem, 2vw, 1.4rem) var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(24, 34, 58, .96);
  padding-top: .7rem; padding-bottom: .7rem;
  border-bottom: 1px solid rgba(215, 206, 195, .12);
}
/* Frosted glass only on desktop. On mobile the nav is a fixed full-screen
   overlay that lives inside the header; a backdrop-filter on the header would
   become the containing block for that fixed child and collapse it to the
   header's height — so we keep the mobile header a solid bar. */
@media (min-width: 861px) {
  .site-header.scrolled {
    background: rgba(24, 34, 58, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand img { height: clamp(30px, 3.4vw, 40px); width: auto; display: block; }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); align-items: center; }
.nav a {
  position: relative;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); padding: .25rem 0;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--ember);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.nav-cta):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--sand); }

.nav-cta {
  border: 1px solid var(--sand);
  border-radius: 100px;
  padding: .55rem 1.1rem !important;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.nav-cta:hover { background: var(--ember); border-color: var(--ember); color: var(--cream); }

.header-right { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.1rem); }
.brand, .header-right { position: relative; z-index: 2; }

.nav-toggle {
  display: none; width: 34px; height: 34px; padding: 0;
  background: none; border: 0; cursor: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--ink-2);
    transform: translateY(-100%); transition: transform .55s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.5rem; letter-spacing: .1em; color: var(--cream); }
  .nav-cta { padding: .55rem 1rem !important; font-size: .68rem; }
  .brand img { height: 30px; }
}

/* ---------- Layout ---------- */
main { position: relative; z-index: 2; }

/* Section token system — light/dark variants recolour children */
.section {
  --fg: var(--cream);
  --fg-muted: var(--sand);
  --line: rgba(215, 206, 195, .16);
  --card-bg: rgba(215, 206, 195, .04);
  padding: clamp(4.5rem, 12vh, 10rem) var(--gutter);
  position: relative;
  color: var(--fg);
}
.section--cream {
  --fg: var(--ink);
  --fg-muted: rgba(30, 42, 68, .66);
  --line: rgba(30, 42, 68, .14);
  --card-bg: rgba(30, 42, 68, .03);
  background: var(--cream);
}
.section--sand {
  --fg: var(--ink);
  --fg-muted: rgba(30, 42, 68, .7);
  --line: rgba(30, 42, 68, .16);
  --card-bg: rgba(255, 255, 255, .35);
  background: var(--sand);
}
.section--ink { background: var(--ink-2); }
.section--bronze {
  --fg: var(--cream);
  --fg-muted: rgba(247, 242, 234, .82);
  --line: rgba(247, 242, 234, .24);
  --card-bg: rgba(247, 242, 234, .08);
  background: var(--bronze);
}

.wrap { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 1.5rem;
}
.section--bronze .eyebrow { color: var(--cream); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; line-height: 1.04; letter-spacing: -0.02em;
  color: var(--fg);
}
h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--fg-muted); max-width: 62ch; line-height: 1.5;
}
p { color: var(--fg-muted); }
p + p { margin-top: 1.1rem; }
.muted { color: var(--fg-muted); }
.accent { color: var(--ember); }
.bronze { color: var(--bronze); }
.script { font-family: var(--font-script); letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.9rem;
  border: 1px solid var(--fg);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); background: transparent;
  overflow: hidden; position: relative; cursor: none;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ember); transform: translateY(101%);
  transition: transform .5s var(--ease); z-index: -1;
}
.btn:hover { color: var(--cream); border-color: var(--ember); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }
.btn--solid { background: var(--ember); border-color: var(--ember); color: var(--cream); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--cream); border-color: var(--ink); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.hero__video, .hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__video { opacity: .35; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 50% 30%, transparent 0%, rgba(30,42,68,.65) 68%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 3; padding: 0 var(--gutter); }
.hero__mark {
  font-family: var(--font-script);
  font-size: clamp(5rem, 22vw, 18rem);
  color: var(--cream); line-height: .9;
}
.hero__logo {
  width: min(84vw, 760px); height: auto;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, .45));
}
.hero__tag {
  margin-top: 1rem;
  font-size: clamp(.8rem, 2vw, 1.05rem);
  letter-spacing: .5em; text-transform: uppercase;
  color: var(--sand); padding-left: .5em;
}
.hero__sub {
  margin: 1.6rem auto 0; max-width: 46ch;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--cream); line-height: 1.35;
}
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sand); display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.hero__scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--sand), transparent);
  animation: drip 2.2s 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; }
}

/* ---------- Floating / popping images (cursor trail) ---------- */
.float-layer {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; overflow: hidden;
}
.float-img {
  position: absolute;
  width: clamp(140px, 15vw, 240px);
  aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  will-change: transform, opacity;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.float-img img, .float-img svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scroll-x 30s linear infinite; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--fg-muted); white-space: nowrap;
}
.marquee .dot { color: var(--ember); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

.line-mask { overflow: hidden; display: block; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.reveal.in .line-mask > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.6vw, 2.4rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--card-bg);
  transition: transform .6s var(--ease), border-color .6s var(--ease), background .6s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--bronze);
}
.card .idx { font-family: var(--font-display); font-size: 1rem; color: var(--bronze); letter-spacing: .1em; }
.card h3 { margin: .9rem 0 .7rem; }

/* Simple word list card (beliefs, principles) */
.pill-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.pill {
  border: 1px solid var(--line); border-radius: 100px;
  padding: .7rem 1.3rem;
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--fg);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pill:hover { background: var(--ember); border-color: var(--ember); color: var(--cream); }
.pill.is-static:hover { background: transparent; color: var(--fg); border-color: var(--bronze); }

/* ---------- Feature split ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.split.rev > .visual { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > .visual { order: 0; } }

.visual {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.visual.wide { aspect-ratio: 16 / 10; }
.visual img, .visual svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Big numbers ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 3rem;
}
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: 1.5rem; } }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--fg); line-height: 1; }
.stat .num .script { color: var(--ember); }
.stat .lbl { margin-top: .5rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Versus (Today vs TRYB) ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .versus__rule { display: none; } }
.versus__col { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 12px; border: 1px solid var(--line); }
.versus__col h3 { margin-bottom: 1.4rem; font-size: 1.2rem; letter-spacing: .04em; }
.versus__col.today { color: var(--fg-muted); }
.versus__col.tryb { background: var(--ink); border-color: var(--bronze); color: var(--cream); }
.versus__col.tryb h3 { color: var(--bronze); font-family: var(--font-script); font-size: 1.6rem; }
.versus__col ul { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.versus__col li { display: flex; gap: .7rem; align-items: baseline; font-size: 1.05rem; }
.versus__col li::before { content: "—"; color: currentColor; opacity: .5; }
.versus__col.tryb li::before { content: "✦"; color: var(--ember); opacity: 1; }
.versus__rule { width: 1px; background: var(--line); justify-self: center; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.15; color: var(--fg); max-width: 20ch; margin: 0 auto;
}
.manifesto p .accent { color: var(--ember); }
.manifesto p + p { margin-top: 1.4rem; }

/* ---------- Timeline (How it works) ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.8rem) 0; border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease), padding-left .5s var(--ease);
}
.step:hover { padding-left: 1rem; }
.step__no { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--bronze); }
.step h3 { margin-bottom: .5rem; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } }

/* ---------- Invitation cards ---------- */
.invite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); }
@media (max-width: 780px) { .invite-grid { grid-template-columns: 1fr; } }
.invite {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card-bg);
  transition: transform .6s var(--ease), border-color .6s var(--ease);
  display: flex; flex-direction: column;
}
.invite:hover { transform: translateY(-6px); border-color: var(--bronze); }
.invite__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.invite__img img, .invite__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.invite:hover .invite__img img, .invite:hover .invite__img svg { transform: scale(1.05); }
.invite__seats {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--ink); color: var(--cream);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 100px;
}
.invite__body { padding: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.invite__kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.invite__body h3 { font-size: 1.5rem; }
.invite__desc { color: var(--fg-muted); font-size: .96rem; }
.invite__meta {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  font-size: .82rem; color: var(--fg-muted);
}
.invite__meta .dot { color: var(--bronze); }
.invite__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.invite__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--fg); }
.invite__accept {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: gap .35s var(--ease);
}
.invite:hover .invite__accept { gap: .9rem; }

/* ---------- Mood filters ---------- */
.moods { display: flex; flex-wrap: wrap; gap: .7rem; }
.mood {
  border: 1px solid var(--line); border-radius: 100px;
  padding: .7rem 1.3rem; font-size: .82rem; letter-spacing: .06em; color: var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.mood:hover, .mood[data-active] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--cream .mood:hover, .section--cream .mood[data-active] { background: var(--ember); border-color: var(--ember); }

/* ---------- CTA band ---------- */
.cta {
  text-align: center; border-radius: 16px;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: radial-gradient(80% 120% at 50% 0%, rgba(176,122,75,.28), transparent 60%), var(--ink-2);
  border: 1px solid var(--line); color: var(--cream);
}
.cta h2 { margin-bottom: 1.4rem; color: var(--cream); }
.cta .lead { color: var(--sand); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
  min-height: 66vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 9rem var(--gutter) clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-intro--cream { background: var(--cream); color: var(--ink); }
.page-intro--cream h1 { color: var(--ink); }
.page-intro--cream .lead { color: rgba(30,42,68,.66); }
.page-intro h1 { max-width: 18ch; }
.page-intro .lead { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 2;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
  border-top: 1px solid rgba(215,206,195,.16);
  background: var(--ink);
}
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { font-family: var(--font-script); font-size: clamp(3rem, 10vw, 7rem); color: var(--cream); line-height: .9; }
.footer-note { color: var(--sand); max-width: 32ch; margin-top: 1rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--sand); font-size: .92rem; padding: .28rem 0; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(215,206,195,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .78rem; letter-spacing: .08em; color: var(--sand);
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.center { text-align: center; } .mx-auto { margin-left: auto; margin-right: auto; }
.tight { padding-top: 0; }

/* ============================================================
   ONE-PAGE COMPONENTS (v3 redesign)
   ============================================================ */

/* Section sized to the viewport */
.screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.screen-2x { min-height: 200vh; }
@media (max-width: 760px) { .screen-2x { min-height: auto; } }

/* ---------- Hero: polaroid corner clusters ---------- */
.hero__clusters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.polaroid {
  position: absolute;
  width: clamp(120px, 13vw, 210px);
  aspect-ratio: 4 / 5;
  background: var(--cream);
  padding: 8px 8px 26px;
  border-radius: 3px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)) scale(.9);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.hero.in .polaroid { opacity: 1; transform: translateY(0) rotate(var(--r,0deg)) scale(1); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.polaroid.p1 { left: -3%;  bottom: -6%;  --r: -12deg; transition-delay: .15s; }
.polaroid.p2 { left: 6%;   bottom: -14%; --r: 6deg;   transition-delay: .30s; }
.polaroid.p3 { left: 15%;  bottom: -4%;  --r: -3deg;  transition-delay: .45s; }
.polaroid.p4 { right: -3%; bottom: -6%;  --r: 12deg;  transition-delay: .20s; }
.polaroid.p5 { right: 6%;  bottom: -14%; --r: -7deg;  transition-delay: .35s; }
.polaroid.p6 { right: 15%; bottom: -4%;  --r: 4deg;   transition-delay: .50s; }
@media (max-width: 900px) { .polaroid.p3, .polaroid.p6 { display: none; } }
@media (max-width: 620px) {
  .polaroid.p2, .polaroid.p5 { display: none; }
  .polaroid { width: 120px; }
}

.hero__cta { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Tilted poster cards (What is tryb) ---------- */
.tilted { position: relative; min-height: 420px; }
.tilt-card {
  position: absolute;
  width: clamp(200px, 24vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  border: 6px solid var(--cream);
}
.tilt-card img { width: 100%; height: 100%; object-fit: cover; }
.tilt-card.t1 { top: 0;    left: 4%;  transform: rotate(-8deg); z-index: 1; }
.tilt-card.t2 { top: 12%;  right: 4%; transform: rotate(7deg);  z-index: 2; }
@media (max-width: 860px) {
  .tilted { min-height: 340px; margin-top: 1rem; }
  .tilt-card { width: 46%; }
  .tilt-card.t1 { left: 2%; } .tilt-card.t2 { right: 2%; }
}

/* ---------- Big steps (How it works, 222 style) ---------- */
.bigsteps { display: flex; flex-direction: column; gap: clamp(4rem, 12vh, 9rem); }
.bigstep { display: grid; grid-template-columns: 130px 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: start; max-width: 900px; }
.bigstep__label { font-family: var(--font-display); font-size: 1.05rem; color: var(--bronze); letter-spacing: .04em; padding-top: .5rem; }
.bigstep__title { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.02; color: var(--fg); margin-bottom: 1rem; }
.bigstep__title .accent { color: var(--ember); }
.bigstep__desc { color: var(--fg-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; }
.bigstep:nth-child(even) { margin-left: auto; }
@media (max-width: 620px) { .bigstep { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- Full-screen Experiences slider ---------- */
.slider { position: relative; height: 100vh; overflow: hidden; background: var(--ink); }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s linear, visibility .18s linear;
  display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; visibility: visible; }

/* slide 1 — cinematic photo + overlay */
.slide--cine { text-align: center; }
.slide--cine .slide__bg { position: absolute; inset: 0; z-index: 0; }
.slide--cine .slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.slide--cine .slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(24,34,58,.55), rgba(24,34,58,.78));
}
.slide--cine .slide__in { position: relative; z-index: 1; padding: 0 var(--gutter); color: var(--cream); }
.slide__time { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 7rem); line-height: 1; margin-bottom: 1rem; }
.slide__line { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.15; max-width: 20ch; margin: 0 auto; color: var(--cream); }
.slide__line .script { color: var(--bronze); }

/* slide 2 — trade timeline */
.slide--trade { background: var(--cream); flex-direction: column; gap: clamp(1rem,3vh,2.4rem); padding: clamp(4rem,8vh,6rem) var(--gutter); }
.slide--trade .trade-head { text-align: center; color: var(--ink); }
.slide--trade .trade-head h2 { color: var(--ink); }
.arches { display: flex; gap: clamp(.6rem, 1.6vw, 1.4rem); justify-content: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.arch { flex: 1; max-width: 160px; text-align: center; }
.arch__img {
  aspect-ratio: 3 / 4; border-radius: 100px 100px 8px 8px; overflow: hidden;
  border: 1px solid rgba(30,42,68,.15); margin-bottom: .7rem;
}
.arch__img img { width: 100%; height: 100%; object-fit: cover; }
.arch__no { font-family: var(--font-display); color: var(--bronze); font-size: .9rem; }
.arch__t { font-size: .82rem; color: var(--ink); margin-top: .15rem; line-height: 1.2; }
.arch__d { font-size: .68rem; color: rgba(30,42,68,.6); margin-top: .2rem; line-height: 1.25; }
@media (max-width: 860px) { .arch:nth-child(n+5) { display: none; } }
@media (max-width: 560px) { .arch:nth-child(n+4) { display: none; } .arch__d { display: none; } }
.trade-result { text-align: center; color: var(--ink); }
.trade-result .r-eyebrow { color: var(--bronze); letter-spacing: .24em; font-size: .7rem; text-transform: uppercase; }
.trade-result h3 { font-family: var(--font-display); font-size: clamp(1.4rem,3.4vw,2.4rem); color: var(--ink); margin: .3rem 0; }

/* slide 3 — chemistry / matching */
.slide--match { background: var(--ink-2); padding: 0 var(--gutter); }
.slide--match .match-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; max-width: 1200px; width: 100%; }
@media (max-width: 860px) { .slide--match .match-grid { grid-template-columns: 1fr; } .slide--match .match-photos { display: none; } }
.match-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.match-photos .visual { aspect-ratio: 3/4; }
.match-photos .visual:nth-child(2) { margin-top: 2.5rem; }

/* slider controls */
.slider__nav { position: absolute; z-index: 5; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; align-items: center; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(215,206,195,.4); border: 0; cursor: none; transition: background .3s, width .3s; }
.slider__dot.active { background: var(--ember); width: 26px; border-radius: 6px; }
.slide--trade ~ .slider__nav .slider__dot { }
.slider__arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(215,206,195,.4); background: rgba(24,34,58,.35);
  color: var(--cream); font-size: 1.2rem; display: grid; place-items: center; cursor: none;
  transition: background .3s, border-color .3s;
}
.slider__arrow:hover { background: var(--ember); border-color: var(--ember); }
.slider__arrow.prev { left: clamp(1rem, 3vw, 2.5rem); }
.slider__arrow.next { right: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 620px) { .slider__arrow { width: 42px; height: 42px; } }

/* ---------- Demo invites: city filters + horizontal carousel ---------- */
.city-filter { display: flex; gap: .6rem; flex-wrap: wrap; }
.city {
  border: 1px solid var(--line); border-radius: 100px; padding: .55rem 1.1rem;
  font-size: .82rem; color: var(--fg-muted); background: transparent; cursor: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.city:hover, .city[data-active] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--cream .city:hover, .section--cream .city[data-active] { background: var(--ember); border-color: var(--ember); }

.invite-rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 340px);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .5rem 1.5rem; margin: 0 -.5rem;
  scrollbar-width: thin;
}
.invite-rail::-webkit-scrollbar { height: 6px; }
.invite-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.rail-card {
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card-bg); min-height: clamp(300px, 42vh, 400px);
  display: flex; flex-direction: column; position: relative;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.rail-card:hover { transform: translateY(-6px); border-color: var(--bronze); }
.rail-card__img { position: absolute; inset: 0; z-index: 0; }
.rail-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rail-card__img::after { content:""; position:absolute; inset:0; background: linear-gradient(rgba(24,34,58,.15), rgba(24,34,58,.9)); }
.rail-card__body { position: relative; z-index: 1; margin-top: auto; padding: 1.4rem; color: var(--cream); }
.rail-card__body h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: .4rem; }
.rail-card__meta { font-size: .8rem; color: var(--sand); margin-bottom: .9rem; }
.rail-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(215,206,195,.4); border-radius: 100px;
  padding: .4rem .8rem; font-size: .76rem; color: var(--cream);
}
.rail-chip b { color: var(--bronze); font-weight: 500; }
.rail-chip .av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; }

/* ---------- FAQ accordion ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; color: var(--fg);
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.faq-q .chev { transition: transform .4s var(--ease); color: var(--bronze); flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { color: var(--fg-muted); padding-bottom: 1.4rem; max-width: 60ch; }

/* ---------- Simplified footer (v3) ---------- */
.footer-v3 { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-v3 .f-logo img { height: clamp(34px, 4vw, 48px); width: auto; }
.footer-v3 .f-copy { color: var(--sand); font-size: .82rem; margin-top: 1rem; }
.footer-v3 .f-links { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); flex-wrap: wrap; }
.footer-v3 .f-links a { color: var(--sand); font-size: .9rem; transition: color .3s var(--ease); }
.footer-v3 .f-links a:hover { color: var(--cream); }

/* Anchor offset for fixed header */
section[id] { scroll-margin-top: 76px; }

/* larger cinematic line when timestamp is omitted */
.slide__line--lg { font-size: clamp(1.9rem, 5vw, 3.6rem); max-width: 22ch; }

/* ============================================================
   MOBILE UX REFINEMENTS
   ============================================================ */
/* Use small-viewport units so mobile browser chrome doesn't cause jumps */
@supports (height: 100svh) {
  .hero, .slider, .slide { min-height: 100svh; }
  .slider { height: 100svh; }
}

@media (max-width: 620px) {
  /* Let tall sections size to their content on phones (less dead scrolling) */
  .screen { min-height: auto; }
  .section { padding-top: clamp(3.5rem, 9vh, 5rem); padding-bottom: clamp(3.5rem, 9vh, 5rem); }
  .hero__cta { flex-direction: column; align-items: center; width: 100%; }
  .hero__cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero__sub { font-size: 1.1rem; max-width: 30ch; }
  .tilted { min-height: 320px; margin-top: 2.5rem; }
  .tilt-card { width: 52%; }
  .manifesto p { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .bigsteps { gap: 3rem; }
  .slide--match .match-photos { display: none; }
  .slide__line--lg { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .slider__arrow { width: 40px; height: 40px; }
  .faq-q { font-size: 1.05rem; }
  .footer-v3 { flex-direction: column; gap: 1.5rem; }
}

/* Clickable step title (links to the sign-up form) */
.step-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--bronze);
  transition: color .35s var(--ease), text-decoration-color .35s var(--ease);
}
.step-link:hover { color: var(--ember); text-decoration-color: var(--ember); }
