/* ============================================================
   ZAFLICK v2 — BREAK THE BORING  ·  warm editorial cream (light)
   Display: Archivo · Body: Rethink Sans
   ============================================================ */
:root {
  --peach: #FFC8B0;
  --ink: #070707;
  --ink-800: #171717;
  --ink-700: #2A2A2A;
  --ink-500: #666666;
  --ink-400: #8A8A8A;
  --ink-300: #B8B8B8;
  --cream: #F7EFE2;
  --bone: #F4F1EA;
  --greige: #ECE5D8;
  --greige-2: #E3DBCB;
  --flame: #FF7420;
  --flame-text: #A93C09; /* AA-passing flame for text on light bgs */
  --azure: #0087B6;
  --fuchsia: #CE3175;
  --citron: #C9D750;
  --pine: #1C4F40;
  --berry: #6E2C4B;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

html, body { background: var(--bone); }

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* screen-reader-only utility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
.kicker-stamp {
  height: 1.1em;
  width: auto;
  display: inline-block;
  vertical-align: -0.18em;
  margin-right: 10px;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--flame-text);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--ink);
}
.sub { color: var(--ink-500); margin-top: 14px; font-size: 1.05rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: transparent;     /* no bar — image runs full-bleed to the top edge */
}
/* the only blur on the page: small frosted chips behind the nav controls */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(247, 239, 226, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-stamp { height: 28px; width: auto; }
.nav-word { height: 15px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgba(247, 239, 226, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}
.nav-links a:hover { color: var(--flame); }
.nav-cta {
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone) !important;
}
.nav-cta:hover { background: var(--flame); color: #fff !important; }

/* ---------- SCRUB SECTIONS ---------- */
.scrub { position: relative; height: 460vh; background: var(--bone); }
.hero-scrub { height: 540vh; }
.scrub .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--greige);
}
.scrub canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* heavier scrim at the BOTTOM where the copy sits, lighter over faces up top */
  background:
    linear-gradient(180deg, rgba(20,16,10,0.10) 0%, transparent 22%, transparent 50%, rgba(20,16,10,0.55) 88%, rgba(20,16,10,0.7) 100%);
}
.overlay { position: relative; z-index: 10; width: 100%; height: 100%; }
.reveal-line {
  position: absolute;
  left: 50%; bottom: 12vh;
  transform: translate(-50%, 0);
  width: max-content;
  max-width: 94vw;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7.5vw, 6.4rem);
  letter-spacing: -0.01em;
  line-height: 0.96;
  color: #fff;
  opacity: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.6);
  will-change: opacity, transform;
}
.reveal-line.accent { color: var(--peach); }

.progress {
  position: absolute;
  left: 32px; right: 32px; bottom: 42px;
  height: 2px;
  background: rgba(255,255,255,0.28);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--peach), var(--flame));
}
.scroll-hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- ACT 2: the rules ---------- */
.rules {
  background: var(--cream);
  color: var(--ink);
  padding: 140px 8vw 120px;
  text-align: center;
}
.rule-list {
  max-width: 880px;
  margin: 70px auto 0;
  display: grid;
  gap: 40px;
  text-align: left;
}
.rule {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 18px 6px;
  border-bottom: 1px solid rgba(7,7,7,0.15);
}
.rule-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-500);
  white-space: nowrap;
}
.rule-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  color: var(--ink-700);
  letter-spacing: 0;
}
/* strike = a flame bar painted as a background on the words themselves.
   box-decoration-break:clone repeats it on EVERY wrapped line, and the
   background-size 0→100% gives the left-to-right wipe. Works at any width. */
.rule-words {
  background-image: linear-gradient(var(--flame), var(--flame));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.55s cubic-bezier(.2,.7,.3,1) 0.25s, color 0.4s ease 0.6s;
}
.rule.in .rule-words { background-size: 100% 0.16em; color: var(--ink-500); }
.rule-slash { display: none; }  /* replaced by the per-line background strike */
.rules-close {
  margin-top: 70px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  color: var(--ink);
}

/* ---------- ACT 3: morph ---------- */
.morph { position: relative; height: 380vh; background: var(--bone); }
.morph-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.morph-stage { position: absolute; inset: 0; }
.morph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* was missing — stills were stretching vertically */
  opacity: 0;
}
.morph-head {
  position: absolute;
  left: 6vw; right: 6vw; bottom: 9vh;
  z-index: 5;
  max-width: 900px;
}
.morph-head h2 { color: #fff; text-shadow: 0 4px 36px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.6); }
.morph-head .kicker {
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7);
}
.morph-head .kicker-stamp { filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.6)); }
.morph-caption {
  position: absolute;
  right: 6vw; top: 14vh;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  color: var(--peach);
  text-shadow: 0 3px 18px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.75), 0 0 30px rgba(0,0,0,0.4);
}
.morph-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* darker at the bottom for the headline, light over faces */
  background: linear-gradient(180deg, rgba(20,16,10,0.28) 0%, transparent 24%, transparent 46%, rgba(20,16,10,0.62) 90%, rgba(20,16,10,0.72) 100%);
}

/* ---------- ACT 4: comparison sliders ---------- */
.autopsy {
  background: var(--greige);
  color: var(--ink);
  padding: 130px 6vw 120px;
  text-align: center;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 64px auto 0;
}
.compare-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  box-shadow: 0 10px 30px rgba(7,7,7,0.12);
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmp-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare::before, .compare::after {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  padding: 5px 11px;
  border-radius: 999px;
  top: 12px;
  pointer-events: none;
}
.compare::before {
  content: attr(data-label-a);
  left: 12px;
  background: rgba(255,255,255,0.82);
  color: var(--ink-500);
}
.compare::after {
  content: attr(data-label-b);
  right: 12px;
  background: var(--flame);
  color: var(--ink);
}
.cmp-handle {
  position: absolute;
  z-index: 4;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  border: none;
  cursor: ew-resize;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(7,7,7,0.12);
}
.cmp-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(7,7,7,0.3);
}
.cmp-handle span::before {
  content: "◂ ▸";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 0.7rem;
  color: var(--ink);
  letter-spacing: 2px;
}
.cmp-handle:focus-visible span { outline: 3px solid var(--flame); outline-offset: 2px; }

/* ---------- ACT 5: crowd auto-carousel ---------- */
.crowd {
  background: var(--bone);
  padding: 130px 6vw 110px;
}
.crowd-head { text-align: center; }
.crowd-head .sub { color: var(--ink-500); }
.crowd-carousel {
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(7,7,7,0.14);
}
.crowd-slide {
  --sx: 50%;
  --sy: 50%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.crowd-slide.active { opacity: 1; }
.crowd-base {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--ox, 50%) center; /* keep the standout in frame when cropped */
  filter: grayscale(0.92) brightness(0.86) contrast(0.96);
}
.crowd-color {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--ox, 50%) center;
  opacity: 0;
  transition: opacity 0.6s ease;
  -webkit-mask-image: radial-gradient(circle 22% at var(--sx) var(--sy), black 55%, transparent 80%);
  mask-image: radial-gradient(circle 22% at var(--sx) var(--sy), black 55%, transparent 80%);
}
.crowd-slide.lit .crowd-color { opacity: 1; }
.crowd-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle 25% at var(--sx) var(--sy), rgba(255,116,32,0.18), transparent 76%);
}
.crowd-slide.lit::after { opacity: 1; }
.crowd-cap {
  position: absolute;
  left: 22px; bottom: 18px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.85);
}
.crowd-dots {
  position: absolute;
  right: 20px; bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.crowd-dot {
  width: 26px; height: 26px;        /* 24px+ tap target; visual dot via ::after */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.crowd-dot::after {
  content: "";
  position: absolute;
  inset: 0; margin: auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s, transform 0.3s;
}
.crowd-dot.on::after { background: var(--flame); transform: scale(1.3); }
.crowd-pause {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 4;
  width: 34px; height: 34px;
  display: grid;
  place-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(7,7,7,0.55);
  color: #fff;
  font-size: 0.8rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.crowd-pause:hover { background: rgba(7,7,7,0.78); }

/* ---------- collections / cards ---------- */
.collection { padding: 130px 6vw 110px; }
.collection.light { background: var(--cream); color: var(--ink); }
.collection-head { max-width: 1280px; margin: 0 auto 56px; }

.grid {
  display: grid;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.collection.greige { background: var(--greige); color: var(--ink); }

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(7,7,7,0.07);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(7,7,7,0.16); }
.card-img { overflow: hidden; aspect-ratio: 4 / 5; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 20px 22px 24px; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--flame);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.card-body .meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-text);
  margin: 0 0 8px;
  min-height: 0;
}
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.card-body p {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin-top: 6px;
  min-height: 2.8em;
}
.dots { display: flex; gap: 8px; margin-top: 14px; }
.dots span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c);
  border: 1.5px solid rgba(7,7,7,0.18);
}

/* ---------- ACT 7: craft ---------- */
.craft {
  background: var(--greige);
  color: var(--ink);
  text-align: center;
  padding: 150px 8vw;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 80px auto 0;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 1;
  white-space: nowrap;        /* keep "4-WAY" on one line */
  color: var(--flame-text);
}
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-500);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.craft-note {
  max-width: 640px;
  margin: 80px auto 0;
  color: var(--ink-500);
  font-size: 1.05rem;
}

/* ---------- ACT 8: circle + member card ---------- */
.circle {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 140px 8vw;
  background: var(--cream);
}
.circle-bg { position: absolute; inset: 0; }
.circle-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center; /* keep the Zaflick wearer (right of frame) visible */
  filter: brightness(1.02) saturate(1.05);
}
.circle-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247,239,226,0.82), rgba(247,239,226,0.62) 45%, rgba(247,239,226,0.88));
}
.circle-inner { position: relative; z-index: 2; max-width: 680px; transition: opacity 0.5s, transform 0.5s; }
.circle .kicker { color: var(--flame-text); }
.circle h2 { color: var(--ink); }
.perks {
  list-style: none;
  margin: 40px 0 44px;
  display: grid;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--ink-700);
}
.perks li::before { content: "—  "; color: var(--flame); font-weight: 600; }
.circle-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.circle-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(7,7,7,0.28);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.circle-form input:focus { border-color: var(--flame); }
.circle-form input::placeholder { color: var(--ink-400); }
.circle-form button {
  padding: 16px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: transform 0.25s, background 0.25s;
}
.circle-form button:hover { transform: scale(1.04); background: var(--flame); color: #fff; }
.form-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-500); }
.form-note.success { color: var(--pine); }
.form-note.error { color: var(--flame-text); }

/* the member card stays a deep-ink object — a premium "card" against the cream */
.member-card {
  position: relative;
  z-index: 3;
  width: min(360px, 86vw);
  margin-top: 44px;
  padding: 30px 30px 24px;
  border-radius: 20px;
  background: linear-gradient(150deg, #1d1d1d, #070707 65%);
  border: 1px solid rgba(255,116,32,0.4);
  box-shadow: 0 26px 60px rgba(7,7,7,0.32);
  text-align: left;
  opacity: 0;
  transform: translateY(40px) rotate(-2deg) scale(0.94);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.member-card.show {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  pointer-events: auto;
}
.mc-stamp { height: 34px; width: auto; margin-bottom: 20px; }
.mc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.6);
}
.mc-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1.05;
  color: var(--peach);
}
.mc-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(244,241,234,0.18);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--flame);
}
.mc-foot { margin-top: 12px; font-size: 0.78rem; color: rgba(244,241,234,0.45); }

/* ---------- footer ---------- */
.footer {
  background: var(--bone);
  padding: 90px 6vw 36px;
  border-top: 1px solid rgba(7,7,7,0.12);
}
.footer-giant-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 56px;
  user-select: none;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  color: var(--ink-700);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.footer-links a:hover { color: var(--flame); }
.footer-tag { color: var(--ink-500); font-size: 0.92rem; }
.footer-disclaimer {
  margin-top: 48px;
  color: var(--ink-500);
  font-size: 0.85rem;
  max-width: 640px;
}
.footer-legal {
  margin-top: 12px;
  color: var(--ink-400);
  font-size: 0.8rem;
}

/* ---------- preloader (warm cream gate) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  transition: transform 0.9s cubic-bezier(.76, 0, .24, 1);
}
.loader.done { transform: translateY(-100%); }
.loader-mark {
  position: relative;
  width: clamp(90px, 16vw, 150px);
  overflow: hidden;
  animation: zf-zoom 1.15s cubic-bezier(.16, 1, .3, 1) both;
}
.loader-stamp { width: 100%; height: auto; display: block; }
.loader-shine {
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,116,32,0.85) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: zf-shine 0.9s ease-in-out 0.95s both;
  mix-blend-mode: multiply;
}
.loader-wordmark {
  height: clamp(16px, 2.6vw, 26px);
  width: auto;
  opacity: 0;
  animation: zf-fade 0.6s ease-out 1.1s forwards;
}
.loader-tag {
  font-size: 0.85rem;
  color: var(--ink-400);
  opacity: 0;
  animation: zf-fade 0.6s ease-out 1.3s forwards;
}
@keyframes zf-zoom {
  from { transform: scale(7.5); opacity: 0; }
  25% { opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes zf-shine { to { transform: translateX(110%); } }
@keyframes zf-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader-mark { animation: none; }
  .loader-shine { display: none; }
  .loader-wordmark, .loader-tag { opacity: 1; animation: none; }
}

/* ---------- marquees ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 26px 0;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.mq-stamp { height: 0.72em; width: 0.72em; object-fit: contain; display: inline-block; flex: 0 0 auto; }
.marquee-light { background: var(--cream); }
.marquee-light span { color: var(--ink); }
/* second marquee is a bold flame color-block band */
.marquee-flame { background: var(--flame); }
.marquee-flame span { color: var(--ink); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- cursor + ripple ---------- */
.zf-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--flame);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: width 0.25s, height 0.25s;
}
.zf-cursor.grow { width: 44px; height: 44px; }
.zf-ripple {
  position: fixed;
  z-index: 300;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--flame);
  border-radius: 50%;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: zf-ripple 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes zf-ripple {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(4); opacity: 0; }
}

/* ---------- reveal + stagger ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
h2.st-split.reveal { opacity: 1; transform: none; transition: none; }
.st-word { display: inline-block; white-space: nowrap; }
h2.st-split .st-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(3deg);
  transition: opacity 0.5s cubic-bezier(.2,.7,.3,1), transform 0.5s cubic-bezier(.2,.7,.3,1);
}
h2.st-split.in .st-ch {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav {
    padding: 12px 18px;
    background: rgba(247, 239, 226, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  /* mobile keeps the full frosted bar — drop the desktop per-control chips */
  .nav-brand, .nav-links {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
  }
  .nav-brand { gap: 9px; }
  .nav-word { height: 13px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; } /* keep just the CTA on phones */
  .nav-cta { white-space: nowrap; padding: 8px 14px; font-size: 0.74rem; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .circle-form { flex-direction: column; }
  .circle-form button { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .rule { flex-direction: column; gap: 4px; align-items: flex-start; }
  .reveal-line { bottom: 9vh; }
  .morph-head { bottom: 7vh; }
  .morph-caption { top: 11vh; }
  .crowd { padding: 110px 4vw 90px; }
  .crowd-carousel { aspect-ratio: 4 / 5; }
  /* shorter sticky transitions so the page paces evenly and doesn't
     feel "stuck" then rush to the bottom */
  .scrub { height: 210vh; }
  .hero-scrub { height: 220vh; }
  .morph { height: 200vh; }
  .compare-name { font-size: 0.95rem; }
}
