/* ============================================================
   Homepage v4 — «خيط الجمعة»
   Warm, personal, real-photo storytelling.
   This file intentionally layers over styles.css so the rest of
   the public site keeps its established editorial system.
   ============================================================ */

.home-v4 {
  --majlis-ink: #211a15;
  --majlis-paper: #f3eadb;
  --majlis-cream: #fffaf1;
  --majlis-sand: #e8d8bf;
  --majlis-thread: #b94a32;
  --majlis-thread-dark: #8f3526;
  --majlis-olive: #465346;
  --majlis-muted: #756754;
  --majlis-rule: #cbbda7;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--majlis-paper);
  color: var(--majlis-ink);
}

.home-v4 .masthead-nav {
  top: 0;
  width: 100%;
  min-height: 62px;
  padding-inline: max(22px, calc((100vw - 1240px) / 2));
  border-block: 0 1px;
  border-color: rgba(91, 72, 49, 0.2);
  background: rgba(255, 250, 241, 0.94);
  color: var(--majlis-ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-v4 .sticky-brand-mark,
.home-v4 .sticky-brand-wordmark {
  filter: none;
}

.home-v4 .masthead-nav .site-nav a,
.home-v4 .masthead-nav .language-switch button {
  color: var(--majlis-muted);
}

.home-v4 .masthead-nav .site-nav a:hover,
.home-v4 .masthead-nav .site-nav a.active,
.home-v4 .masthead-nav .language-switch button:hover,
.home-v4 .masthead-nav .language-switch button.active {
  color: var(--majlis-ink);
}

.home-v4 .masthead-nav .site-nav a.active {
  text-decoration: underline;
  text-decoration-color: var(--majlis-thread);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.home-v4 .home-hero,
.home-v4 .home-ritual,
.home-v4 .home-proof,
.home-v4 .home-explore,
.home-v4 .home-join {
  scroll-margin-top: 62px;
}

.home-v4 #recommend {
  scroll-margin-top: 84px;
}

/* ---------- First chapter ---------- */

.home-v4 .home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(0, 1.06fr);
  min-height: calc(100svh - 62px);
  padding: 0;
  overflow: clip;
  background: var(--majlis-cream);
  color: var(--majlis-ink);
}

.home-v4 .home-hero-copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: clamp(54px, 6vw, 86px) clamp(32px, 4vw, 62px) clamp(72px, 7vw, 98px)
    max(24px, calc((100vw - 1240px) / 2));
  text-align: start;
}

.home-v4 .home-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--majlis-thread);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-v4 .home-hero-kicker::before {
  width: 38px;
  height: 2px;
  background: currentColor;
}

.home-v4 .home-hero h1 {
  max-width: 6.6ch;
  margin-top: 18px;
  font-family: var(--majlis-serif);
  font-size: clamp(4.15rem, 5.9vw, 6.45rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-v4 .home-hero-intro {
  max-width: 36em;
  margin-top: clamp(20px, 2.5vw, 30px);
  color: var(--majlis-muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.9;
}

.home-v4 .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-v4 .home-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 10px 13px 10px 19px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.home-v4 .home-action::after {
  content: "←";
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.88;
  transition: transform 180ms ease, opacity 180ms ease;
}

html[dir="ltr"] .home-v4 .home-action::after {
  content: "→";
}

.home-v4 .home-action:hover {
  transform: translateY(-1px);
}

.home-v4 .home-action:hover::after {
  opacity: 1;
  transform: translateX(-2px);
}

html[dir="ltr"] .home-v4 .home-action:hover::after {
  transform: translateX(2px);
}

.home-v4 .home-action-primary {
  border: 1px solid var(--majlis-thread);
  background: var(--majlis-thread);
  color: var(--majlis-cream);
}

.home-v4 .home-action-primary:hover {
  border-color: var(--majlis-thread-dark);
  background: var(--majlis-thread-dark);
}

.home-v4 .home-action-secondary {
  border-color: var(--majlis-rule);
  background: var(--majlis-paper);
  color: var(--majlis-ink);
}

.home-v4 .home-action-secondary:hover {
  border-color: var(--majlis-ink);
  background: var(--majlis-ink);
  color: var(--majlis-cream);
}

.home-v4 .home-hero-since {
  max-width: 31em;
  margin-top: auto;
  padding-top: 24px;
  color: var(--majlis-muted);
  font-size: 0.78rem;
}

.home-v4 .home-hero-visual {
  position: relative;
  grid-column: 2;
  min-height: calc(100svh - 62px);
  overflow: hidden;
  border-inline-start: 1px solid var(--majlis-rule);
  background: #c9b69a;
}

.home-v4 .home-hero-media,
.home-v4 .home-hero-media img,
.home-v4 .home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-v4 .home-hero-media {
  z-index: 0;
}

.home-v4 .home-hero-media img {
  object-fit: cover;
  object-position: 50% 49%;
  filter: none;
  transform: scale(1.015);
}

.home-v4 .home-hero-shade,
html[dir="ltr"] .home-v4 .home-hero-shade {
  z-index: 1;
  background:
    linear-gradient(to top, rgba(25, 19, 14, 0.5), transparent 42%),
    linear-gradient(95deg, rgba(82, 51, 31, 0.12), rgba(247, 225, 185, 0.02));
  pointer-events: none;
}

.home-v4 .home-photo-caption {
  position: absolute;
  z-index: 2;
  inset-inline: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 250, 241, 0.72);
  color: var(--majlis-cream);
  font-size: 0.75rem;
}

.home-v4 .home-photo-caption span:last-child {
  font-family: var(--majlis-serif);
  font-size: 1.25rem;
}

.home-v4 .home-scroll-cue {
  position: absolute;
  z-index: 4;
  inset-inline-start: max(24px, calc((100vw - 1240px) / 2));
  inset-inline-end: auto;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--majlis-muted);
  font-size: 0.78rem;
}

.home-v4 .home-scroll-cue span:last-child {
  color: var(--majlis-thread);
  font-size: 1.05rem;
}

/* ---------- The ritual: real photos as chapters ---------- */

.home-v4 .home-ritual {
  padding: clamp(92px, 10vw, 142px) max(24px, calc((100vw - 1240px) / 2)) 0;
  background: var(--majlis-paper);
}

.home-v4 .home-ritual-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 24px clamp(48px, 9vw, 130px);
  align-items: end;
  padding-bottom: clamp(72px, 8vw, 112px);
}

.home-v4 .home-ritual-heading h2 {
  max-width: 10ch;
  font-family: var(--majlis-serif);
  font-size: clamp(3.8rem, 6.4vw, 6.3rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-v4 .home-ritual-heading .kicker {
  color: var(--majlis-thread);
}

.home-v4 .home-ritual-lead {
  padding-bottom: 8px;
}

.home-v4 .home-ritual-lead p {
  max-width: 34em;
  color: var(--majlis-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.home-v4 .home-ritual-lead a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--majlis-thread-dark);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.home-v4 .home-ritual-lead a,
.home-v4 .home-proof-method a {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.home-v4 .home-ritual-lead a::after,
.home-v4 .home-proof-method a::after {
  content: "←";
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

html[dir="ltr"] .home-v4 .home-ritual-lead a::after,
html[dir="ltr"] .home-v4 .home-proof-method a::after {
  content: "→";
}

.home-v4 .home-ritual-lead a:hover,
.home-v4 .home-proof-method a:hover {
  color: var(--majlis-cream);
  background: var(--majlis-thread-dark);
  transform: translateY(-1px);
}

.home-v4 .home-ritual-lead a:focus-visible,
.home-v4 .home-proof-method a:focus-visible {
  outline: 2px solid var(--majlis-thread);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .home-v4 .home-ritual-lead a,
  .home-v4 .home-proof-method a {
    transition: none;
  }
}

.home-v4 .home-ritual-story {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
  border-top: 1px solid var(--majlis-rule);
}

.home-v4 .home-ritual-visual {
  position: sticky;
  top: 62px;
  height: calc(100svh - 62px);
  overflow: hidden;
  background: #302820;
}

.home-v4 .home-ritual-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(to top, rgba(25, 20, 16, 0.58), transparent 42%),
    linear-gradient(110deg, rgba(103, 61, 37, 0.12), rgba(226, 188, 132, 0.04));
  pointer-events: none;
}

.home-v4 .home-ritual-frame {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 720ms ease, transform 1600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-v4 .home-ritual-frame.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.home-v4 .home-ritual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: none;
}

.home-v4 .home-ritual-frame[data-film-frame="mosque"] img {
  object-position: 50% 48%;
}

.home-v4 .home-ritual-frame[data-film-frame="topic"] img {
  object-position: 50% 56%;
}

.home-v4 .home-ritual-frame[data-film-frame="coffee"] img {
  object-position: 50% 50%;
}

.home-v4 .home-ritual-photo-note {
  position: absolute;
  z-index: 3;
  inset-inline: 24px;
  bottom: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 250, 241, 0.62);
  color: var(--majlis-cream);
  font-size: 0.76rem;
}

.home-v4 .home-route-media {
  display: none;
}

.home-v4 .home-route {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-v4 .home-route::before {
  display: none;
}

.home-v4 .home-route li {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  align-content: center;
  justify-items: stretch;
  min-height: 62vh;
  padding-block: 48px;
  border-top: 1px solid var(--majlis-rule);
  text-align: start;
}

.home-v4 .home-route-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start;
  width: 54px;
  height: auto;
  border: 0;
  border-top: 2px solid var(--majlis-thread);
  border-radius: 0;
  padding-top: 8px;
  background: transparent;
  color: var(--majlis-thread);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.home-v4 .home-route li.is-active .home-route-number {
  background: transparent;
  color: var(--majlis-thread-dark);
  transform: none;
}

.home-v4 .home-route-copy {
  max-width: 34em;
  opacity: 0.48;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-v4 .home-route li.is-active .home-route-copy {
  opacity: 1;
  transform: translateY(0);
}

.home-v4 .home-route-copy > span {
  display: block;
  color: var(--majlis-thread);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-v4 .home-route strong {
  display: block;
  margin-top: 10px;
  font-family: var(--majlis-serif);
  font-size: clamp(2.25rem, 3.7vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
}

.home-v4 .home-route-copy p {
  max-width: 30em;
  margin-top: 18px;
  color: var(--majlis-muted);
  font-size: 1rem;
  line-height: 1.9;
}

/* ---------- Proof comes after the ritual ---------- */

.home-v4 .home-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  min-height: 820px;
  padding: 0;
  background: var(--majlis-sand);
  background-image: none;
}

.home-v4 .home-proof-visual {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background: #2b241e;
}

.home-v4 .home-proof-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 22, 17, 0.6), transparent 40%);
}

.home-v4 .home-proof-visual picture,
.home-v4 .home-proof-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-v4 .home-proof-visual img {
  object-fit: cover;
  object-position: 50% 51%;
  filter: none;
}

.home-v4 .home-proof-visual > p {
  position: absolute;
  z-index: 2;
  inset-inline: 28px;
  bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 250, 241, 0.65);
  color: var(--majlis-cream);
  font-size: 0.78rem;
}

.home-v4 .home-proof-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(72px, 8vw, 116px) max(24px, calc((100vw - 1240px) / 2))
    clamp(72px, 8vw, 116px) clamp(34px, 6vw, 88px);
}

html[dir="ltr"] .home-v4 .home-proof-content {
  padding-inline: max(24px, calc((100vw - 1240px) / 2)) clamp(34px, 6vw, 88px);
}

.home-v4 .home-proof-heading {
  display: block;
}

.home-v4 .home-proof-heading .kicker {
  color: var(--majlis-thread-dark);
}

.home-v4 .home-proof-heading h2 {
  max-width: 9ch;
  margin-top: 8px;
  font-family: var(--majlis-serif);
  font-size: clamp(3.5rem, 5.6vw, 5.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-v4 .home-proof-heading > p:last-child {
  max-width: 32em;
  margin-top: 24px;
  padding: 0;
  color: var(--majlis-muted);
  font-size: 1rem;
}

.home-v4 .home-proof-numbers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(44px, 5vw, 62px);
  border-block: 1px solid rgba(90, 70, 46, 0.28);
}

.home-v4 .home-proof-numbers p {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
  padding: 18px 0;
}

.home-v4 .home-proof-numbers p + p {
  border-block-start: 1px solid rgba(90, 70, 46, 0.22);
  border-inline-start: 0;
}

.home-v4 .home-proof-numbers strong {
  color: var(--majlis-thread);
  font-family: var(--majlis-serif);
  font-size: clamp(3.8rem, 5.8vw, 6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.home-v4 .home-proof-numbers span {
  margin: 0;
  color: var(--majlis-ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.home-v4 .home-proof-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 0;
  border: 0;
  color: var(--majlis-muted);
  font-size: 0.84rem;
}

.home-v4 .home-proof-method a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--majlis-thread-dark);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

/* ---------- A visible newsletter door ---------- */

.home-v4 .home-newsletter-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 34px clamp(56px, 9vw, 130px);
  align-items: center;
  padding: clamp(54px, 6vw, 82px) max(24px, calc((100vw - 1240px) / 2));
  background: var(--majlis-olive);
  color: var(--majlis-cream);
}

.home-v4 .home-newsletter-callout .kicker {
  color: #f1c56f;
}

.home-v4 .home-newsletter-callout h2 {
  max-width: 12ch;
  margin-top: 8px;
  font-family: var(--majlis-serif);
  font-size: clamp(2.8rem, 4.6vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
}

.home-v4 .home-newsletter-callout div > p:last-child {
  max-width: 42em;
  margin-top: 18px;
  color: #dce0d2;
  line-height: 1.8;
}

.home-v4 .home-newsletter-callout > a {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 92px;
  border: 1px solid rgba(255, 250, 241, 0.48);
  padding: 18px 20px;
  color: var(--majlis-cream);
  transition: border-color 180ms ease, background 180ms ease;
}

.home-v4 .home-newsletter-callout > a:hover {
  border-color: var(--majlis-cream);
  background: rgba(255, 250, 241, 0.08);
}

.home-v4 .home-newsletter-callout > a span {
  font-family: var(--majlis-serif);
  font-size: 1.5rem;
}

.home-v4 .home-newsletter-callout > a small {
  color: #c8cdbc;
  font-size: 0.72rem;
}

/* ---------- Two useful doors, not a generic feature grid ---------- */

.home-v4 .home-explore {
  padding: clamp(72px, 8vw, 104px) max(20px, calc((100vw - 1240px) / 2));
  background: var(--majlis-cream);
}

.home-v4 .home-explore-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 12px clamp(48px, 9vw, 126px);
  align-items: end;
}

.home-v4 .home-explore-heading .kicker {
  grid-column: 1 / -1;
  color: var(--majlis-thread);
}

.home-v4 .home-explore-heading h2 {
  max-width: 10ch;
  font-family: var(--majlis-serif);
  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-v4 .home-explore-heading > p:last-child {
  max-width: 32em;
  padding-bottom: 8px;
  color: var(--majlis-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.home-v4 .home-experience-tabs {
  margin-top: 0;
}

.home-v4 .home-tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--majlis-rule);
  border-radius: 0;
}

.home-v4 .home-tab-list button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 86px;
  border: 0;
  border-radius: 0;
  padding: 14px clamp(20px, 3vw, 40px);
  background: var(--majlis-paper);
  color: var(--majlis-muted);
  font-family: var(--majlis-serif);
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  text-align: start;
  transition: background 180ms ease, color 180ms ease;
}

.home-v4 .home-tab-list button + button {
  border-inline-start: 1px solid var(--majlis-rule);
}

.home-v4 .home-tab-list button[aria-selected="true"] {
  background: var(--majlis-thread);
  color: var(--majlis-cream);
}

.home-v4 .home-tab-list button::after {
  display: none;
}

.home-v4 .home-tab-list button:not([aria-selected="true"]):hover {
  background: var(--majlis-sand);
  color: var(--majlis-ink);
}

.home-v4 .home-tab-list button small {
  color: inherit;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.78;
}

.home-v4 .home-tab-panel {
  border: 1px solid var(--majlis-rule);
  border-top: 0;
  background: var(--majlis-cream);
}

.home-v4 .home-tab-panel[hidden] {
  display: none;
}

.home-v4 .home-tab-panel.is-active {
  animation: home-v4-panel-in 280ms ease-out both;
}

.home-v4 .cafe-finder-zone {
  margin: 0;
  padding: clamp(30px, 4vw, 46px) clamp(22px, 5vw, 64px) 0;
  border-radius: 0;
  background: transparent;
}

.home-v4 .cafe-finder-zone .lead-copy {
  display: block;
}

.home-v4 .cafe-finder-zone .lead-story {
  padding: 0;
}

.home-v4 .cafe-finder-zone .lead-copy > .kicker {
  color: var(--majlis-thread);
  text-align: center;
}

.home-v4 .cafe-finder-zone .lead-copy > .lead-title {
  max-width: 12ch;
  margin-inline: auto;
  font-family: var(--majlis-serif);
  font-size: clamp(2.9rem, 4.4vw, 4.35rem);
  font-weight: 400;
  line-height: 0.98;
  text-align: center;
}

.home-v4 .cafe-finder-zone .lead-standfirst {
  max-width: 34em;
  margin: 10px auto 0;
  color: var(--majlis-muted);
  font-size: 1rem;
  text-align: center;
}

.home-v4 .cafe-finder-zone .mood-block {
  display: block;
  margin-top: clamp(22px, 3vw, 30px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-v4 .cafe-finder-zone .mood-prompt {
  color: var(--majlis-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-v4 .cafe-finder-zone .mood-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  border: 0;
}

.home-v4 .cafe-finder-zone .mood-buttons button {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border: 1px solid var(--majlis-rule);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--majlis-paper);
  color: var(--majlis-ink);
  font-family: var(--majlis-serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  text-align: center;
}

.home-v4 .cafe-finder-zone .mood-buttons button + button {
  border-inline-start: 1px solid var(--majlis-rule);
}

.home-v4 .cafe-finder-zone .mood-buttons button::after {
  display: none;
}

.home-v4 .cafe-finder-zone .mood-buttons button:hover {
  border-color: var(--majlis-thread);
  background: var(--majlis-sand);
  color: var(--majlis-thread);
}

.home-v4 .cafe-finder-zone .mood-buttons button.active {
  border-color: var(--majlis-thread);
  background: var(--majlis-thread);
  color: var(--majlis-cream);
  box-shadow: 0 8px 20px rgba(143, 53, 38, 0.14);
}

.home-v4 .cafe-finder-zone .neighborhood-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 0 18px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--majlis-rule);
  border-radius: 6px;
  background: var(--majlis-paper);
  box-shadow: none;
}

.home-v4 .cafe-finder-zone .neighborhood-search:focus-within,
.home-v4 .cafe-finder-zone .neighborhood-search.has-selection {
  border-color: var(--majlis-thread);
  box-shadow: none;
}

.home-v4 .cafe-finder-zone .neighborhood-label {
  border: 0;
  border-inline-end: 1px solid var(--majlis-rule);
  padding: 0 0 0 16px;
  color: var(--majlis-muted);
}

html[dir="ltr"] .home-v4 .cafe-finder-zone .neighborhood-label {
  padding: 0 16px 0 0;
}

.home-v4 .cafe-finder-zone .neighborhood-combobox {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 54px;
}

.home-v4 .cafe-finder-zone .neighborhood-combobox input {
  padding: 10px 0;
  font-family: var(--camel);
  font-size: 1.08rem;
}

.home-v4 .cafe-finder-zone .neighborhood-suggestions {
  background: var(--majlis-cream);
}

.home-v4 .cafe-finder-zone .neighborhood-clear[hidden] {
  display: none;
}

.home-v4 .cafe-finder-zone .pick-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  min-height: 190px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 0;
  border-radius: 0;
  background: var(--majlis-olive);
  color: var(--majlis-cream);
}

.home-v4 .pick-eyebrow {
  color: #f1c56f;
}

.home-v4 .pick-name {
  color: var(--majlis-cream);
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.06;
}

.home-v4 .pick-reason {
  color: #eee2cf;
}

.home-v4 .pick-trust,
.home-v4 .pick-entry .pick-score-hint {
  color: #c8cdbc;
}

.home-v4 .pick-entry .pick-meta {
  justify-content: flex-end;
  margin-top: 0;
  padding-inline-start: 28px;
  border-color: rgba(255, 250, 241, 0.28);
  border-inline-start: 1px solid rgba(255, 250, 241, 0.28);
}

.home-v4 .pick-entry .map-link,
.home-v4 .pick-entry .stamp-button {
  color: var(--majlis-cream);
}

.home-v4 .pick-entry .map-link {
  border-bottom-color: #f1c56f;
}

.home-v4 .pick-entry .stamp-button {
  border-inline-start-color: rgba(255, 250, 241, 0.28);
}

.home-v4 .recommendation-list {
  grid-template-columns: minmax(0, 1fr);
}

.home-v4 .recommendation-card,
.home-v4.cafes-home .recommendation-card {
  border-color: var(--majlis-rule);
}

.home-v4 .home-full-archive {
  border-color: var(--majlis-rule);
}

.home-v4 .home-full-archive > summary {
  padding-inline: clamp(22px, 6vw, 82px);
}

.home-v4 .archive-zone {
  background: var(--majlis-paper);
}

.home-v4 .home-majlis-panel {
  padding: clamp(48px, 7vw, 88px) clamp(22px, 6vw, 82px);
  background: var(--majlis-sand);
  color: var(--majlis-ink);
}

.home-v4 .home-majlis-panel .kicker {
  color: var(--majlis-thread);
}

.home-v4 .home-majlis-intro h3 {
  color: var(--majlis-ink);
}

.home-v4 .home-majlis-intro > p {
  color: var(--majlis-muted);
}

.home-v4 .home-majlis-panel .this-friday > .rule-heading {
  border-color: var(--majlis-rule);
}

.home-v4 .home-majlis-panel .this-friday {
  margin-top: 0;
}

.home-v4 .home-majlis-panel .tf-article,
.home-v4 .home-majlis-panel .tf-cafe {
  border-radius: 0;
  background: var(--majlis-cream);
  color: var(--majlis-ink);
}

.home-v4 .home-majlis-link {
  border-color: var(--majlis-rule);
  color: var(--majlis-thread);
}

/* ---------- Invitation ---------- */

.home-v4 .home-join {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  height: clamp(520px, 62svh, 680px);
  min-height: 0;
  background: var(--majlis-thread);
  color: var(--majlis-cream);
}

.home-v4 .home-join-visual {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-v4 .home-join-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.home-v4 .home-join-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 4.5vw, 64px) max(24px, calc((100vw - 1240px) / 2))
    clamp(44px, 4.5vw, 64px) clamp(32px, 4.5vw, 62px);
}

html[dir="ltr"] .home-v4 .home-join-copy {
  padding-inline: max(24px, calc((100vw - 1240px) / 2)) clamp(32px, 4.5vw, 62px);
}

.home-v4 .home-join-copy .kicker {
  color: var(--majlis-cream);
}

.home-v4 .home-join-copy h2 {
  max-width: 8ch;
  margin-top: 8px;
  font-family: var(--majlis-serif);
  font-size: clamp(3.35rem, 4.8vw, 4.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.home-v4 .home-join-copy > p:not(.kicker) {
  max-width: 34em;
  margin-top: 22px;
  color: #fdf0dc;
  font-size: 1rem;
  line-height: 1.9;
}

.home-v4 .home-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-v4 .home-join .home-action-primary {
  border-color: var(--majlis-cream);
  background: var(--majlis-cream);
  color: var(--majlis-thread-dark);
}

.home-v4 .home-join .home-action-primary:hover {
  background: #f0dfc7;
}

.home-v4 .home-join .home-action-secondary {
  border-color: rgba(255, 250, 241, 0.72);
  background: transparent;
  color: var(--majlis-cream);
}

.home-v4 .home-join .home-action-secondary:hover {
  border-color: var(--majlis-cream);
  background: var(--majlis-cream);
  color: var(--majlis-thread-dark);
}

/* ---------- Motion and focus ---------- */

.home-v4.home-ready .home-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.home-v4 .home-reveal {
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-v4.home-ready .home-hero-copy {
  animation: home-v4-copy-in 720ms cubic-bezier(0.2, 0.75, 0.25, 1) 80ms both;
}

.home-v4.home-ready .home-hero-media img {
  animation: home-v4-image-in 1400ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.home-v4 a:focus-visible,
.home-v4 button:focus-visible,
.home-v4 input:focus-visible,
.home-v4 select:focus-visible,
.home-v4 summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.home-v4 .home-action:focus-visible {
  outline-color: var(--majlis-ink);
}

.home-v4 .home-join .home-action:focus-visible {
  outline-color: var(--majlis-cream);
}

@keyframes home-v4-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-v4-image-in {
  from { transform: scale(1.06); }
  to { transform: scale(1.015); }
}

@keyframes home-v4-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .home-v4 .home-hero {
    grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  }

  .home-v4 .home-hero h1 {
    font-size: clamp(4rem, 7vw, 5.9rem);
  }

  .home-v4 .home-ritual-story {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 46px;
  }

  .home-v4 .home-proof-content {
    padding-inline-end: 34px;
  }

  html[dir="ltr"] .home-v4 .home-proof-content {
    padding-inline-start: 34px;
  }
}

@media (max-width: 900px) {
  .home-v4 .home-ritual-heading,
  .home-v4 .home-explore-heading,
  .home-v4 .home-majlis-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-v4 .home-ritual-lead,
  .home-v4 .home-explore-heading > p:last-child {
    padding-bottom: 0;
  }

  .home-v4 .home-proof {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  }

  .home-v4 .home-proof-numbers p {
    grid-template-columns: minmax(110px, 0.5fr) minmax(0, 1fr);
  }

  .home-v4 .cafe-finder-zone .pick-entry {
    grid-template-columns: minmax(0, 1fr);
    min-height: 250px;
  }

  .home-v4 .pick-entry .pick-meta {
    padding: 26px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 250, 241, 0.28);
  }
}

@media (max-width: 760px) {
  .home-v4 .masthead-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding-inline: 10px;
  }

  .home-v4 .sticky-brand {
    min-width: 80px;
    gap: 6px;
  }

  .home-v4 .sticky-brand-mark {
    width: 20px;
    height: 20px;
  }

  .home-v4 .sticky-brand-wordmark {
    display: block;
    width: 64px;
  }

  .home-v4 .masthead-nav .site-nav {
    gap: 0;
  }

  .home-v4 .masthead-nav .site-nav a,
  .home-v4 .language-switch button {
    padding-inline: 4px;
    font-size: 0.68rem;
  }

  .home-v4 .home-hero,
  .home-v4 .home-ritual,
  .home-v4 .home-proof,
  .home-v4 .home-explore,
  .home-v4 .home-join {
    scroll-margin-top: 58px;
  }

  .home-v4 #recommend {
    scroll-margin-top: 68px;
  }

  .home-v4 .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36svh minmax(0, auto);
    min-height: calc(100svh - 58px);
  }

  .home-v4 .home-hero-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 36svh;
    border-inline-start: 0;
    border-bottom: 1px solid var(--majlis-rule);
  }

  .home-v4 .home-hero-media img {
    object-position: 50% 49%;
  }

  .home-v4 .home-photo-caption {
    inset-inline: 18px;
    bottom: 14px;
    font-size: 0.68rem;
  }

  .home-v4 .home-hero-copy {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(64svh - 58px);
    padding: 30px 20px 56px;
  }

  .home-v4 .home-hero h1 {
    max-width: 7ch;
    margin-top: 14px;
    font-size: clamp(3.25rem, 14.5vw, 4.5rem);
  }

  .home-v4 .home-hero-intro {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .home-v4 .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  .home-v4 .home-action {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 0.75rem;
  }

  .home-v4 .home-hero-since {
    margin-top: 16px;
    padding-top: 0;
    font-size: 0.68rem;
  }

  .home-v4 .home-scroll-cue {
    display: none;
  }

  .home-v4 .home-ritual {
    padding: 82px 0 0;
  }

  .home-v4 .home-ritual-heading {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px 68px;
  }

  .home-v4 .home-ritual-heading h2,
  .home-v4 .home-explore-heading h2 {
    font-size: clamp(3.45rem, 15vw, 4.8rem);
  }

  .home-v4 .home-ritual-story {
    display: block;
    border-top: 0;
  }

  .home-v4 .home-ritual-visual {
    display: none;
  }

  .home-v4 .home-route {
    padding-inline: 20px;
    background: var(--majlis-paper);
  }

  .home-v4 .home-route li {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 28px;
    align-content: start;
    min-height: 0;
    padding-block: 0 64px;
  }

  .home-v4 .home-route li + li {
    padding-top: 64px;
  }

  .home-v4 .home-route-media {
    grid-column: 1 / -1;
    grid-row: 1;
    display: block;
    width: calc(100% + 40px);
    height: clamp(220px, 62vw, 340px);
    margin-inline: -20px;
    overflow: hidden;
    background: #302820;
  }

  .home-v4 .home-route-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
  }

  .home-v4 .home-route li[data-film-chapter="mosque"] .home-route-media img {
    object-position: 50% 48%;
  }

  .home-v4 .home-route li[data-film-chapter="coffee"] .home-route-media img {
    object-position: 50% 50%;
  }

  .home-v4 .home-route li[data-film-chapter="topic"] .home-route-media img {
    object-position: 50% 56%;
  }

  .home-v4 .home-route-number {
    grid-column: 1;
    grid-row: 2;
    width: 46px;
  }

  .home-v4 .home-route-copy {
    grid-column: 2;
    grid-row: 2;
    opacity: 1;
    transform: none;
  }

  .home-v4 .home-route strong {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .home-v4 .home-route-copy p {
    font-size: 0.92rem;
  }

  .home-v4 .home-proof {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .home-v4 .home-proof-visual {
    height: min(42svh, 360px);
    min-height: 280px;
  }

  .home-v4 .home-proof-visual img {
    object-position: 50% 47%;
  }

  .home-v4 .home-proof-content,
  html[dir="ltr"] .home-v4 .home-proof-content {
    padding: 62px 20px 70px;
  }

  .home-v4 .home-proof-heading h2 {
    font-size: clamp(3.45rem, 15vw, 4.85rem);
  }

  .home-v4 .home-proof-numbers {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 42px;
  }

  .home-v4 .home-proof-numbers p {
    display: grid;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
    min-height: 92px;
    padding: 14px 0;
    text-align: start;
  }

  .home-v4 .home-proof-numbers p + p {
    border-block-start: 1px solid rgba(90, 70, 46, 0.22);
    border-inline-start: 0;
  }

  .home-v4 .home-proof-numbers strong {
    font-size: clamp(2.9rem, 13vw, 3.8rem);
  }

  .home-v4 .home-proof-numbers span {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .home-v4 .home-proof-method {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .home-v4 .home-newsletter-callout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 52px 20px;
  }

  .home-v4 .home-newsletter-callout h2 {
    font-size: clamp(2.8rem, 13vw, 3.8rem);
  }

  .home-v4 .home-newsletter-callout > a {
    min-height: 84px;
  }

  .home-v4 .home-explore {
    padding: 66px 14px;
  }

  .home-v4 .home-explore-heading {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 4px;
  }

  .home-v4 .home-experience-tabs {
    margin-top: 30px;
  }

  .home-v4 .home-tab-list {
    border-radius: 7px;
    overflow: hidden;
  }

  .home-v4 .home-tab-list button {
    min-height: 76px;
    padding: 10px;
    font-size: clamp(1.4rem, 6.2vw, 1.9rem);
  }

  .home-v4 .home-tab-list button small {
    font-size: 0.66rem;
  }

  .home-v4 .cafe-finder-zone {
    padding: 28px 12px 0;
  }

  .home-v4 .cafe-finder-zone .lead-copy > .lead-title {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
  }

  .home-v4 .cafe-finder-zone .lead-standfirst {
    font-size: 0.9rem;
  }

  .home-v4 .cafe-finder-zone .mood-buttons {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--majlis-rule);
    border-radius: 7px;
  }

  .home-v4 .cafe-finder-zone .mood-buttons button {
    display: grid;
    grid-template-columns: minmax(76px, 0.34fr) minmax(0, 0.66fr);
    gap: 14px;
    align-items: center;
    justify-content: stretch;
    min-height: 64px;
    border: 0;
    border-bottom: 1px solid var(--majlis-rule);
    border-radius: 0;
    padding: 12px 4px;
    font-size: clamp(1.3rem, 6vw, 1.65rem);
    text-align: start;
  }

  .home-v4 .cafe-finder-zone .mood-buttons button + button {
    border-inline-start: 0;
  }

  .home-v4 .cafe-finder-zone .mood-buttons button:last-child {
    border-bottom: 0;
  }

  .home-v4 .cafe-finder-zone .mood-buttons button small {
    display: block;
    color: inherit;
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0.72;
  }

  .home-v4 .cafe-finder-zone .neighborhood-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .home-v4 .cafe-finder-zone .neighborhood-label,
  html[dir="ltr"] .home-v4 .cafe-finder-zone .neighborhood-label {
    border-inline-end: 0;
    border-bottom: 1px solid var(--majlis-rule);
    padding: 0 0 8px;
  }

  .home-v4 .cafe-finder-zone .neighborhood-suggestions,
  .home-v4 .cafe-finder-zone .neighborhood-status {
    grid-column: 1;
  }

  .home-v4 .cafe-finder-zone .pick-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 230px;
    margin-top: 20px;
    padding: 26px 20px;
  }

  .home-v4 .pick-name {
    margin-top: 0;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .home-v4 .recommendation-card,
  .home-v4.cafes-home .recommendation-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-v4 .recommendation-card .map-button,
  .home-v4.cafes-home .recommendation-card .map-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .home-v4 .home-full-archive > summary {
    padding-inline: 16px;
    font-size: 0.82rem;
  }

  .home-v4 .archive-zone {
    padding: 24px 16px;
  }

  .home-v4 .home-majlis-panel {
    padding: 44px 16px;
  }

  .home-v4 .home-majlis-intro h3 {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  .home-v4 .home-join {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: auto;
  }

  .home-v4 .home-join-visual {
    height: min(38svh, 360px);
    min-height: 280px;
  }

  .home-v4 .home-join-copy,
  html[dir="ltr"] .home-v4 .home-join-copy {
    padding: 54px 20px 62px;
  }

  .home-v4 .home-join-copy h2 {
    font-size: clamp(3.4rem, 15vw, 4.7rem);
  }

  .home-v4 .home-join-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 430px) {
  .home-v4 .home-tab-list button {
    min-height: 64px;
  }

  .home-v4 .home-tab-list button small {
    display: none;
  }
}

@media (max-width: 390px) {
  .home-v4 .sticky-brand {
    min-width: 44px;
  }

  .home-v4 .sticky-brand-wordmark {
    display: none;
  }

  .home-v4 .masthead-nav .site-nav a,
  .home-v4 .language-switch button {
    font-size: 0.65rem;
  }

  .home-v4 .home-hero h1 {
    font-size: 3.12rem;
  }

  .home-v4 .home-action {
    gap: 8px;
    padding: 8px;
    line-height: 1.25;
    white-space: normal;
  }

  .home-v4 .home-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-v4 .home-tab-list button small {
    display: none;
  }

  .home-v4 .home-action::after {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v4 .home-reveal,
  .home-v4.home-ready .home-reveal,
  .home-v4.home-ready .home-hero-copy,
  .home-v4.home-ready .home-hero-media img,
  .home-v4 .home-tab-panel.is-active,
  .home-v4 .home-ritual-frame,
  .home-v4 .home-route-number,
  .home-v4 .home-route-copy {
    animation: none;
    transition: none;
    transform: none;
  }
}
