/* The Northwood Shul — shared styles. Tokens come from DIRECTION.md; the ground, glass, reveal vocabulary, hint style,
   theme and phone bar follow the godly-design standards (flowing colour ground, never near white; one reveal style per
   element type; one hint style; two headline sizes; two button sizes). */
@font-face { font-family: 'Marcellus'; src: url(/fonts/Marcellus-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(/fonts/AlegreyaSans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(/fonts/AlegreyaSans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(/fonts/AlegreyaSans-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --ink: #16241F; --ink-2: #3E4F49; --cypress: #2F5048; --sage: #9DB4AC; --sage-d: #6F8C83; --line: rgba(22, 36, 31, .13);
  --candle: #E3A33B; --candle-hi: #EEB55A; --candle-ink: #87560C;
  --bg-top: #DEE8E4; --bg-a: #E5ECEF; --bg-b: #D5E3E0; --bg-c: #E2EAE4; --bg-d: #E7E7E0;
  --glass: rgba(255, 255, 255, .52); --glass-2: rgba(255, 255, 255, .7); --glass-ring: rgba(255, 255, 255, .75);
  --glass-shadow: 0 24px 60px -36px rgba(22, 36, 31, .38);
  --head-bg: rgba(226, 234, 231, .76);
  --field: rgba(255, 255, 255, .78);
  --foot: #14211D; --foot-text: #C9D7D2; --foot-dim: #9DB0A9; --foot-link: #F4F6F2;
  --night: #101B19;
  --display: 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --text: 'Alegreya Sans', 'Gill Sans', 'Segoe UI', system-ui, sans-serif;
  --s-1: .844rem; --s0: 1.125rem; --s1: 1.5rem; --s2: 2rem; --s3: 2.667rem; --s4: 3.556rem;
  --h1-hero: clamp(2.7rem, 5.8vw, 5rem); --h1-page: clamp(2.3rem, 4.6vw, 3.9rem);
  --gut: clamp(16px, 4vw, 40px); --max: 1180px; --narrow: 700px;
  --out: cubic-bezier(.23, 1, .32, 1); --io: cubic-bezier(.65, 0, .35, 1);
  --r-s: 4px; --r-m: 10px;
}
/* ---------- tokens: dark (auto, or chosen) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #E8EFEB; --ink-2: #AEC0BA; --cypress: #A8CBBF; --sage: #7F9D93; --sage-d: #9DB4AC; --line: rgba(232, 239, 235, .13);
    --candle-ink: #F0BC64;
    --bg-top: #0F1B18; --bg-a: #15221E; --bg-b: #111D1C; --bg-c: #16231F; --bg-d: #131E1A;
    --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09); --glass-ring: rgba(255, 255, 255, .1);
    --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
    --head-bg: rgba(15, 26, 23, .72); --field: rgba(255, 255, 255, .07);
    --foot: #0A1311; --foot-text: #B9C9C3; --foot-dim: #8FA49C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8EFEB; --ink-2: #AEC0BA; --cypress: #A8CBBF; --sage: #7F9D93; --sage-d: #9DB4AC; --line: rgba(232, 239, 235, .13);
  --candle-ink: #F0BC64;
  --bg-top: #0F1B18; --bg-a: #15221E; --bg-b: #111D1C; --bg-c: #16231F; --bg-d: #131E1A;
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09); --glass-ring: rgba(255, 255, 255, .1);
  --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
  --head-bg: rgba(15, 26, 23, .72); --field: rgba(255, 255, 255, .07);
  --foot: #0A1311; --foot-text: #B9C9C3; --foot-dim: #8FA49C;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--bg-top); }
/* the ground: one page-long flowing gradient in the brand family, never flat near-white */
body { margin: 0; color: var(--ink); font: 400 var(--s0)/1.55 var(--text); font-kerning: normal; text-rendering: optimizeLegibility; min-height: 100vh;
  background:
    radial-gradient(60% 40% at 85% 6%, color-mix(in oklab, var(--bg-a) 80%, transparent), transparent 70%),
    radial-gradient(50% 30% at 8% 38%, color-mix(in oklab, var(--bg-b) 90%, transparent), transparent 70%),
    radial-gradient(55% 30% at 92% 70%, color-mix(in oklab, var(--bg-d) 85%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-a) 22%, var(--bg-b) 46%, var(--bg-c) 70%, var(--bg-d) 92%, var(--foot) 100%); }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cypress); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cypress); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: var(--h1-page); letter-spacing: -.02em; }
.h1--hero { font-size: var(--h1-hero); }
h2 { font-size: clamp(1.9rem, 3.5vw, var(--s3)); letter-spacing: -.015em; }
h3 { font-size: var(--s1); }
p { margin: 0 0 1em; max-width: 66ch; }
.tnum, time { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg-top); padding: 10px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--narrow); }
.lede { font-size: clamp(1.2rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.kicker { font: 500 var(--s-1)/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--cypress); margin: 0 0 .9em; }
.label { font: italic 500 1rem/1.3 var(--text); color: var(--cypress); margin: 0 0 .4em; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
html.no-js .js-only { display: none !important; }

/* glass: panels are tinted frosted glass, never flat white */
.glass, .contact-card, .form { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 0 0 1px var(--glass-ring), var(--glass-shadow); border-radius: var(--r-m); }

/* buttons: exactly two sizes. Square-shouldered, candle fill, ink text (the one accent) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r-s);
  background: var(--candle); color: #16241F; font: 700 1.0625rem/1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); transition: background-color .2s linear, transform .26s var(--out); white-space: nowrap; }
.btn:hover { background: var(--candle-hi); color: #16241F; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.1875rem; }
.btn--lg::after { content: '→'; font-weight: 400; transition: transform .26s var(--out); }
.btn--lg:hover::after { transform: translateX(3px); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--quiet:hover { background: var(--glass-2); color: var(--ink); }
.link-arrow { font-weight: 700; color: var(--cypress); text-decoration: none; border-bottom: 1.5px solid var(--sage); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--cypress); }

/* one hint style, directly under the interactive object */
.hint { display: block; font: italic 400 .975rem/1.3 var(--text); color: var(--ink-2); margin: 0; }
.hint::before { content: ''; display: inline-block; vertical-align: .12em; margin-right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--cypress); box-shadow: 0 0 0 0 color-mix(in oklab, var(--cypress) 50%, transparent); animation: hint-pulse 2.2s var(--out) infinite; flex: none; }
@keyframes hint-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--cypress) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.for-touch { display: none; }
@media (hover: none) { .for-hover { display: none; } .for-touch { display: inline; } }

/* concept note + header */
.concept-note { background: var(--night); color: #CFDCD7; font-size: .8125rem; text-align: center; padding: 6px var(--gut); letter-spacing: .02em; }
.site-h { position: sticky; top: 0; z-index: 50; background: var(--head-bg); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .2s linear; }
.site-h.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-h__in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; }
.brand img { height: 60px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; } :root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
.site-h__right { display: flex; align-items: center; gap: 6px; }
.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li > a:not(.btn), .nav-group__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font: 500 1.0625rem/1 var(--text);
  background: none; border: 0; cursor: pointer; border-radius: var(--r-s); }
.nav-list > li > a:not(.btn):hover, .nav-group__btn:hover { background: var(--glass-2); color: var(--ink); }
.nav-list a[aria-current="page"]:not(.btn), .nav-group[data-current] > .nav-group__btn { box-shadow: inset 0 -2px 0 var(--sage); }
.nav-donate { margin-left: 8px; }
.caret { width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--io); }
.nav-group { position: relative; }
.nav-group__btn[aria-expanded="true"] .caret { transform: translateY(1px) rotate(225deg); }
.nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; border-radius: var(--r-m);
  background: color-mix(in oklab, var(--bg-top) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--glass-ring), 0 18px 40px -18px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s linear, transform .2s var(--out), visibility 0s .2s; }
.nav-group.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s linear, transform .26s var(--out); }
.nav-sub a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-s); }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--glass-2); }
.ext { color: var(--sage-d); font-size: .9em; margin-left: 10px; }
.theme-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink); border-radius: 50%; cursor: pointer; }
.theme-btn:hover { background: var(--glass-2); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="auto"] .i-auto { display: block; }
.menu-btn { display: none; }
html.no-js .nav-group:hover .nav-sub, html.no-js .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
html.no-js .theme-btn { display: none; }

@media (max-width: 920px) {
  .brand img { height: 50px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; background: none; border: 0; font: 700 1rem/1 var(--text); color: var(--ink); cursor: pointer; border-radius: var(--r-s); }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s var(--io), background-color .1s linear; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  html.js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: color-mix(in oklab, var(--bg-top) 96%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -30px rgba(0, 0, 0, .3); padding: 8px var(--gut) 22px;
    max-height: calc(100vh - 90px); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s linear, transform .2s var(--out), visibility 0s .2s; }
  html.js .site-h.menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s linear, transform .26s var(--out); }
  html.no-js .site-h__in { flex-wrap: wrap; }
  html.no-js .site-nav { width: 100%; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a:not(.btn), .nav-group__btn { width: 100%; min-height: 54px; font-size: 1.2rem; padding: 0 4px; justify-content: space-between; box-shadow: inset 0 -1px 0 var(--line) !important; border-radius: 0; }
  .nav-sub { position: static; min-width: 0; box-shadow: none; padding: 0 0 8px 12px; opacity: 1; visibility: inherit; transform: none; display: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-group.is-open .nav-sub, html.no-js .nav-sub { display: block; }
  .nav-donate { margin: 18px 0 0; }
  .nav-donate .btn { width: 100%; min-height: 54px; }
}
@media (max-width: 380px) { .brand img { height: 44px; } .menu-btn__t { display: none; } }

/* arches: the logo's shape, used for feature photos */
.arch { border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; background: var(--glass); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* live day lists (filled by functions/_middleware.js) */
.days { display: grid; gap: 0; }
.day { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 32px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--line); }
.day:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.day-h { font: 700 1.0625rem/1.3 var(--text); margin: 0; display: flex; flex-direction: column; gap: 2px; letter-spacing: 0; }
.day-name { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.day-date { color: var(--ink-2); font-weight: 400; }
.day-hol { color: var(--cypress); font-weight: 500; font-size: .95rem; }
.day--today .day-name::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--candle); }
.evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.ev { display: grid; grid-template-columns: 6.2em 1fr; gap: 16px; align-items: baseline; }
.ev time { color: var(--ink-2); font-size: 1rem; }
.ev-t { font-weight: 500; }
.ev--candles .ev-t, .ev--havdalah .ev-t { color: var(--candle-ink); }
.ev--morning .ev-t { font-weight: 400; color: var(--ink-2); }
.ev--candles .ev-t::before { content: ''; display: inline-block; width: 6px; height: 12px; margin-right: 9px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: var(--candle); vertical-align: -1px; }
.now-tag { font-style: normal; font-size: .85rem; font-weight: 700; color: var(--candle-ink); margin-left: 8px; }
.fallback-note { color: var(--ink-2); }
@media (max-width: 640px) {
  .day { grid-template-columns: 1fr; padding: 16px 0; }
  .day-h { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .ev { grid-template-columns: 5.4em 1fr; gap: 12px; }
}

/* footer: dissolves out of the ground (no hard edge) */
.site-f { position: relative; color: var(--foot-text); background: linear-gradient(180deg, transparent 0, var(--foot) 150px); padding-top: 110px; margin-top: -40px; }
.site-f a { color: var(--foot-link); }
.site-f a:hover { color: var(--candle-hi); }
.site-f__in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 40px; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 40px; }
.site-f__brand img { width: 56px; height: auto; margin-bottom: 14px; }
.site-f__name { font: 400 1.5rem/1.2 var(--display); color: var(--foot-link); margin-bottom: .4em; }
.site-f__h { font: italic 500 1rem/1.3 var(--text); color: var(--sage); margin: 6px 0 14px; }
.site-f p { font-size: 1rem; }
.site-f__times { font-size: 1.125rem !important; color: var(--foot-link); }
.site-f__small { color: var(--foot-dim); font-size: .9rem !important; }
.site-f__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-f__links a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-f__base { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); font-size: .875rem; color: var(--foot-dim); }
@media (max-width: 920px) { .site-f__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-f__in { grid-template-columns: 1fr; gap: 28px; } .site-f__base { padding-bottom: 96px; } }

/* page hero (inner pages) */
.p-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.p-hero h1 { max-width: 16ch; }
.p-hero--split .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.p-hero--split .arch { aspect-ratio: 4 / 4.6; }
@media (max-width: 820px) { .p-hero--split .wrap { grid-template-columns: 1fr; } .p-hero--split .arch { aspect-ratio: 4 / 3.4; max-width: 520px; } }

.contact-card { display: grid; gap: 6px; padding: 28px; }
.contact-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* phone contact bar: always one tap from a person; hides over forms and the footer */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; gap: 8px; padding: 8px; border-radius: 14px;
    background: color-mix(in oklab, var(--bg-top) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: inset 0 0 0 1px var(--glass-ring), 0 16px 40px -18px rgba(0, 0, 0, .45); transition: transform .3s var(--out), opacity .2s linear; }
  .call-bar a { flex: 1; min-height: 46px; font-size: 1rem; }
  .call-bar.is-away { transform: translateY(130%); opacity: 0; pointer-events: none; }
}

/* ---------- reveal vocabulary (CSS scroll-driven; fully visible with no support, no JS, or reduced motion) ----------
   headings wipe up · leads go blur→sharp · list rows slide from alternating sides · panels scale in · photos develop
   from a blurred wash. Ranges run from the bottom edge to about mid-screen so the motion is seen, not finished
   off-screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .section h2, main .give h2 { animation: rv-wipe linear both; animation-timeline: view(); animation-range: entry 5% cover 38%; }
    main .section .lede, main .section .rv-blur { animation: rv-blur linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
    main .section :is(.evs, .steps, .morning__list, .pillars, .helps, .prog-list, .faq, .facts, .past) > :nth-child(odd),
    main .section .days > .day:nth-child(odd) { animation: rv-left linear both; animation-timeline: view(); animation-range: entry 0% cover 34%; }
    main .section :is(.evs, .steps, .morning__list, .pillars, .helps, .prog-list, .faq, .facts, .past) > :nth-child(even),
    main .section .days > .day:nth-child(even) { animation: rv-right linear both; animation-timeline: view(); animation-range: entry 0% cover 34%; }
    main .section :is(.contact-card, .form, .run, .way, .now-card, .trace__pad, .times) { animation: rv-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 36%; }
    main .section .arch img, main .section .clubs__inset, main .visit .arch img { animation: rv-develop linear both; animation-timeline: view(); animation-range: entry 10% cover 52%; }
  }
}
@keyframes rv-wipe { from { clip-path: inset(0 0 100% 0); transform: translateY(.45em); } to { clip-path: inset(-.2em 0 -.3em 0); transform: none; } }
@keyframes rv-blur { from { filter: blur(8px); opacity: .15; } to { filter: none; opacity: 1; } }
@keyframes rv-left { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rv-right { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rv-scale { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rv-develop { from { filter: blur(18px) saturate(.4) brightness(1.08); transform: scale(1.07); } to { filter: none; transform: none; } }

html.pt :is(.hero, .p-hero) h1 { color: transparent; animation: pt-safety 0s 2.4s forwards; }
@keyframes pt-safety { to { color: var(--ink); } }
/* particle titles: the real H1 text is always in the DOM; it hides only while its light is converging */
.pt-host { position: relative; }
.pt-host.pt-run { color: transparent; }
.pt-host.pt-run * { color: transparent !important; }
.pt-host.pt-handoff { transition: color .5s linear; }
.pt-canvas { position: absolute; pointer-events: none; z-index: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } .hint::before { animation: none; } }
.section--mist { position: relative; isolation: isolate; }
/* touch targets */
@media (hover: none) {
  .site-f__links a, .site-f p a { min-height: 44px; display: inline-flex; align-items: center; }
  .link-arrow { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
}
