/* ============================================================
   HealWell / ריפוי שלם - one morning, one film
   Editorial direction: photography carries meaning, big light serif,
   ruled lines instead of boxes, handwritten margin notes, paper grain.
   Order: tokens, base, stage, header, type, components, scenes,
   footer, motion fallbacks, responsive.
   Hebrew (RTL) is the default. [dir="ltr"] handles English.
   ============================================================ */

/* ---------- Fonts: self-hosted subsets in ../fonts (generated from Google Fonts CSS, display=swap) ---------- */
/* Assistant hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Assistant latin-ext */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Assistant latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Assistant hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Assistant latin-ext */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Assistant latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Assistant hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Assistant latin-ext */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Assistant latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/assistant-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Frank Ruhl Libre hebrew */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Frank Ruhl Libre latin-ext */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Frank Ruhl Libre latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Frank Ruhl Libre hebrew */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Frank Ruhl Libre latin-ext */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Frank Ruhl Libre latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/newsreader-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/newsreader-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Gveret Levin hebrew */
@font-face {
  font-family: 'Gveret Levin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gveret-levin-400-normal-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Gveret Levin latin */
@font-face {
  font-family: 'Gveret Levin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gveret-levin-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Caveat latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (from the approved STYLE DNA) ---------- */
:root {
  --paper: #F7F3EC;
  --paper-rgb: 247, 243, 236;
  --sky: #CFD9E0;
  --peach: #F5E4D2;
  --mist: #B8BCBC;
  --sage: #78827A;
  --sage-deep: #4A5D4C;
  --gold: #8A7444;
  --ink: #26302A;
  --ink-soft: #4E5A52;
  --rule: rgba(38, 48, 42, 0.18);
  --wa: #1B7F4C;        /* 5.0:1 under white text, 4.5:1 on paper */
  --wa-dark: #156A3E;

  --display: "Frank Ruhl Libre", "Times New Roman", serif;
  --body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Gveret Levin", "Caveat", cursive;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[lang="en"] {
  --display: "Newsreader", Georgia, serif;
  --hand: "Caveat", cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
bdi { unicode-bidi: isolate; direction: ltr; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- The stage: fixed film behind everything ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--sky); }
.frame {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s var(--ease);     /* fallback mode only, GSAP turns it off */
  will-change: opacity, transform;
}
.frame.is-active { opacity: 1; }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; object-position: 50% 50%; }

/* English reads left to right: mirror the desktop frames so the subject
   stays on the far side and the empty sky stays behind the text. */
@media (min-width: 721px) {
  [dir="ltr"] .frame img { transform: scaleX(-1); }
}

/* Scenes 4-6 fallback light until their photos exist (see TODO in index.html).
   Each one is a step warmer, so the morning still moves forward. */
.frame-4 { background: radial-gradient(120% 90% at 30% 25%, #FBF1E4 0%, #F1E6D6 45%, #D8DCCD 100%); }
.frame-5 { background: radial-gradient(120% 90% at 50% 30%, #FCEFDD 0%, #F3E2C9 50%, #D9D6BE 100%); }
.frame-6 { background: radial-gradient(120% 90% at 50% 35%, #FDEDD6 0%, #F5DEBD 50%, #E2D3B2 100%); }

/* readability veil, on the reading side */
.veil { position: absolute; inset: 0; pointer-events: none; }
[dir="rtl"] .veil { background: linear-gradient(to left, rgba(var(--paper-rgb), 0.86) 0%, rgba(var(--paper-rgb), 0.55) 34%, rgba(var(--paper-rgb), 0) 62%); }
[dir="ltr"] .veil { background: linear-gradient(to right, rgba(var(--paper-rgb), 0.86) 0%, rgba(var(--paper-rgb), 0.55) 34%, rgba(var(--paper-rgb), 0) 62%); }
html[data-scene="final"] .veil { background: radial-gradient(70% 60% at 50% 45%, rgba(var(--paper-rgb), 0.82), rgba(var(--paper-rgb), 0.2) 75%); }
.veil { transition: background 0.8s; }

/* film grain: inline SVG noise, very light */
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-footer { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding: 1.1rem 0;
  transition: background 0.5s, padding 0.5s, box-shadow 0.5s;
}
.site-header.is-scrolled {
  padding: 0.6rem 0;
  background: rgba(var(--paper-rgb), 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: block; color: var(--ink); }
.brand svg { height: 38px; width: auto; }
/* the wordmark <text> in the SVG symbols inherits these, so no font loads for the hidden language */
.brand-he { font-family: "Frank Ruhl Libre", serif; }
.brand-en { font-family: "Newsreader", Georgia, serif; }
html[lang="he"] .brand-en, html[lang="en"] .brand-he { display: none; }
.header-actions { display: flex; align-items: center; gap: 1.6rem; }

.lang-toggle { display: inline-flex; align-items: baseline; gap: 0.35rem; color: var(--ink-soft); font-size: 0.95rem; }
.lang-toggle a, .lang-toggle .lang-current {
  padding: 0.2rem 0.1rem; color: var(--ink-soft); text-decoration: none;
  font-weight: 600; letter-spacing: 0.04em; border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle .lang-current { color: var(--ink); border-bottom-color: var(--gold); }
.lang-toggle a:hover { color: var(--ink); }

.header-wa {
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none;
  color: var(--wa); font-weight: 600; font-size: 1rem;
}
.header-wa svg { width: 20px; height: 20px; }
.header-wa span { border-bottom: 1px solid currentColor; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(3rem, 8vw, 7.2rem); line-height: 0.98; letter-spacing: -0.02em;
}
html[lang="en"] .display { letter-spacing: -0.035em; }
.title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
.kicker {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem; font-weight: 600; color: #75613A; margin-bottom: 1.2rem; /* darker gold for small text: 5.4:1 on paper */
}
html[lang="en"] .kicker { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.hand-note {
  font-family: var(--hand); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1;
  color: var(--sage-deep); transform: rotate(-3deg); display: inline-block;
}
html[lang="en"] .hand-note { font-size: clamp(1.6rem, 2.2vw, 2rem); }

/* one hand-drawn underline per scene */
.scribbled { position: relative; display: inline-block; white-space: nowrap; }
.scribbled svg {
  position: absolute; inset-inline: -2%; bottom: -0.08em; width: 104%; height: 0.22em;
  color: var(--gold); opacity: 0.85;
}

/* ---------- Components ---------- */
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: 0.95rem 1.7rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 1.1rem; line-height: 1;
  box-shadow: 0 12px 28px -14px rgba(23, 120, 74, 0.75);
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease);
}
.btn-wa svg { width: 22px; height: 22px; flex: none; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(23, 120, 74, 0.85); }
.btn-wa-lg { padding: 1.2rem 2.3rem 1.25rem; font-size: 1.3rem; }

.link-call {
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color 0.25s;
}
.link-call:hover { border-bottom-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem;
  color: var(--sage-deep); font-weight: 600; text-decoration: none;
}
.text-link span { border-bottom: 1px solid currentColor; }
.text-link svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }
[dir="rtl"] .text-link svg { transform: scaleX(-1); }
.text-link:hover svg { transform: translateX(4px); }
[dir="rtl"] .text-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* paper sheet: a page lying over the photo, not a card */
.sheet {
  background: rgba(var(--paper-rgb), 0.94);
  padding: clamp(2rem, 4vw, 3.4rem);
  box-shadow: 0 30px 60px -40px rgba(38, 48, 42, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sheet-lead { color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }

/* ---------- Scenes ---------- */
.scene { position: relative; min-height: 100vh; min-height: 100svh; }

/* 1 - Breathe */
.scene-hero { display: flex; align-items: flex-start; padding-top: 22vh; }
.hero-inner { position: relative; }
.hero-inner > * { max-width: 36rem; }
.hero-inner .display { max-width: 11ch; margin-bottom: 1.8rem; }
.hero-sentence { font-size: clamp(1.15rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin-bottom: 2.2rem; }
.hero-note { margin-top: 3rem; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 1px; height: 54px; background: linear-gradient(var(--ink-soft), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 0.9; } }

/* hero entrance: CSS only, never waits on JS */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: rise 1.1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.1s; }
.hero-inner > :nth-child(3) { animation-delay: 0.22s; }
.hero-inner > :nth-child(4) { animation-delay: 0.34s; }
.hero-inner > :nth-child(5) { animation-delay: 0.6s; }

/* 2 - Belief */
.scene-belief { display: flex; align-items: center; padding: 14vh 0; }
.belief-inner { position: relative; }
.belief-inner > * { max-width: 40rem; }
.belief-lines { list-style: none; padding: 0; margin: 0.5rem 0 2.2rem; }
.belief-line {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 2.9vw, 2.5rem); line-height: 1.2;
  padding: 0.85rem 0; border-top: 1px solid var(--rule);
}
.belief-line:last-child { border-bottom: 1px solid var(--rule); }
.belief-after p { color: var(--ink-soft); max-width: 46ch; }
.belief-note { margin-top: 1.8rem; margin-inline-start: 1rem; }

/* 3 - The path */
.scene-process { min-height: auto; }
.process-pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.process-head { padding-top: 16vh; }
.process-head > * { max-width: 34rem; }
.process-lead { color: var(--ink-soft); }
.process-viewport {
  margin-top: auto; padding: 3rem 0 3.5rem;
  background: linear-gradient(to top, rgba(var(--paper-rgb), 0.96) 0%, rgba(var(--paper-rgb), 0.9) 70%, rgba(var(--paper-rgb), 0) 100%);
}
.process-track {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; gap: 0; width: max-content;
}
.stop {
  width: min(26rem, 80vw); padding: 0.4rem 2.2rem 0.4rem;
  border-inline-start: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.stop:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stop-num { font-family: var(--hand); font-size: 3.4rem; line-height: 0.8; color: var(--gold); }
.stop h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
.stop p { color: var(--ink-soft); font-size: 1.05rem; }
.stop .btn-wa { align-self: flex-start; margin-top: 0.8rem; }
.process-note { position: absolute; top: 18vh; inset-inline-end: var(--gutter); }

/* 4 - Trust */
.scene-trust { display: flex; align-items: center; padding: 16vh 0; }
.trust-inner { display: grid; grid-template-columns: minmax(0, 38rem) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ledger { list-style: none; padding: 0; margin: 0 0 2.2rem; border-top: 1px solid var(--rule); }
.ledger li {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.5rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.ledger strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.ledger span { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }

/* portrait: a taped print lying on the page */
.portrait {
  justify-self: center; width: min(22rem, 100%); background: #FFFDF8; padding: 0.9rem 0.9rem 1.2rem;
  box-shadow: 0 24px 50px -30px rgba(38, 48, 42, 0.55); transform: rotate(2deg); position: relative;
}
.tape {
  position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(232, 222, 200, 0.85); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.portrait img { width: 100%; height: auto; }
.portrait figcaption { margin-top: 0.8rem; font-size: 1.6rem; }

/* 5 - Fit + FAQ */
.scene-fit { padding: 16vh 0; }
.sheet-wide { max-width: 62rem; margin-inline: auto; }
.fit-cols { display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0 3rem; }
.fit-cols > div { padding-inline-end: 2.2rem; }
.fit-cols > div + div { padding-inline: 2.2rem 0; border-inline-start: 1px solid var(--rule); }
.fit-cols h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.8rem; }
.dash-list { list-style: none; padding: 0; }
.dash-list li { position: relative; padding-inline-start: 1.4rem; margin-bottom: 0.6rem; color: var(--ink-soft); }
.dash-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.85em; width: 0.8rem; height: 1px; background: var(--gold); }
.faq-title { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.6rem; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; margin: 0; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--gold); transition: transform 0.35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.2rem; max-width: 60ch; }

/* 6 - Final */
.scene-final { display: flex; align-items: center; padding: 14vh 0 10vh; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-note { margin-bottom: 1.2rem; }
.display-final { font-size: clamp(2.8rem, 7vw, 6.2rem); max-width: 12ch; margin-bottom: 1.6rem; }
.final-text { color: var(--ink-soft); max-width: 36ch; margin-bottom: 2.4rem; font-size: 1.25rem; }
.final-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.2rem; margin-top: 2rem; }
.final-contact a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.final-contact a:hover { border-bottom-color: var(--ink); }
.final-contact svg { width: 18px; height: 18px; color: var(--sage-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 4.5rem 0 2rem; color: var(--ink-soft); font-size: 1rem; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand svg { height: 34px; width: auto; margin-bottom: 0.9rem; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 0.45rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.footer-scope { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-credit { margin-top: 0.6rem; font-size: 0.8rem; color: #5C6660; } /* 5.2:1 on paper, AA for small text */
.footer-credit a { text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(23, 120, 74, 0.8);
  transition: transform 0.35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Motion fallbacks ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
html.no-js .reveal, html.reduced-motion .reveal { opacity: 1; transform: none; }
html.gsap .frame { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .frame { transition: opacity 0.6s linear; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .trust-inner { grid-template-columns: 1fr; }
  .portrait { width: min(18rem, 80%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone: portrait frames, text over the sky at the top,
   longer content arrives on paper after the photo has had a moment. */
@media (max-width: 720px) {
  body { font-size: 1.08rem; }
  .brand svg { height: 32px; }
  .header-actions { gap: 1rem; }
  .header-wa span { display: none; }
  .header-wa svg { width: 24px; height: 24px; }

  [dir] .veil { background: linear-gradient(to bottom, rgba(var(--paper-rgb), 0.86) 0%, rgba(var(--paper-rgb), 0.62) 45%, rgba(var(--paper-rgb), 0) 76%); }
  html[data-scene="final"] .veil { background: radial-gradient(90% 60% at 50% 40%, rgba(var(--paper-rgb), 0.88), rgba(var(--paper-rgb), 0.3) 85%); }

  .scene-hero { padding-top: 15vh; }
  .display { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .hero-inner .display { max-width: none; }
  .hero-note { display: none; }

  /* photo first, then the page slides over it */
  .scene-belief, .scene-trust, .scene-fit { padding: 58vh 0 6vh; align-items: flex-start; }
  .belief-inner { background: rgba(var(--paper-rgb), 0.93); padding: 2rem 1.5rem; margin-inline: calc(var(--gutter) * -0.5); width: auto; }
  .belief-note { position: static; margin-top: 1.4rem; }

  .process-pin { min-height: 0; overflow: visible; padding-top: 50vh; }
  .process-head, .process-viewport, .process-note { width: calc(100% - var(--gutter)); margin-inline: auto; }
  .process-head { padding: 2rem 1.5rem 0.5rem; background: rgba(var(--paper-rgb), 0.93); }
  .process-viewport { margin-top: 0; padding: 0 0 2.5rem; background: rgba(var(--paper-rgb), 0.93); }
  .process-track { flex-direction: column; width: auto; padding: 0 1.5rem; }
  .stop { width: auto; padding: 1.4rem 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .stop:first-child { padding-inline-start: 0; }
  .process-note { position: static; margin: 0 1.5rem 0; padding-bottom: 1rem; background: rgba(var(--paper-rgb), 0.93); display: block; transform: none; }

  .sheet { padding: 2rem 1.5rem; margin-inline: calc(var(--gutter) * -0.5); }
  .ledger li { grid-template-columns: 1fr; }
  .fit-cols { grid-template-columns: 1fr; }
  .fit-cols > div, .fit-cols > div + div { padding: 0; border: 0; }
  .fit-cols > div + div { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }

  .scene-final { padding: 12vh 0 8vh; }
  .display-final { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .btn-wa-lg { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .wa-float { width: 54px; height: 54px; bottom: 1rem; inset-inline-end: 1rem; }
}

/* ---------- Article pages (/blog/) ---------- */
body.article-page { background: var(--paper); }
.article-brand { font-family: var(--display); font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.article-wrap { width: min(44rem, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 8rem 0 4rem; }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 2rem; }
.crumbs a { color: var(--ink-soft); }
.article-head { margin-bottom: 2rem; }
.article-meta { color: var(--ink-soft); font-size: 0.95rem; }
.article-lead { font-size: 1.25rem; line-height: 1.7; margin-bottom: 2rem; }
.article-wrap h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.6rem 0 0.8rem; }
.article-wrap p { margin-bottom: 1.1rem; }
.article-wrap .dash-list, .article-wrap .steps-list { margin: 0 0 1.4rem; }
.steps-list { padding-inline-start: 1.4rem; }
.steps-list li { margin-bottom: 0.6rem; color: var(--ink-soft); }
.article-wrap .faq { margin-bottom: 2rem; }
.article-cta { margin: 3rem 0 2rem; padding: 2.2rem; background: #FFFDF8; box-shadow: 0 24px 50px -36px rgba(38, 48, 42, 0.5); text-align: center; }
.article-cta h2 { margin-top: 0.4rem; }
.article-cta .btn-wa { margin: 0.6rem 0 1rem; }
.article-cta-call a { font-weight: 600; }
.article-more { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.article-more a { color: var(--sage-deep); font-weight: 600; }
.post-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: grid; gap: 0.3rem; padding: 1.4rem 0; text-decoration: none; color: var(--ink); }
.post-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }
.post-meta { font-size: 0.9rem; color: var(--ink-soft); }
.post-desc { color: var(--ink-soft); }
.post-list a:hover .post-title { color: var(--sage-deep); }
