/* shavut.hilaitach.com: one stylesheet for every page */
:root {
  --cream: #F4EEE2;
  --paper: #FBF8F1;
  --sand: #E9DFCB;
  --forest: #24503F;
  --forest-hover: #2E6450;
  --teal: #237A75;
  --teal-soft: #DCEDEA;
  --sun: #E2B65B;
  --ink: #1E2A26;
  --ink-soft: #56645E;
  --line: rgba(30, 42, 38, .14);
  --serif: "Frank Ruhl Libre", "David", serif;
  --sans: "Assistant", "Segoe UI", Arial, sans-serif;
  --hand: "Playpen Sans Hebrew", "Assistant", cursive;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.75; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 500; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(42rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--forest); color: var(--paper); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.2rem; padding: .75rem 1.7rem;
  border-radius: 999px; border: 0; background: var(--forest); color: var(--paper);
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s ease;
}
.btn:hover { background: var(--forest-hover); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun:hover { background: #EBC677; }
.btn.ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn.ghost:hover { background: rgba(36, 80, 63, .07); }
.more { font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.more:hover { color: var(--forest); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }

/* the hand-drawn route home: the site's one recurring mark */
.route { display: block; width: 100%; height: 2.6rem; color: var(--teal); }
.route path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244, 238, 226, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.8rem; min-height: 4.4rem; }
.mark { text-decoration: none; display: flex; align-items: baseline; gap: .6rem; }
.mark b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--forest); }
.mark span { font-family: var(--hand); font-size: .9rem; color: var(--teal); }
.nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding-block: .3rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }
.top .btn { min-height: 2.6rem; padding: .45rem 1.2rem; font-size: .98rem; }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; inset-inline: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem; display: grid; }
.menu nav a { text-decoration: none; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.menu nav .btn { margin-top: 1rem; border-bottom: 0; }
@media (max-width: 980px) { .nav, .top > .wrap > .btn { display: none; } .menu { display: block; } }

/* ---------- home hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.wordmark { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 15vw, 10rem); line-height: .9; color: var(--forest); letter-spacing: -.02em; margin: 0; }
.tagline { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--teal); margin: .9rem 0 .4rem; }
.who-for { font-weight: 600; color: var(--ink-soft); margin-bottom: 1.8rem; }
.hero .intro p { font-size: 1.2rem; max-width: 34rem; }
.hero .actions { margin-top: 2rem; }
.media { position: relative; margin: 0; border-radius: 22px 22px 22px 140px; overflow: hidden; background: var(--sand); }
.media img, .media video { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.tag { position: absolute; top: .9rem; inset-inline-end: .9rem; font-size: .8rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: rgba(30, 42, 38, .6); color: var(--paper); }
.media .slot { position: absolute; inset-inline: 1rem; bottom: 1rem; font-family: var(--hand); font-size: 1rem; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .media { order: -1; border-radius: 18px 18px 18px 90px; } .media img { aspect-ratio: 4 / 3; } }

/* ---------- home: what happens / a place for it ---------- */
.happens { background: var(--paper); }
.happens .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.happens figure { margin: 0; position: relative; }
.happens figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.happens h2 { margin-bottom: 1.2rem; }
.kinds { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--forest); margin-bottom: 1.3rem; }
.happens p { max-width: 36rem; }
@media (max-width: 860px) { .happens .wrap { grid-template-columns: 1fr; } }

.place { text-align: center; }
.place h2 { margin-bottom: 1.4rem; }
.place p { font-size: 1.22rem; }
.place .closing { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--forest); margin: 2.2rem 0; }
.place .actions { justify-content: center; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 5rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 300; color: var(--forest); }
.page-head .lead { margin-top: 1rem; max-width: 40rem; }
.page-head .route { margin-top: 2rem; max-width: 22rem; }

/* our story: one long read */
.essay { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.essay h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 3rem 0 1rem; color: var(--forest); }
.essay h2:first-child { margin-top: 0; }
.essay p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.85; }
.essay .opening { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.45; color: var(--forest); }
.essay .strong { font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 1.8rem); color: var(--teal); }
.note {
  font-family: var(--hand); font-size: 1.35rem; line-height: 1.7; color: var(--forest);
  background: var(--paper); padding: 1.4rem 1.6rem; border-radius: 4px; margin: 2rem 0;
  box-shadow: 0 14px 30px -22px rgba(30, 42, 38, .5); transform: rotate(-.6deg);
}
.essay figure { margin: 2.6rem 0; position: relative; }
.essay figure img { width: 100%; border-radius: 16px; }
.essay .actions { margin-top: 3rem; }

/* journey: the timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 1rem 0 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 0; border-inline-start: 2px dashed var(--teal); opacity: .6; }
.stop { position: relative; width: 50%; padding-inline-end: 2.6rem; margin-bottom: 2.6rem; }
.stop:nth-child(even) { margin-inline-start: 50%; padding-inline: 2.6rem 0; }
.stop::before { content: ""; position: absolute; top: 1.6rem; inset-inline-end: -.55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.stop:nth-child(even)::before { inset-inline: -.55rem auto; }
.card { background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -30px rgba(30, 42, 38, .55); }
.card .ph { aspect-ratio: 16 / 10; background: var(--sand); display: grid; place-items: center; color: var(--ink-soft); font-family: var(--hand); font-size: 1rem; text-align: center; padding: 1rem; }
.card .body { padding: 1.3rem 1.5rem 1.5rem; }
.when { display: inline-block; font-weight: 700; font-size: .92rem; color: var(--teal); margin-bottom: .3rem; }
.when.unset { color: var(--ink-soft); font-weight: 600; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }
@media (max-width: 760px) {
  .timeline::before { inset-inline-start: .55rem; }
  .stop, .stop:nth-child(even) { width: auto; margin-inline-start: 0; padding-inline: 2.4rem 0; }
  .stop::before, .stop:nth-child(even)::before { inset-inline: 0 auto; }
}

.build { background: var(--paper); }
.build h2 { margin-bottom: 2.4rem; }
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.way { padding: 1.8rem 1.9rem; border-radius: 18px; background: var(--cream); }
.way h3 { color: var(--forest); margin-bottom: .7rem; }
.way .eg { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-family: var(--hand); font-size: 1.05rem; color: var(--teal); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* team */
.founder { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; padding-block: 1rem clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.founder .role { font-family: var(--hand); color: var(--teal); font-size: 1.15rem; margin-bottom: .3rem; }
.founder h2 { margin-bottom: 1rem; }
.pending { color: var(--ink-soft); font-style: italic; }
.leads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.lead-card .face { aspect-ratio: 1; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 3.2rem; font-weight: 300; color: var(--teal); width: 9rem; margin-bottom: 1rem; }
.lead-card h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.lead-card .line { font-family: var(--hand); color: var(--forest); font-size: 1.05rem; line-height: 1.55; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 14rem; } .leads { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .leads { grid-template-columns: 1fr; } }

/* join + support */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; border-radius: 18px 18px 18px 120px; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2rem 0 .8rem; color: var(--forest); }
.box { margin-top: 2rem; padding: 1.8rem 1.9rem; border-radius: 18px; background: var(--paper); }
.box .btn { margin-top: 1rem; }
.box small { display: block; margin-top: .8rem; color: var(--ink-soft); }
.helps { display: grid; gap: 1rem; margin: 1.2rem 0 0; }
.helps div { padding: 1.3rem 1.5rem; border-radius: 16px; background: var(--paper); }
.helps dt { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); margin-bottom: .3rem; }
.helps dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split figure { order: -1; } }

/* ---------- footer + end of page ---------- */
.invite { background: var(--forest); color: var(--paper); text-align: center; }
.invite h2 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.invite p { color: #CFE2DA; margin: 1rem auto 2rem; max-width: 32rem; }
.foot { padding: 2.4rem 0 3rem; color: var(--ink-soft); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.foot b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--forest); }
.foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--teal); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- parts that appear once content is added through the site's management (shavut-cms) ---------- */
/* install.sh appends this file to shavut/site/css/site.css; nothing here touches what the preview already shows */

.mark-logo { height: 2.4rem; width: auto; align-self: center; }
@media (max-width: 520px) { .mark-logo { height: 1.9rem; } .mark:has(.mark-logo) span { display: none; } }

/* the opening video */
.media.video { border-radius: 22px; background: var(--ink); }
.media.video video { aspect-ratio: auto; object-fit: contain; max-height: 82vh; background: var(--ink); }
.media .play { display: block; position: relative; color: var(--paper); text-decoration: none; }
.media .play b { position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; border-radius: 50%; background: var(--sun); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); transition: transform .2s ease; }
.media .play b::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: .85rem 0 .85rem 1.4rem; border-color: transparent transparent transparent var(--ink); }
.media .play:hover b { transform: scale(1.06); }
.media .play span { position: absolute; inset-inline: 1rem; bottom: 1rem; font-family: var(--hand); font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.media iframe.player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* journey: real photos, the original invitation, the gallery */
.card .ph-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.see-invite { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--teal); }
.gallery h2 { margin-bottom: 1rem; }
.tiles { list-style: none; margin: 2rem 0 0; padding: 0; columns: 3 15rem; column-gap: 1rem; }
.tiles li { break-inside: avoid; margin-bottom: 1rem; }
.tiles a { display: block; border-radius: 14px; overflow: hidden; background: var(--sand); }
.tiles img { width: 100%; transition: transform .35s ease; }
.tiles a:hover img { transform: scale(1.03); }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(20, 28, 25, .9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; }
.lightbox button { position: fixed; border: 0; border-radius: 999px; background: rgba(251, 248, 241, .92); color: var(--ink); font: 600 1.6rem/1 var(--sans); width: 2.8rem; height: 2.8rem; cursor: pointer; }
.lightbox .lb-close { top: 1rem; inset-inline-end: 1rem; }
.lightbox .lb-prev { top: 50%; inset-inline-start: 1rem; }
.lightbox .lb-next { top: 50%; inset-inline-end: 1rem; }

/* team: photos and a paragraph for each leader */
.lead-card img.face { width: 9rem; height: 9rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin-bottom: 1rem; }
.lead-card .bio { margin-top: .7rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

/* support: contact ways and the form */
.box .contact-ways { margin-top: 1rem; }
.box .contact-ways .btn { margin-top: 0; }
.contact-form { display: grid; gap: .9rem; margin-top: 1.6rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: .2rem; }
.contact-form .hp { position: absolute; inset-inline-start: -100vw; width: 1px; height: 1px; overflow: hidden; }
.message-page { padding-bottom: clamp(3.5rem, 8vw, 6rem); }

/* footer: the extra line and social links */
.foot .legal { font-size: .88rem; }
.foot .social { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; width: 100%; }
.foot .social a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* the join form (fields she builds) */
#join-form { scroll-margin-top: 6rem; }
.contact-form select { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); }
.contact-form label.check { display: flex; grid-template-columns: none; gap: .6rem; align-items: flex-start; font-weight: 600; }
.contact-form label.check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--forest); }
.contact-form .opt { font-weight: 400; color: var(--ink-soft); font-size: .9em; }
.contact-form small { color: var(--ink-soft); margin-top: 0; }
.message-page .btn { margin-top: .4rem; }

/* ---------- "the way home" style (site.style = journey; classic pages never carry these classes) ----------
   The page goes from a field map in reserve-duty tones (top) to the warm colours of home (bottom) as you scroll;
   a dashed route draws itself down the right side with a stop at each heading, and ends at the lit window in the footer.
   --p (0..1, how far down the page) and --home are set on <html> by js/site.js. */
html:has(> body.style-journey) { background: #F4EEE2; }
body.style-journey { background: transparent; }
.trek { display: none; }
.style-journey .trek { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #DAD5BF; }
.style-journey .trek::before { content: ""; position: absolute; inset: -12% 0 0; background: url(../img/contours.svg) center top / cover no-repeat; opacity: calc(.5 * (1 - var(--p, 0))); transform: translateY(calc(var(--p, 0) * -8vh)); }
.style-journey .trek-home { position: absolute; inset: 0; opacity: var(--p, 0); background: radial-gradient(130% 60% at 50% 108%, rgba(240, 186, 110, .5), rgba(240, 186, 110, 0) 70%), linear-gradient(180deg, #F4EEE2 0%, #F6EADA 100%); }
.trek-way { display: none; }
.style-journey .trek-way { display: block; position: fixed; inset: 0; z-index: 25; pointer-events: none; }   /* under the sticky header (30) */
.style-journey .trek-route { position: absolute; top: 5.2rem; height: calc(100% - 6.4rem); inset-inline-start: max(.35rem, calc((100vw - 72rem) / 4 - 1.3rem)); width: 2.6rem; overflow: visible; clip-path: inset(0 0 calc((1 - var(--r, .06)) * 100%) 0); }
.style-journey .trek-route path { fill: none; stroke: #2E6450; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.style-journey .trek-dot { position: absolute; left: var(--dx, -99px); top: var(--dy, -99px); width: .95rem; height: .95rem; margin: -.475rem 0 0 -.475rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(226, 182, 91, .28); }
.style-journey .trek-way .pin { position: absolute; width: .62rem; height: .62rem; margin: -.31rem 0 0 -.31rem; border-radius: 50%; border: 2px solid #2E6450; background: #F4EEE2; transition: background-color .4s ease; }
.style-journey .trek-way .pin.passed { background: #2E6450; }
.style-journey .top { background: rgba(244, 238, 226, .97); }
/* wherever there is text, a clean page under it (the classic site's cream); the map and the route only show around it */
.style-journey main > .wrap, .style-journey main > .narrow,
.style-journey main > section:not(.happens):not(.build):not(.invite) > .wrap,
.style-journey main > section:not(.happens):not(.build):not(.invite) > .narrow,
.style-journey .foot > .wrap {
  background: var(--cream); border-radius: 24px; padding-inline: clamp(1rem, 3.2vw, 2.6rem);
  box-shadow: 0 24px 60px -46px rgba(30, 42, 38, .6);
}
.style-journey main > .narrow, .style-journey .place > .narrow { width: min(47rem, 100% - 2 * var(--gutter)); }
.style-journey main > .wrap, .style-journey main > .narrow { margin-block: clamp(1.2rem, 3.5vw, 2.4rem); }
.style-journey .hero { padding-block: clamp(1.2rem, 3.5vw, 2.4rem); }
.style-journey .place > .narrow { padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.style-journey .foot > .wrap { padding-block: 1.6rem; }
.style-journey main > section.gallery > .wrap { padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.style-journey .hero .wordmark { animation: shavut-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes shavut-settle { from { opacity: 0; letter-spacing: .3em; filter: blur(6px); } }
.style-journey.js-on .rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.style-journey.js-on .rise.in { opacity: 1; transform: none; }
.style-journey .timeline::before { transform-origin: top; transform: scaleY(var(--tl, 1)); }
/* the beach: rises from the bottom over the last part of the page (--sea, 0..1, set by js/site.js); the page ends with room
   below the footer to stand on the sand and see the sea */
.trek-sea { display: none; }
.style-journey .trek-sea { display: block; position: absolute; inset-inline: 0; bottom: 0; height: 42vh; transform: translateY(calc((1 - var(--sea, 0)) * 105%)); }
.style-journey .trek-sea svg { display: block; width: 100%; height: 100%; }
.style-journey .trek-sea .wet { fill: #DCC69A; }
.style-journey .trek-sea .foam { fill: none; stroke: #FBF8F1; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 22 9; animation: shv-foam 10s linear infinite; }
.style-journey .trek-sea .waves path { fill: none; stroke: #F4FAF8; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 90 24 160 30; animation: shv-swell 7s ease-in-out infinite; }
.style-journey .trek-sea .waves > g:nth-child(1) { opacity: .75; } .style-journey .trek-sea .waves > g:nth-child(2) { opacity: .55; }
.style-journey .trek-sea .waves > g:nth-child(3) { opacity: .4; } .style-journey .trek-sea .waves > g:nth-child(4) { opacity: .28; }
.style-journey .trek-sea .waves > g:nth-child(2) path { animation-delay: -1.7s; } .style-journey .trek-sea .waves > g:nth-child(3) path { animation-delay: -3.4s; }
.style-journey .trek-sea .waves > g:nth-child(4) path { animation-delay: -5.1s; }
.style-journey .trek-sea:not(.on) * { animation-play-state: paused; }
@keyframes shv-swell { 0%, 100% { transform: translateY(6px); stroke-dashoffset: 0; } 50% { transform: translateY(-6px); stroke-dashoffset: -40; } }
@keyframes shv-foam { to { stroke-dashoffset: -310; } }
.style-journey .foot { padding-bottom: 30vh; }
.home-mark { display: block; width: 3rem; height: auto; margin-bottom: .4rem; }
.home-mark path { fill: none; stroke: var(--forest); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.home-mark .window { fill: #E9C46A; opacity: calc(.25 + .75 * var(--home, 0)); filter: drop-shadow(0 0 calc(7px * var(--home, 0)) rgba(233, 196, 106, .95)); }
/* until the side margin is wide enough, the route runs thin along the edge, outside the clean pages */
@media (max-width: 1240px) { .style-journey .trek-route { width: 1.1rem; inset-inline-start: .15rem; } }
@media (max-width: 760px) {
  .style-journey .trek-route { width: 1.1rem; inset-inline-start: .1rem; }
  .style-journey .trek-dot { width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; }
  .style-journey .trek-way .pin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .style-journey .hero .wordmark { animation: none; }
  .style-journey.js-on .rise { opacity: 1; transform: none; transition: none; }
  .style-journey .trek::before { transform: none; }
  .style-journey .trek-sea .foam, .style-journey .trek-sea .waves path { animation: none; }
}
