/* etin.ca — cinematic layer: hero, motion, ribbon, art cards, photo bands, heritage map. Loaded after site.css. */

/* ---------- Header behaviour ---------- */
.hdr { transition: background .3s ease, box-shadow .3s ease; }
.hdr.scrolled { box-shadow: 0 6px 30px rgba(14, 23, 38, .08); }
.hero-cine ~ .hdr, body.has-cine .hdr { background: rgba(14, 23, 38, .35); border-bottom-color: rgba(255, 255, 255, .08); }
body.has-cine .hdr:not(.scrolled) .brand b, body.has-cine .hdr:not(.scrolled) .nav a, body.has-cine .hdr:not(.scrolled) .langs a { color: #fff; }
body.has-cine .hdr:not(.scrolled) .brand small { color: rgba(255, 255, 255, .7); }
body.has-cine .hdr:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.has-cine .hdr:not(.scrolled) .langs a[aria-current="true"] { background: var(--gold); color: var(--ink); }
body.has-cine .hdr:not(.scrolled) .burger { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
body.has-cine .hdr:not(.scrolled) .burger span { background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
body.has-cine .hdr.scrolled { background: rgba(252, 249, 243, .9); }
body.has-cine { --hdr-h: 68px; }
body.has-cine .hdr { position: fixed; inset-inline: 0; top: 0; }
body.has-cine .langbar ~ .hdr { top: 0; }

/* ---------- Cinematic hero ---------- */
.hero-cine { position: relative; min-height: 100svh; min-height: 100vh; display: grid; align-items: end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-cine .art { position: absolute; inset: -6% 0 0; z-index: -3; }
.hero-cine .art img, .hero-cine .art svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 70%; }
.js .hero-cine .art img, .js .hero-cine .art svg { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.14) translateY(-1.5%); } }
.hero-cine .veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(14, 23, 38, .55) 0%, rgba(14, 23, 38, .05) 35%, rgba(14, 23, 38, .35) 65%, rgba(14, 23, 38, .92) 100%); }
.hero-cine .veil-side { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(14, 23, 38, .7) 0%, rgba(14, 23, 38, .25) 45%, rgba(14, 23, 38, 0) 70%); }
html[dir="rtl"] .hero-cine .veil-side { background: linear-gradient(270deg, rgba(14, 23, 38, .7) 0%, rgba(14, 23, 38, .25) 45%, rgba(14, 23, 38, 0) 70%); }
.hero-cine .embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-cine .embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); opacity: 0; filter: blur(.5px); box-shadow: 0 0 10px 2px rgba(230, 198, 120, .55); animation: ember 11s linear infinite; }
@keyframes ember { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 10% { opacity: .9; } 50% { opacity: .6; } 100% { transform: translate3d(var(--dx, 20px), -110vh, 0) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-cine .embers, .js .hero-cine .art img { animation: none !important; } }
.hero-cine .thread-line { position: absolute; inset-inline: 0; bottom: 0; height: 18px; z-index: 1; background: url("/assets/art/thread-gold.svg") repeat-x; background-size: 72px 18px; opacity: .85; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; padding: calc(var(--hdr-h, 68px) + 40px) 0 0; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; min-height: 100vh; min-height: 100svh; align-content: end; }
.hero-text { padding-bottom: 56px; max-width: 700px; }
.hero-text .eyebrow { color: var(--gold-2); }
.hero-text .eyebrow::before { background: var(--gold-2); }
.hero-text h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.04; margin-bottom: .3em; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(0, 0, 0, .4); }
.hero-text h1 .gold { background: linear-gradient(100deg, #f1d797 0%, #d9a24e 45%, #f7e2a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text .lede { color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 600px; }
.hero-text .hero-actions { margin-top: 26px; }
.hero-text .lang-chips { margin-top: 22px; }
.hero-figure { position: relative; justify-self: center; align-self: end; width: min(82vw, 460px); margin-bottom: -4px; }
.hero-figure::before { content: ""; position: absolute; inset: 18% -14% -6%; background: radial-gradient(ellipse at 50% 95%, rgba(217, 162, 78, .75), rgba(217, 162, 78, 0) 62%); filter: blur(18px); z-index: -1; }
.hero-figure::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 110%; height: 110%; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(230, 198, 120, .25); z-index: -1; animation: ring 9s ease-in-out infinite; pointer-events: none; }
@keyframes ring { 0%, 100% { transform: translateX(-50%) scale(.96); opacity: .5; } 50% { transform: translateX(-50%) scale(1.02); opacity: 1; } }
.hero-figure img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .15)); }
.js .hero-figure img { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-figure .badge { position: absolute; inset-inline-start: -6%; bottom: 20%; background: rgba(252, 249, 243, .95); color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(8px); }
.hero-figure .badge b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--camel-2); line-height: 1; }
.hero-figure .badge .stars { color: var(--honey); font-size: .8rem; letter-spacing: .05em; }
.hero-figure .badge-2 { inset-inline-start: auto; inset-inline-end: -4%; bottom: 46%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 12px; }
  .hero-figure { width: min(40vw, 560px); justify-self: end; }
  .hero-text { padding-bottom: 72px; }
}
@media (max-width: 899px) {
  .hero-figure .badge { display: none; }
  .hero-figure { width: min(78vw, 400px); }
}
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (min-width: 900px) { .scroll-cue { display: block; } }

/* Split-word entrance */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
[data-split].split-in .w > span { transform: none; opacity: 1; }
.hero-text > .eyebrow, .hero-text > .lede, .hero-text > .hero-actions, .hero-text > .lang-chips { opacity: 0; transform: translateY(14px); animation: fadeup .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-text > .eyebrow { animation-delay: .1s; }
.hero-text > .lede { animation-delay: .7s; }
.hero-text > .hero-actions { animation-delay: .9s; }
.hero-text > .lang-chips { animation-delay: 1.05s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-text > * { animation: none !important; opacity: 1 !important; transform: none !important; } [data-split] .w > span { transform: none; opacity: 1; } }

/* ---------- Language ribbon ---------- */
.ribbon { background: var(--ink); color: var(--gold-2); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 14px 0; }
.ribbon-track { display: flex; gap: 48px; width: max-content; animation: ribbon 60s linear infinite; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.5rem); white-space: nowrap; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 48px; }
.ribbon-track span::after { content: "✦"; color: var(--camel); font-size: .8em; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ribbon-track { animation-direction: reverse; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }

/* ---------- Gold display headings ---------- */
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.sec-ink .sec-head h2 .gold, .cine-gold { background: linear-gradient(100deg, #f1d797 0%, #d9a24e 45%, #f7e2a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* ---------- Art cards (image-backed) ---------- */
.art-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.art-card { position: relative; display: block; min-height: 420px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); box-shadow: var(--shadow); isolation: isolate; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.art-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.art-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 23, 38, .05) 20%, rgba(14, 23, 38, .55) 60%, rgba(14, 23, 38, .95) 100%); z-index: -1; transition: opacity .4s ease; }
.art-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(14, 23, 38, .35); color: #fff; }
.art-card:hover img { transform: scale(1.08); }
.art-card .in { position: absolute; inset: auto 0 0; padding: 26px; }
.art-card .k { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: 8px; }
html[lang="he"] .art-card .k { letter-spacing: .04em; }
.art-card h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .35em; }
.art-card p { color: rgba(255, 255, 255, .85); margin: 0 0 12px; font-size: .97rem; }
.art-card .more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--gold-2); }
.art-card .more::after { content: "→"; transition: transform .3s ease; }
html[dir="rtl"] .art-card .more::after { content: "←"; }
.art-card:hover .more::after { transform: translateX(4px); }
html[dir="rtl"] .art-card:hover .more::after { transform: translateX(-4px); }
.art-card.tall { min-height: 520px; }
.art-cards.feature { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 980px) { .art-cards.feature > :first-child { grid-column: span 2; } }

/* ---------- Photo bands (full-bleed parallax with a quote) ---------- */
.band { position: relative; min-height: 62vh; display: grid; place-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.band .band-art { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band .band-art img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 23, 38, .55), rgba(14, 23, 38, .35) 50%, rgba(14, 23, 38, .7)); }
.band .in { text-align: center; max-width: 860px; padding: clamp(60px, 10vw, 120px) var(--gutter); }
.band .in p.big { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.25; margin: 0 0 .6em; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.band .in .by { color: var(--gold-2); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
html[lang="he"] .band .in .by { letter-spacing: .03em; }
.band .in .btn { margin-top: 20px; }

/* ---------- Stats (cinematic) ---------- */
.stat b[data-count] { font-variant-numeric: tabular-nums; }
.sec-ink .stats { gap: 18px; }
.sec-ink .stat { background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border-color: rgba(230, 198, 120, .22); }

/* ---------- Richer cards ---------- */
.card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14, 23, 38, .14); }
.card .ico { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: var(--gold-2); border: 0; box-shadow: 0 8px 20px rgba(14, 23, 38, .2); }
.tilt { transition: transform .25s ease, box-shadow .35s ease; will-change: transform; }

/* ---------- Cinematic video grid ---------- */
.videos { gap: 20px; }
.video { border-radius: 20px; box-shadow: var(--shadow); }
.video img { opacity: .95; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.video .play span { width: 72px; height: 72px; background: rgba(252, 249, 243, .95); transition: transform .3s ease, background .3s ease; }
.video:hover .play span { transform: scale(1.08); background: var(--gold-2); }
.video .cap { font-family: var(--font-display); font-size: 1.05rem; padding: 60px 18px 16px; }

/* ---------- Testimonials ---------- */
.quote { border: 0; background: linear-gradient(160deg, #fff, var(--cream)); box-shadow: 0 10px 30px rgba(14, 23, 38, .08); }
.quote::before { font-size: 5.5rem; top: -6px; opacity: .55; }
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }

/* ---------- Page heroes with painted art ---------- */
.hero-mini { min-height: 54vh; display: grid; align-items: end; }
.hero-mini .hero-art img { object-position: 50% 45%; }
.hero-mini .hero-art::after { background: linear-gradient(180deg, rgba(14, 23, 38, .55) 0%, rgba(14, 23, 38, .15) 40%, rgba(14, 23, 38, .85) 100%); }
.hero-mini .hero-copy { padding-top: calc(var(--hdr-h, 68px) + 30px); }
.hero-mini h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hero-mini h1 .gold { background: linear-gradient(100deg, #f1d797 0%, #d9a24e 45%, #f7e2a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Heritage map ---------- */
.hmap { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d2d50 0%, #0e1726 70%); box-shadow: var(--shadow); color: #fff; }
.hmap svg { width: 100%; height: auto; display: block; }
.hmap .river { fill: none; stroke: #3b5b8f; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.hmap .river-glow { fill: none; stroke: #6fa0e0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.hmap .road { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.hmap .ring { fill: none; stroke: rgba(230, 198, 120, .28); stroke-width: 2; stroke-dasharray: 6 8; }
.hmap .q { fill: rgba(255, 255, 255, .5); font-family: var(--font-body); font-size: 15px; letter-spacing: .14em; font-weight: 700; }
.hmap .lbl { fill: rgba(255, 255, 255, .7); font-family: var(--font-body); font-size: 12px; }
.hmap .dt { fill: #f7e2a8; font-family: var(--font-display); font-size: 16px; }
.hmap .pin { cursor: pointer; }
.hmap .pin circle.c { r: 7; fill: var(--gold); stroke: #0e1726; stroke-width: 2; transition: r .2s ease, fill .2s ease; }
.hmap .pin circle.halo { r: 7; fill: none; stroke: var(--gold-2); stroke-width: 2; opacity: .7; animation: halo 2.6s ease-out infinite; }
.hmap .pin[data-group="jewish"] circle.c { fill: #e6c678; }
.hmap .pin[data-group="ukrainian"] circle.c { fill: #e9a45c; }
.hmap .pin[data-group="russian"] circle.c { fill: #c96a5a; }
.hmap .pin[data-group="food"] circle.c { fill: #9bd0a8; }
.hmap .pin:hover circle.c, .hmap .pin.active circle.c, .hmap .pin:focus circle.c { r: 10; }
.hmap .pin.dim { opacity: .18; }
@keyframes halo { 0% { r: 7; opacity: .7; } 100% { r: 26; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hmap .pin circle.halo { animation: none; opacity: 0; } }
.hmap-tip { position: absolute; transform: translate(-50%, calc(-100% - 16px)); background: rgba(252, 249, 243, .98); color: var(--ink); border-radius: 12px; padding: 12px 14px; min-width: 200px; max-width: 280px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; pointer-events: auto; z-index: 3; }
.hmap-tip.below { transform: translate(-50%, 22px); }
.hmap-tip b { display: block; font-size: 1rem; }
.hmap-tip span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.hmap-tip a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--camel-2); }
.hmap-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; position: absolute; inset-inline-start: 0; top: 0; z-index: 2; }
.hmap-filter button { background: rgba(14, 23, 38, .65); color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.hmap-filter button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hmap-legend { position: absolute; inset-inline-end: 14px; bottom: 12px; font-size: .75rem; color: rgba(255, 255, 255, .6); z-index: 2; }
@media (max-width: 640px) { .hmap-filter { position: static; padding: 12px 12px 0; } .hmap-legend { position: static; padding: 8px 12px 12px; } .hmap .q { font-size: 20px; } .hmap .lbl { font-size: 16px; } .hmap .dt { font-size: 20px; } }

/* ---------- Thread divider shimmer ---------- */
.thread-wrap { position: relative; overflow: hidden; }
.thread-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%); transform: translateX(-100%); animation: shimmer 6s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes shimmer { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .thread-wrap::after { animation: none; } }

/* ---------- CTA band richer ---------- */
.cta-band { background: linear-gradient(135deg, #0e1726 0%, #243457 60%, #3a2a2e 100%); }
.cta-band::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(217, 162, 78, .55), transparent 65%); }

/* ---------- Buttons ---------- */
.btn-primary { background: linear-gradient(100deg, #c8822f 0%, #b5722f 60%, #d99a4a 100%); background-size: 200% 100%; transition: background-position .5s ease, transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { background-position: 100% 0; }
.btn-ghost { backdrop-filter: blur(8px); }

/* ---------- Header robustness at mid widths ---------- */
.brand b, .brand small, .btn { white-space: nowrap; }
.hdr-in { gap: 12px; }
@media (min-width: 980px) and (max-width: 1180px) { .nav a { padding: 8px 7px; font-size: .86rem; } .hdr-cta .btn { padding: 9px 12px; } }
.dock .btn { white-space: normal; padding: 11px 10px; font-size: .9rem; line-height: 1.15; }
html { scroll-padding-top: 96px; }
.dock a { min-width: 0; flex: 1 1 0; }
