/* ===== 90 MINUTES A WEEK — HOMEPAGE (home.css) =====
   The evening homepage: the moments cards on the dot field, the two-roads
   diagram, mission, stacked app panels, journeys rail,
   quotes, the lamplit story, FAQ and contact. Loads after evening.css, which
   provides the palette, header, menu, footer and buttons. The homepage does
   not load styles.css: its class names (.hero, .card, .story…) would collide. */

:root {
  --night: #1A1630;
  --night-2: #221C3D;
  --night-3: #2C2550;
  --line: rgba(185, 174, 214, 0.18);
  --candle: #FFF3E4;   /* text on night: 16.6:1 */
  --haze: #B9AED6;     /* secondary text on night: 8.2:1 */
  --ember: #FFB066;
  --rose: #F0668C;     /* 5.0:1 on night */
  --lamp: #D7A86E;     /* brand tan */
  --ink: #2D1F10;      /* text on tan: 7.9:1 */
  --ink-link: #4A3208;

  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale, major third from 18px */
  --t-sm: 0.889rem;
  --t-base: 1.125rem;
  --t-md: 1.406rem;
  --t-lg: 1.758rem;
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  --t-hero: clamp(2.5rem, 1.2rem + 4.6vw, 5.4rem);

  --hdr-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--candle);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
.logo picture, .logo img { display: inline-block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-family: var(--sans); font-size: var(--t-md); font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; background: var(--candle); color: var(--night); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--hdr-h));
  display: flex; align-items: center;
  padding: 40px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(240, 102, 140, 0.10), transparent 70%),
    radial-gradient(80% 60% at 20% 100%, rgba(80, 60, 150, 0.35), transparent 70%),
    var(--night);
}
.dot-field { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grid {
  position: relative; pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}

/* Moments of a life together: three clips of the homepage film laid out like
   photos on a table. d.js floats them, tilts them toward the pointer, lifts the
   one you hover and lets you drag them around; each card's position and turn
   come from --x / --y / --r2, set per frame. The cards always sit behind the
   copy, which keeps a soft night backing so the headline reads over them. */
.moments { position: relative; z-index: 1; height: min(520px, 64svh); pointer-events: auto; touch-action: pan-y; }
.card {
  --rot: 0deg;
  position: absolute; margin: 0; width: clamp(180px, 16vw, 240px); aspect-ratio: 4 / 5;
  padding: 8px 8px 32px; border-radius: 16px; background: #F6EBDD;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.75), 0 0 60px -20px rgba(255, 170, 100, 0.35);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(calc(var(--rot) + var(--r2, 0deg))) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transform-style: preserve-3d;
  cursor: grab; user-select: none; -webkit-user-select: none;
  transition: box-shadow 0.3s;
  will-change: transform;
}
.card.is-lifted { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 90px -10px rgba(255, 170, 100, 0.5); }
.card.is-dragging { cursor: grabbing; }
.card .shot { height: 100%; border-radius: 9px; overflow: hidden; background: #3A2A44 center / cover; }
.card video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card figcaption { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: #4A3208; }
.c1 { --rot: -7deg; left: 2%; top: 20%; }
.c2 { --rot: 4deg; left: 32%; top: 4%; }
.c3 { --rot: -3deg; left: 56%; top: 36%; }
.c1 .shot { background-image: url("assets/moments/moment-1.jpg?v=2"); }
.c2 .shot { background-image: url("assets/moments/moment-2.jpg?v=2"); }
.c3 .shot { background-image: url("assets/moments/moment-3.jpg?v=2"); }
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero-copy { position: relative; z-index: 2; max-width: 44rem; }
/* a soft pool of night behind the copy, so a card dragged under it never competes */
[dir="rtl"] .hero-copy::before { inset: -12% -14% -14% -10%; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -10% -14% -14%;
  background: radial-gradient(closest-side, rgba(26, 22, 48, 0.82), rgba(26, 22, 48, 0.6) 60%, rgba(26, 22, 48, 0));
  filter: blur(8px); pointer-events: none;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1rem + 4.2vw, 4.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
  text-shadow: 0 2px 24px rgba(26, 22, 48, 0.9);
}
.h1-line { display: block; text-wrap: balance; }
.h1-line + .h1-line { color: #FFD6A8; font-weight: 400; }
.lede { font-size: 1.2rem; color: #DCD3EC; max-width: 36rem; margin-bottom: 2rem; }
.lede { text-shadow: 0 1px 12px var(--night); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* page-load sequence: the copy arrives as the cards are dealt onto the table (home.js) */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); }
.js .hero.is-lit .hero-copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero.is-lit .hero-copy > :nth-child(2) { transition-delay: 0.15s; }
.js .hero.is-lit .hero-copy > :nth-child(3) { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  /* the cards sit above the copy, centred, and tuck slightly behind the headline */
  .moments { order: -1; height: 230px; margin-bottom: -28px; }
  .card { --half: min(70px, 17vw); --spread: min(120px, 26vw); width: calc(var(--half) * 2); padding: 6px 6px 24px; border-radius: 12px; }
  .card figcaption { font-size: 0.8rem; bottom: 4px; }
  .c1 { left: calc(50% - var(--half) - var(--spread)); top: 16%; }
  .c2 { left: calc(50% - var(--half)); top: 0; }
  .c3 { left: calc(50% - var(--half) + var(--spread)); top: 20%; }
  .hero-copy::before { inset: -6% -8% -8% -8%; }
  .lede { font-size: 1.06rem; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ===== TWO ROADS (scroll-driven, see home.js) ===== */
.roads { background: var(--night); }
.roads-track { height: 340vh; }
.roads-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.5vh, 28px);
  padding-top: var(--hdr-h); overflow: hidden;
}
.roads-head h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); max-width: 30ch; }
.roads-canvas { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); direction: ltr; }
.roads-canvas svg { display: block; width: 100%; height: auto; max-height: 44svh; overflow: visible; direction: ltr; }
.road { fill: none; stroke-width: 6; stroke-linecap: round; }
.road.kept.a { stroke: var(--rose); }
.road.kept.b { stroke: var(--ember); }
.years line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.yr circle { fill: var(--candle); opacity: 0.25; transition: opacity 0.4s, transform 0.4s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.yr text { font-family: var(--serif); font-style: italic; font-size: 24px; fill: var(--haze); text-anchor: middle; opacity: 0.4; transition: opacity 0.4s; }
.yr.is-on circle { opacity: 1; transform: scale(1.6); }
.yr.is-on text { opacity: 1; fill: var(--candle); }
.road-label { font-family: var(--serif); font-style: italic; font-size: 22px; fill: var(--haze); }
.end-glow { opacity: 0; transition: opacity 1s; }
.end-glow.is-on { opacity: 1; }

.roads-text { width: 100%; }
.road-year { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ember); margin-bottom: 0.4em; }
.road-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); }
.road-col h3 { font-size: 0.95rem; font-weight: 400; color: var(--haze); margin-bottom: 0.3em; }
.road-col p { font-family: var(--serif); font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.55rem); line-height: 1.35; margin: 0; min-height: 3.6em; transition: opacity 0.35s; }
.road-col.drift-col p { color: var(--haze); }
.road-col p.is-swapping { opacity: 0; }
.kept-col { padding-inline-start: 16px; border-inline-start: 3px solid var(--rose); }
.drift-col { padding-inline-start: 16px; border-inline-start: 3px solid #6F6790; }
/* Phones: home.js redraws the timeline top to bottom (viewBox 400x300), the two
   couples side by side. Everything in the sticky stage has to fit one short
   screen (about 360x640 on Android), so the type tightens up. */
@media (max-width: 700px) {
  .roads-stage { gap: 10px; padding-bottom: 12px; }
  .roads-head h2 { font-size: clamp(1.1rem, 0.9rem + 1.4vw, 1.4rem); line-height: 1.2; }
  .roads-canvas svg { max-height: 36svh; margin: 0 auto; }
  .road-label { display: none; }
  .yr text { font-size: 17px; }
  .road { stroke-width: 5; }
  .road-year { font-size: 1.05rem; margin-bottom: 0.2em; }
  .road-cols { grid-template-columns: 1fr; gap: 10px; }
  .road-col h3 { font-size: 0.78rem; margin-bottom: 0.15em; }
  .road-col p { min-height: 0; font-size: 0.98rem; line-height: 1.38; }
}
@media (max-width: 700px) and (max-height: 620px) {
  .roads-canvas svg { max-height: 30svh; }
  .road-col p { font-size: 0.92rem; }
}
/* without JS the section is a plain block */
html:not(.js) .roads-track { height: auto; }
html:not(.js) .roads-stage { position: static; height: auto; padding: 80px 0; }

/* ===== MISSION ===== */
.drift { padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); background: linear-gradient(180deg, var(--night), var(--night-2)); }
.mission-intro h2 { max-width: 14ch; }
.mission-intro h2 { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.2rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.45em; }
.mission-intro p { color: var(--haze); max-width: 40rem; font-size: 1.15rem; }
.mission-intro .mission-line { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.3; color: #FFD6A8; max-width: 34ch; margin-top: 1.2em; }
.habits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 8vw, 100px); }
.habit { padding-top: 20px; border-top: 1px solid var(--line); }
.habit h3 { margin-bottom: 0.5em; }
.habit p { color: var(--haze); margin: 0; }

@media (max-width: 860px) {
  .habits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .habits { grid-template-columns: 1fr; } }

/* ===== APPS: stacked panels ===== */
.apps { background: var(--night-2); padding-top: clamp(64px, 9vw, 120px); }
.apps-head { margin-bottom: clamp(40px, 6vw, 72px); }
.apps-head h2 { max-width: 18ch; margin-bottom: 0.5em; }
.apps-head p { color: var(--haze); max-width: 36rem; }

.app {
  --app: var(--rose);
  --app-deep: #301830;
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(50% 70% at 22% 50%, color-mix(in srgb, var(--app) 26%, transparent), transparent 70%),
    linear-gradient(180deg, var(--app-deep), var(--night-2));
  border-top: 1px solid color-mix(in srgb, var(--app) 30%, transparent);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.55);
}
.app-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.app-visual { position: relative; display: grid; place-items: center; }
.app-visual img {
  width: min(100%, 360px);
  border-radius: 22%;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--app) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out);
}
.app-moment { font-family: var(--serif); font-size: var(--t-md); font-style: italic; color: var(--app); margin-bottom: 0.35em; line-height: 1.3; }
.app h3 { font-family: var(--serif); font-size: var(--t-xl); font-weight: 400; line-height: 1.05; margin-bottom: 0.5em; }
.app h3 .app-sub { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--haze); margin-top: 0.5em; }
.app-body > p { color: #E6DDF0; max-width: 36rem; }
.app ul { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 8px; max-width: 36rem; }
.app li { position: relative; padding-inline-start: 24px; color: var(--haze); }
.app li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--app); box-shadow: 0 0 10px var(--app); }
.app .app-note { font-size: var(--t-sm); color: var(--haze); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5em 0 1.1em; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 14px; background: var(--candle); color: #1A1630; text-decoration: none;
  font-weight: 500; line-height: 1.1;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--app) 80%, transparent); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 1.02rem; }
.store small { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }
.more { color: var(--candle); text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--app) 70%, transparent); }
.more:hover { text-decoration-thickness: 2px; }

/* Panels stack over each other on screens tall enough to show a whole panel */
@media (min-width: 1000px) and (min-height: 760px) {
  /* each panel parks 14px lower than the last, so the earlier ones show as tabs */
  .app { position: sticky; top: calc(var(--hdr-h) + var(--i, 0) * 14px); min-height: calc(100svh - var(--hdr-h) - 42px); display: flex; align-items: center; }
  .app-inner { width: 100%; }
}
@media (max-width: 860px) {
  .app-inner { grid-template-columns: 1fr; }
  .app-visual img { width: 168px; }
  .app-visual { justify-items: start; }
  .app { border-radius: 28px 28px 0 0; }
}

/* ===== JOURNEYS RAIL ===== */
.journeys { position: relative; padding: clamp(80px, 11vw, 150px) 0; background: var(--night); }
.journeys-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.journeys-head h2 { max-width: 20ch; margin-bottom: 0.5em; }
.journeys-head p { color: var(--haze); max-width: 38rem; margin: 0; }
.rail-ctrl { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: none; color: var(--candle); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, opacity 0.2s; }
.rail-btn:hover { background: rgba(255, 243, 228, 0.08); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rail {
  list-style: none; margin: 0 0 40px; padding: 8px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 300px); gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { scroll-snap-align: start; }
.cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 20px; overflow: hidden; text-decoration: none; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 14, 34, 0.92) 100%); }
.cover-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; color: var(--haze); font-size: 0.92rem; line-height: 1.45; }
.cover-text strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; color: var(--candle); margin-bottom: 6px; }
.cover:hover img { transform: scale(1.05); }

@media (max-width: 700px) {
  .journeys-head { flex-direction: column; align-items: flex-start; }
  .rail-ctrl { display: none; }
  .rail { grid-auto-columns: 72vw; }
}

/* ===== ORIGIN QUOTE ===== */
.origin { padding: clamp(80px, 11vw, 150px) 0; background: radial-gradient(70% 60% at 50% 40%, rgba(255, 176, 102, 0.08), transparent 70%), var(--night); border-top: 1px solid var(--line); }
.big-quote { margin: 0 auto; max-width: 56rem; }
.big-quote blockquote { margin: 0; }
[dir="rtl"] .big-quote p { text-indent: 0; }
.big-quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); line-height: 1.25; letter-spacing: -0.01em; text-indent: -0.4em; }
.big-quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--haze); margin-top: 28px; }
.big-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.small-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); max-width: 56rem; margin: clamp(56px, 8vw, 96px) auto 0; }
.small-quotes figure { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.small-quotes blockquote { margin: 0; }
.small-quotes p { font-family: var(--serif); font-size: var(--t-md); line-height: 1.35; }
.small-quotes figcaption { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--haze); }
.small-quotes figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (max-width: 700px) { .small-quotes { grid-template-columns: 1fr; } }

/* ===== STORY (lamplit) ===== */
.story {
  position: relative;
  padding: clamp(96px, 13vw, 180px) 0;
  color: var(--lamplit-text);
  background: var(--lamplit-bg);
}
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.letter h2 { margin-bottom: 0.7em; }
.letter p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; max-width: 36rem; }
.letter h2 { color: var(--candle); }
.letter p { color: var(--lamplit-text); }
.letter .sign { font-style: italic; font-size: 1.4rem; margin-top: 1.5em; color: var(--ember-soft); }
.vision { padding: 28px; border-radius: 24px; color: var(--lamplit-text); background: rgba(255, 214, 168, 0.07); box-shadow: 0 0 0 1px rgba(255, 214, 168, 0.18) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.vision h3 { margin-bottom: 0.8em; }
.vision ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.vision h3 { color: var(--candle); }
.vision li { padding-inline-start: 18px; border-inline-start: 2px solid rgba(255, 176, 102, 0.45); line-height: 1.5; color: var(--lamplit-muted); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { padding: clamp(80px, 11vw, 150px) 0; background: var(--night); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { position: sticky; top: calc(var(--hdr-h) + 24px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.15rem; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list .ans p { color: var(--haze); max-width: 40rem; margin: 0 0 22px; }
.faq-list .ans a { color: var(--ember); text-underline-offset: 3px; }
.faq-list .ans a::before { content: " "; }
/* animated open where supported */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid h2 { position: static; } }

/* ===== CONTACT ===== */
.contact { padding: clamp(80px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--night), var(--night-2)); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.contact-grid h2 { margin-bottom: 0.5em; }
.contact-grid > div p { color: var(--haze); max-width: 30rem; }
.direct a { color: var(--ember); word-break: break-word; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--haze); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 243, 228, 0.04);
  color: var(--candle); font: 400 1rem var(--sans);
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ember); background: rgba(255, 243, 228, 0.07); }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); }
.contact-form .consent input { margin-top: 4px; accent-color: var(--ember); }
.contact-form .consent a { color: var(--candle); }
.contact-form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Hebrew: the rail's arrows point the way the rail moves */
[dir="rtl"] .rail-btn svg { transform: scaleX(-1); }

/* Phones: the check-up button is the page's main action and must be on the
   first screen. On a 360x640 phone the intro paragraph pushed it to ~750px,
   so on phones the buttons come straight after the headline. */
@media (max-width: 700px) {
  .hero { padding-top: 24px; }
  .moments { height: 200px; }
  .card { --half: min(62px, 15vw); --spread: min(110px, 25vw); }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy > h1 { order: 1; margin-bottom: 0.35em; }
  .hero-copy > .hero-actions { order: 2; margin-bottom: 1.25rem; }
  .hero-copy > .lede { order: 3; margin-bottom: 0; }
}
