/* Letsa — the congregation experience powered by GraceNotes.
   Family resemblance with getgracenotes.com (warm gold, DM Sans, editorial
   restraint), but its own voice: the page moves from night (the service) to
   dawn (the week), the serif is Fraunces, and the phone leads every section.
   Mobile first. No build step. */

:root {
    --night: #0F0C09;
    --night-2: #17120D;
    --ember: #221A12;
    --line-night: #3A2E22;
    --on-night: #F5EDE0;
    --on-night-2: #CFC2AD;
    --on-night-3: #AE9F87;

    --dawn: #F8F0E3;
    --dawn-2: #F1E2C8;
    --sand: #E9D6B6;
    --ink: #1D1711;
    --ink-2: #463B30;
    --ink-3: #66594A;
    --line: #E2D3BA;

    --gold: #E2B363;
    --gold-soft: #F0D39A;
    --gold-deep: #85561A;

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1160px;
    --gutter: 20px;
    --section: clamp(4.5rem, 10vw, 8.5rem);
    --nav-h: 64px;
    --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--on-night);
    background: var(--night);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--gold-deep); }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.skip-link {
    position: absolute; left: var(--gutter); top: -100px; z-index: 200;
    background: var(--gold); color: var(--night);
    padding: .75rem 1rem; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.light { background: var(--dawn); color: var(--ink); }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-optical-sizing: auto;
    line-height: 1.06;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); }
@media (min-width: 960px) { .hero h1 { font-size: clamp(3.6rem, 5vw, 4.6rem); } }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.light h2 em { color: var(--gold-deep); }
p { text-wrap: pretty; }

.kicker {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.light .kicker { color: var(--gold-deep); }
.lede { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.6; color: var(--on-night-2); max-width: 36rem; }
.light .lede { color: var(--ink-2); }
.note { font-size: .875rem; color: var(--on-night-3); }
.light .note { color: var(--ink-3); }

/* ── Buttons & tags ───────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 52px; padding: .85rem 1.55rem; border-radius: 999px;
    font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--line { border-color: rgba(245,237,224,.55); color: var(--on-night); background: transparent; }
.btn--line:hover { border-color: var(--on-night); background: rgba(245,237,224,.06); }
.light .btn--ink { background: var(--ink); color: var(--dawn); }
.light .btn--ink:hover { background: var(--gold-deep); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.tag {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
    padding: .28rem .75rem; border-radius: 999px; white-space: nowrap;
}
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tag--now { background: rgba(226,179,99,.16); color: var(--gold-soft); }
.tag--now::before { background: var(--gold); }
.tag--soon { border: 1.5px dashed var(--on-night-3); color: var(--on-night-2); }
.tag--soon::before { border: 1.5px solid var(--on-night-2); width: 6px; height: 6px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,12,9,.82);
    -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
    border-bottom: 1px solid rgba(58,46,34,.7);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--nav-h); }
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; flex: none; }
/* Letsa wordmark: outlined SVG (no font dependency). "by GraceNotes" sits on
   its baseline, quieter and smaller, so Letsa always leads. */
.brand__word { display: block; height: 28px; width: auto; }
.brand__by { position: relative; top: -1px; }
.brand__by { font-size: .8125rem; color: var(--on-night-3); display: none; }
@media (min-width: 560px) { .brand__by { display: inline; } }
.nav__right { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; font-size: .875rem; font-weight: 600; letter-spacing: .06em; }
.lang a { text-decoration: none; color: var(--on-night-3); padding: .55rem .4rem; min-width: 40px; text-align: center; border-radius: 8px; }
.lang a:hover { color: var(--on-night); }
.lang a[aria-current="page"] { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { min-height: 42px; padding: .5rem 1rem; font-size: .9375rem; }
.cta-short { display: none; }
@media (max-width: 400px) {
    .nav .cta-full { display: none; }
    .nav .cta-short { display: inline; }
    .nav .btn { padding-inline: .9rem; }
}
/* smallest phones: the wordmark, language switch and button share 280px */
@media (max-width: 360px) {
    .nav__inner { gap: .5rem; }
    .nav__right { gap: .35rem; }
    .nav .brand__word { height: 23px; }
    .lang a { min-width: 32px; padding-inline: .25rem; }
    .nav .btn { padding-inline: .75rem; font-size: .875rem; }
}

/* ── Phone frame (real product screens) ──────────────────────────────── */

.phone {
    position: relative;
    border-radius: 42px;
    padding: 9px;
    background: #070504;
    box-shadow: 0 0 0 1px rgba(255,236,200,.09) inset, 0 50px 90px -40px rgba(0,0,0,.9), 0 20px 40px -20px rgba(0,0,0,.6);
}
.phone > img, .phone__screen {
    width: 100%;
    aspect-ratio: 600 / 1298;
    object-fit: cover;
    object-position: top;
    border-radius: 34px;
    background: #111;
}
.light .phone { box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset, 0 40px 80px -36px rgba(29,23,17,.6), 0 16px 32px -18px rgba(29,23,17,.4); }

/* ACT is not built: an outline, never a product screen. */
.phone--concept { background: transparent; box-shadow: none; border: 1.5px dashed #6E5F4A; }
.phone--concept .phone__screen, .layer--concept .phone__screen {
    background: transparent; display: flex; flex-direction: column; justify-content: center;
    gap: .6rem; padding: 1.4rem 1.1rem;
}
.concept-title { font-family: var(--serif); font-size: 1.25rem; color: var(--on-night); margin-bottom: .3rem; }
.concept-item { border: 1px dashed #6E5F4A; border-radius: 12px; padding: .65rem .8rem; font-size: .9375rem; color: var(--on-night-2); }
.concept-note { margin-top: .3rem; font-size: .8125rem; color: var(--on-night-3); }

/* ── 1 · Hero ─────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(120% 70% at 70% 100%, rgba(120,78,30,.35), rgba(15,12,9,0) 60%),
        var(--night);
}
.hero__grid { display: grid; gap: clamp(3rem, 7vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero .lede { margin-bottom: 2.1rem; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__glow {
    position: absolute; left: 50%; top: 55%;
    width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(226,179,99,.26), rgba(226,179,99,0));
    pointer-events: none;
}
.hero__stage { position: relative; height: clamp(430px, 118vw, 600px); }
.hero__stage .phone { position: absolute; }
.hero__back { width: 50%; left: 2%; top: 7%; transform: rotate(-7deg); opacity: .9; }
.hero__front { width: 58%; left: 30%; top: 0; }
.hero__card {
    position: absolute; width: 30%; right: -2%; bottom: 2%;
    border-radius: 14px; overflow: hidden; transform: rotate(6deg);
    box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,236,200,.1);
}
.hero__caption { margin-top: 1.2rem; text-align: center; }
@media (min-width: 960px) {
    .hero__grid { grid-template-columns: 1.15fr .85fr; }
    .hero__stage { height: 600px; }
}

/* ── 2 · Journey ──────────────────────────────────────────────────────── */

.journey-section { background: linear-gradient(var(--night), var(--night-2)); }
.journey-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.journey-head .lede { margin-top: 1.1rem; }
.journey { position: relative; }
.journey__stage { display: none; }
.steps { list-style: none; padding: 0; display: grid; gap: clamp(3.5rem, 9vw, 5rem); }
.step { display: grid; gap: 1rem; }
.step__when { font-size: .875rem; color: var(--on-night-3); letter-spacing: .02em; }
.step__word { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; font-style: italic; color: var(--gold); }
.step__word--soon { color: var(--on-night-2); }
.step p { color: var(--on-night-2); max-width: 30rem; }
.step .tag { justify-self: start; }
.step__phone { width: min(250px, 70vw); margin-top: .75rem; }
.journey__rail { display: none; }

/* Desktop with JS: one sticky phone changes as each moment is read. */
@media (min-width: 900px) {
    .js .journey { display: grid; grid-template-columns: 380px 1fr; gap: clamp(3rem, 7vw, 6rem); }
    .js .journey__stage {
        display: block; position: sticky; top: calc(var(--nav-h) + 6vh);
        height: min(78vh, 700px); align-self: start;
    }
    .js .journey__stage .phone { width: min(300px, calc((78vh - 20px) * 600 / 1298)); margin-inline: auto; }
    .js .layer { position: absolute; inset: 9px; border-radius: 34px; overflow: hidden; opacity: 0; }
    .js .layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
    .js .layer .phone__screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
    .js .layer--concept { border: 1.5px dashed #6E5F4A; background: var(--night-2); }
    .js .layer.is-active { opacity: 1; }
    .js .journey__stage .phone--frame > .phone__screen { visibility: hidden; }
    .js .step__phone { display: none; }
    .js .steps { gap: 0; }
    .js .step { min-height: 62vh; align-content: center; padding-left: 2rem; border-left: 1.5px solid var(--line-night); position: relative; }
    .js .step__word { transition: color .5s var(--ease); }
    .js .step:not(.is-active) .step__word { color: var(--on-night-3); }
    .js .step::before {
        content: ''; position: absolute; left: -6px; top: 50%;
        width: 10px; height: 10px; border-radius: 50%;
        background: var(--night-2); border: 1.5px solid var(--on-night-3);
        transform: translateY(-50%); transition: background-color .4s, border-color .4s;
    }
    .js .step.is-active::before { background: var(--gold); border-color: var(--gold); }
    .js .step--soon.is-active::before { background: transparent; border-style: dashed; border-color: var(--on-night-2); }
}

/* ── 3 · Experience (try it) ──────────────────────────────────────────── */

.experience { background: linear-gradient(var(--night-2), var(--ember)); }
.experience__grid { display: grid; gap: 2.5rem; align-items: start; grid-template-areas: 'head' 'phone' 'moments'; }
.experience__head { grid-area: head; }
.tryphone { grid-area: phone; }
.moments { grid-area: moments; }
.experience__head .lede { margin-top: 1.1rem; }
.tryphone { width: min(320px, 82vw); justify-self: center; }
.tryphone__scroll {
    width: 100%; aspect-ratio: 600 / 1298; border-radius: 34px;
    overflow-y: auto; overscroll-behavior: contain; background: #0f0d0b;
    scrollbar-width: none;
}
.tryphone__scroll::-webkit-scrollbar { display: none; }
.tryphone__scroll img { width: 100%; height: auto; border-radius: 0; aspect-ratio: auto; }
.tryphone__hint { margin-top: 1rem; text-align: center; }
/* On touch screens the page scroll must never get trapped inside the phone:
   the moments below drive it instead. Without JS it stays freely scrollable. */
@media (pointer: coarse) { .js .tryphone__scroll { overflow-y: hidden; } }
.moments { list-style: none; padding: 0; display: grid; gap: .25rem; counter-reset: m; }
.moment {
    position: relative;
    border-top: 1px solid var(--line-night);
    padding: 1.25rem 0 1.25rem 1.15rem;
    display: grid; gap: .4rem;
    border-left: 2px solid transparent;
    transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.moment:last-child { border-bottom: 1px solid var(--line-night); }
.moment h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); transition: color .35s var(--ease); }
.moment p { color: var(--on-night-2); font-size: 1rem; }
.moment__go {
    justify-self: start; margin-top: .15rem;
    background: none; border: 0; padding: .35rem 0; cursor: pointer;
    font: 600 .875rem/1.2 var(--sans); letter-spacing: .04em; color: var(--gold);
}
/* the whole moment is clickable; the button's focus ring stays visible */
.moment__go::after { content: ''; position: absolute; inset: 0; }
.moment:hover { background: rgba(226,179,99,.05); }
.moment:hover h3, .moment.is-current h3 { color: var(--gold-soft); }
.moment.is-current { border-left-color: var(--gold); background: rgba(226,179,99,.07); }
.moment.is-current .moment__go { color: var(--gold-soft); }
@media (min-width: 900px) {
    .experience__grid { grid-template-columns: 380px 1fr; grid-template-areas: 'phone head' 'phone moments'; column-gap: clamp(3rem, 6vw, 5rem); row-gap: 1rem; }
    .tryphone { grid-row: 1 / span 2; }
    .tryphone { position: sticky; top: calc(var(--nav-h) + 4vh); }
}

/* ── 4 · Your ministry (sunrise) ──────────────────────────────────────── */

.sunrise { height: clamp(90px, 14vw, 160px); background: linear-gradient(var(--ember), #6E4C2A 45%, var(--dawn-2) 85%, var(--dawn)); }
.ministry { background: var(--dawn); }
.ministry__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.ministry__head .lede { margin-top: 1.1rem; }
.pieces { list-style: none; padding: 0; display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.piece { display: grid; gap: .9rem; }
.piece__img {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 60px -34px rgba(29,23,17,.65), 0 0 0 1px rgba(29,23,17,.08);
}
.piece:nth-child(odd) .piece__img { transform: rotate(-1.2deg); }
.piece:nth-child(even) .piece__img { transform: rotate(1deg); }
.piece h3 { font-size: 1.3rem; }
.piece p { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 720px) { .pieces { grid-template-columns: 1fr 1fr; align-items: start; column-gap: clamp(2rem, 5vw, 4rem); } }
.ministry__note { margin-top: 2.25rem; }

/* ── 5 · Powered by GraceNotes ────────────────────────────────────────── */

.powered { background: var(--dawn-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.powered__grid { display: grid; gap: 2rem; align-items: center; }
.powered__line { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.25; max-width: 26ch; }
.powered__line strong { font-weight: 500; }
.powered__ask { border-top: 1px solid rgba(29,23,17,.18); padding-top: 1.5rem; display: grid; gap: .5rem; }
.powered__ask b { font-size: 1.05rem; }
.powered__ask p { color: var(--ink-2); }
.powered__ask .btn { justify-self: start; margin-top: .6rem; }
@media (min-width: 900px) {
    .powered__grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
    .powered__ask { border-top: 0; border-left: 1px solid rgba(29,23,17,.18); padding: 0 0 0 3rem; }
}

/* ── Final ────────────────────────────────────────────────────────────── */

.final {
    text-align: center;
    background:
        radial-gradient(90% 80% at 50% 110%, rgba(226,179,99,.55), rgba(226,179,99,0) 70%),
        linear-gradient(var(--dawn-2), var(--sand));
    color: var(--ink);
    padding-block: clamp(5rem, 11vw, 9rem);
}
.final__thread { color: var(--gold-deep); width: 64px; margin: 0 auto 1.4rem; }
.final__thread svg { display: block; width: 64px; height: 64px; }
.final h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
.final h2 em { color: var(--gold-deep); }
.final p { margin: 1.25rem auto 2.2rem; color: var(--ink-2); font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 30rem; }
.final .btn-row { justify-content: center; }
.final .btn--ink { background: var(--ink); color: var(--dawn); }
.final .btn--ink:hover { background: var(--gold-deep); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer { background: var(--night); color: var(--on-night-3); padding-block: 2.5rem; font-size: .9375rem; }
.footer__inner { display: grid; gap: 1rem; }
.footer .brand__word--foot { height: 24px; }
.footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.footer a { text-decoration: none; color: var(--on-night-2); display: inline-block; padding-block: .35rem; }
.footer a:hover { color: var(--on-night); text-decoration: underline; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2.5rem; } }

/* ════════════════════════════════════════════════════════════════════════
   MOTION — gated by the user's preference AND by html.motion, which
   letsa.js adds only once it has run. No JS or reduced motion: nothing here
   applies, nothing is hidden. Opacity and transform only.
   ════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    /* Hero: words first, then the phones settle into your hands. */
    .hero__copy > * { animation: rise .75s var(--ease) both; }
    .hero__copy > :nth-child(2) { animation-delay: .08s; }
    .hero__copy > :nth-child(3) { animation-delay: .2s; }
    .hero__copy > :nth-child(4) { animation-delay: .3s; }
    .hero__front { animation: rise 1s var(--ease) .3s both; }
    .hero__back { animation: back-in 1.1s var(--ease) .45s both; }
    .hero__card { animation: card-in 1s var(--ease) .75s both; }
    .hero__caption { animation: rise .7s var(--ease) 1s both; }
    .hero__glow { animation: breathe 9s ease-in-out 1.2s infinite alternate; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes back-in { from { opacity: 0; transform: rotate(-2deg) translate(18px, 16px); } to { opacity: .9; transform: rotate(-7deg); } }
    @keyframes card-in { from { opacity: 0; transform: rotate(1deg) translate(-12px, 18px); } to { opacity: 1; transform: rotate(6deg); } }
    @keyframes breathe { from { opacity: .75; transform: translate(-50%, -50%) scale(1); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }

    /* Journey (desktop, JS): the phone crossfades from one moment to the next. */
    .js .layer { transition: opacity .6s var(--ease), transform .6s var(--ease); transform: translateY(10px) scale(.985); }
    .js .layer.is-active { transform: none; }

    /* Soft arrival for everything else that is marked. */
    .motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .motion [data-reveal].is-in { opacity: 1; transform: none; }
    .motion .pieces [data-reveal]:nth-child(2) { transition-delay: .1s; }
    .motion .pieces [data-reveal]:nth-child(3) { transition-delay: .2s; }
    .motion .pieces [data-reveal]:nth-child(4) { transition-delay: .3s; }

    /* The one place the Thread moves: it draws itself in above
       "Carry the message with you" — the message, carried on. */
    .motion .final__thread path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.45,.05,.25,1) .25s; }
    .motion .final__thread.is-in path { stroke-dashoffset: 0; }
}
