:root {
  --ink: #17150f;
  --muted: #6d6a60;
  --paper: #f7f4ec;
  --card: #fffdf7;
  --orange: #ff6038;
  --yellow: #ffd84a;
  --green: #1d6b4f;
  --line: rgba(23, 21, 15, 0.14);
  --shadow: 0 24px 70px rgba(42, 36, 20, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--orange); display: grid; place-items: center; transform: rotate(-6deg); }
.brand-mark::after { content: "↗"; color: white; font-size: 21px; }
.brand-name { font-size: 1.08rem; letter-spacing: -0.04em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: .88rem; font-weight: 750; background: rgba(255,255,255,.55); }
.lang summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); z-index: 5; }
.lang-menu a { display: block; padding: 9px 10px; text-decoration: none; border-radius: 10px; font-size: .9rem; }
.lang-menu a:hover { background: #f0ecdf; }
.nav-link { text-decoration: none; font-weight: 800; font-size: .92rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 13px 18px; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.pill-dark { background: var(--ink); color: white; }
.pill-light { background: var(--card); border: 1px solid var(--line); }
.pill-orange { background: var(--orange); color: white; }

.hero { padding: 58px 0 74px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; min-height: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); background: rgba(255,255,255,.52); border-radius: 999px; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,96,56,.14); }
h1 { margin: 20px 0 22px; max-width: 780px; font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .91; letter-spacing: -.075em; }
.accent-word { position: relative; display: inline-block; color: var(--green); }
.accent-word::after { content: ""; position: absolute; height: 12px; left: 1%; right: -2%; bottom: -2px; background: var(--yellow); z-index: -1; transform: rotate(-2deg); }
.lead { max-width: 630px; color: var(--muted); font-size: clamp(1.03rem, 1.8vw, 1.24rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.micro { margin-top: 20px; font-size: .82rem; color: var(--muted); }

.phone-wrap { position: relative; min-height: 510px; display: grid; place-items: center; }
.sun { position: absolute; width: 390px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); opacity: .9; }
.scribble { position: absolute; font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.scribble.one { top: 4%; left: 1%; transform: rotate(-8deg); }
.scribble.two { right: -2%; bottom: 11%; transform: rotate(7deg); }
.phone { width: min(330px, 82vw); position: relative; border: 10px solid var(--ink); border-radius: 40px; background: var(--ink); box-shadow: 0 34px 90px rgba(28,24,14,.28); transform: rotate(3deg); overflow: hidden; }
.phone-screen { min-height: 500px; background: linear-gradient(170deg, #2d604f, #132b25); color: white; padding: 19px; display: flex; flex-direction: column; justify-content: flex-end; }
.phone-tag { align-self: flex-start; margin-bottom: auto; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font-size: .72rem; }
.phone-person { font-family: Georgia, serif; font-size: 6.8rem; line-height: .82; opacity: .9; text-align: center; margin: 20px 0; }
.phone h3 { font-size: 1.75rem; line-height: 1.06; margin: 0 0 10px; letter-spacing: -.04em; }
.phone p { color: rgba(255,255,255,.76); font-size: .9rem; line-height: 1.45; margin: 0; }

.section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.kicker { color: var(--orange); font-size: .77rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
h2 { margin: 8px 0 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.06em; }
.section-intro { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { min-height: 260px; padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(42,36,20,.05); }
.step:nth-child(2) { background: var(--yellow); transform: translateY(20px) rotate(1deg); }
.step:nth-child(3) { background: #d8e9df; }
.step-no { font-size: .78rem; font-weight: 900; color: var(--muted); }
.step h3 { margin: 58px 0 12px; font-size: 1.55rem; letter-spacing: -.04em; }
.step p { margin: 0; color: #625f56; line-height: 1.55; }
.quote-band { margin-top: 80px; padding: 50px; border-radius: 34px; background: var(--ink); color: white; display: grid; grid-template-columns: 1.5fr .5fr; gap: 20px; align-items: end; }
.quote-band blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.08; }
.quote-band span { color: #b9b4a6; line-height: 1.5; }

.hope-section { background: #ece7d9; }
.hope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hope-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--ink); border-radius: 28px; background: var(--card); box-shadow: 8px 8px 0 var(--ink); }
.hope-card:nth-child(2) { background: var(--yellow); transform: rotate(1deg); }
.hope-card:nth-child(3) { background: #d8e9df; transform: rotate(-1deg); }
.hope-card span { color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hope-card strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.04; letter-spacing: -.035em; }

.cta { padding: 90px 0 110px; text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto 25px; }
.cta p { max-width: 600px; margin: 0 auto 28px; color: var(--muted); line-height: 1.6; }
footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

/* Explore: one embedded story per viewport */
.explore-body { background: #0c0b09; color: #f9f4e8; min-height: 100vh; overflow: hidden; }
.explore-body .brand-mark { background: var(--yellow); }
.explore-body .brand-mark::after { color: var(--ink); }
.reel-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 76px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; background: linear-gradient(to bottom, rgba(8,7,5,.9), transparent); }
.reel-nav > * { pointer-events: auto; }
.reel-controls { display: flex; align-items: center; gap: 10px; }
.reel-counter, .reel-shuffle, .reel-language select { border: 1px solid rgba(255,255,255,.2); background: rgba(19,18,14,.68); color: white; border-radius: 999px; padding: 10px 14px; backdrop-filter: blur(16px); font: inherit; font-size: .76rem; font-weight: 850; letter-spacing: .04em; }
.reel-shuffle { cursor: pointer; }
.reel-language select { cursor: pointer; color-scheme: dark; appearance: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.feed-status { position: fixed; z-index: 21; left: 26px; bottom: 18px; color: rgba(255,255,255,.54); font-size: .7rem; pointer-events: none; }
.sound-start { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 14px 20px; color: var(--ink); background: var(--yellow); box-shadow: 0 14px 44px rgba(0,0,0,.38); font: inherit; font-size: .86rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.sound-start:hover { transform: translateX(-50%) translateY(-2px); }
.sound-start:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.sound-start[hidden] { display: none; }
.embed-note { position: fixed; z-index: 21; right: 26px; bottom: 18px; color: rgba(255,255,255,.48); font-size: .68rem; }
.reel-feed { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
.reel-feed::-webkit-scrollbar { display: none; }
.reel-slide { min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(330px, .72fr); align-items: center; justify-content: center; gap: clamp(42px, 6vw, 110px); padding: 72px clamp(36px, 8vw, 150px) 24px; background: radial-gradient(circle at 30% 50%, rgba(51,99,77,.2), transparent 38%), #0c0b09; }
.reel-slide:nth-child(even) { background: radial-gradient(circle at 68% 40%, rgba(255,96,56,.14), transparent 36%), #0c0b09; }
.reel-stage { height: min(86svh, 820px); display: grid; place-items: center; }
.reel-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; border-radius: 28px; background: #24221d; box-shadow: 0 28px 90px rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.15); }
.reel-frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; background: white; }
.reel-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: #bdb8aa; }
.reel-fallback span { padding: 9px 12px; background: rgba(0,0,0,.28); border-radius: 999px; font-size: .75rem; }
.reel-unavailable { position: relative; z-index: 2; height: 100%; display: grid; place-content: center; gap: 10px; padding: 34px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(255,201,71,.14), transparent 34%), #1a1813; }
.reel-unavailable strong { font-size: 1.25rem; }
.reel-unavailable span { color: #aaa496; font-size: .82rem; line-height: 1.5; }
.story-panel { max-width: 540px; }
.story-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--yellow); text-transform: uppercase; font-size: .72rem; letter-spacing: .11em; font-weight: 900; }
.story-panel h2 { margin: 22px 0 10px; font-size: clamp(1.15rem, 1.6vw, 1.65rem); line-height: 1.1; }
.story-panel p { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.55vw, 2.8rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.story-lesson { display: inline-flex; margin: 0 0 28px; padding: 9px 13px; border: 1px solid rgba(255,201,71,.35); border-radius: 999px; color: var(--yellow); font-size: .78rem; font-weight: 800; }
.story-read { display: block; width: fit-content; margin: -12px 0 26px; color: var(--yellow); font-size: .92rem; font-weight: 850; text-decoration: none; }
.story-read:hover { text-decoration: underline; }
.story-read[hidden] { display: none; }
.cta .hero-actions { justify-content: center; }
.reel-stories { text-decoration: none; }
.swipe-cue { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.52); font-size: .78rem; font-weight: 750; }
.swipe-cue > span:last-child { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.install { display: none; }
.install.visible { display: inline-flex; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 680px); }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phone-wrap { min-height: 540px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2) { transform: none; }
  .quote-band { grid-template-columns: 1fr; padding: 32px; }
  .hope-grid { grid-template-columns: 1fr; }
  .hope-card { min-height: 210px; }
  .hope-card:nth-child(2), .hope-card:nth-child(3) { transform: none; }
  .reel-slide { grid-template-columns: minmax(300px, .95fr) minmax(280px, .75fr); gap: 28px; padding-inline: 30px; }
  .story-panel p { font-size: clamp(1.55rem, 3.8vw, 2.4rem); }
}

@media (max-width: 480px) {
  .nav { min-height: 68px; }
  .brand-name { font-size: .98rem; }
  .hero { min-height: auto; padding-bottom: 54px; }
  h1 { font-size: 3.25rem; }
  .sun { width: 310px; }
  .phone-wrap { min-height: 500px; }
  .phone-screen { min-height: 450px; }
  .footer-row { flex-direction: column; }
  .hope-card { min-height: 185px; padding: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .explore-body .brand-name { display: none; }
  .reel-nav { height: 64px; padding: 0 14px; }
  .reel-controls { gap: 7px; }
  .reel-counter, .reel-shuffle, .reel-language select { padding: 8px 10px; font-size: .66rem; }
  .feed-status { display: none; }
  .sound-start { bottom: 16px; padding: 12px 17px; font-size: .78rem; }
  .embed-note { left: 14px; right: auto; bottom: 8px; font-size: .58rem; }
  .reel-slide { height: 100svh; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: minmax(0, 68%) minmax(0, 32%); gap: 0; padding: 58px 12px 22px; align-items: stretch; }
  .reel-stage { height: 100%; min-height: 0; }
  .reel-frame { height: 100%; max-width: 100%; border-radius: 22px 22px 0 0; box-shadow: none; }
  .story-panel { position: relative; z-index: 3; max-width: none; padding: 18px 18px 25px; border-radius: 0 0 22px 22px; background: #1b1914; border: 1px solid rgba(255,255,255,.15); border-top: 0; overflow: hidden; }
  .story-meta { font-size: .6rem; }
  .story-panel h2 { margin: 9px 0 4px; font-size: .9rem; }
  .story-panel p { margin: 0 0 7px; font-family: inherit; font-size: clamp(.8rem, 3.6vw, 1rem); line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .story-read { margin: 7px 0 0; font-size: .74rem; }
  .story-lesson { max-width: calc(100% - 38px); margin: 0; padding: 5px 9px; font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .swipe-cue { position: absolute; right: 14px; bottom: 12px; font-size: 0; }
  .swipe-cue > span:last-child { font-size: .75rem; width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
