/* Horaat Israel — public landing: cinematic editorial */
:root {
    --blue: #224F90;
    --blue-deep: #13305C;
    --night: #0B1830;
    --ink: #1A1D24;
    --muted: #5A5F6B;
    --paper: #FFF8EC;
    --paper-2: #F6EAD3;
    --white: #FFFFFF;
    --coral: #E4573D;
    --sun: #F4B63B;
    --emerald: #0F7A55;
    --teal: #1C9C8C;
    --line: rgba(26, 29, 36, .14);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --radius: 14px;
    --ease: cubic-bezier(.2, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--sun); color: var(--night); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--white); border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 6px 18px -10px rgba(34, 79, 144, .5); }
.brand-logo { height: 50px; width: auto; }
.brand-logo, .footer-brand img { mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links .nav-cta { background: var(--blue); color: var(--white); margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--blue-deep); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: var(--white); }
.button-primary:hover { background: #C8432C; }
.button-ghost { color: var(--paper); border-color: rgba(255, 248, 236, .55); }
.button-ghost:hover { background: rgba(255, 248, 236, .12); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-eyebrow { color: var(--blue); }
.tag-2026 { padding: 3px 9px; background: var(--ink); color: var(--sun); border-radius: 4px; letter-spacing: .08em; }

/* Use print, saved-page and no-motion renders as graceful static previews. */
@media print { .motion-ok [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: var(--night); min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 0; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero-layer-mid { transform: translate3d(0, calc(var(--parallax, 0) * 40px), 0); }
.hero-layer-front { transform: translate3d(0, calc(var(--parallax, 0) * -24px), 0); }
.hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 24, 48, .92) 0%, rgba(11, 24, 48, .55) 48%, rgba(11, 24, 48, 0) 80%); }
.film-strip { position: absolute; left: 0; right: 0; height: 22px; z-index: 1; background-color: #05090F; background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 248, 236, .28) 14px 24px, transparent 24px 38px); background-size: 38px 8px; background-repeat: repeat-x; background-position: 0 center; }
.film-strip-top { top: 0; }
.film-strip-bottom { bottom: 0; }
.film-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .13; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: 64px; }
.hero-eyebrow { color: var(--sun); }
.eyebrow-separator { opacity: .5; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(228, 87, 61, .25); }
.hero h1 { margin: 0 0 24px; font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; }
.hero-line { display: block; }
.hero-line-accent { color: var(--sun); font-style: italic; font-weight: 500; }
.hero-description { max-width: 56ch; margin: 0 0 32px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255, 248, 236, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-slate { margin: 0; justify-self: end; width: min(100%, 440px); transform: rotate(-2.5deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.slate-bar { display: flex; height: 34px; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--ink); transform-origin: 0 100%; }
.slate-bar span { flex: 1; transform: skewX(-30deg); margin: 0 -4px; }
.slate-bar span:nth-child(odd) { background: var(--paper); }
.slate-bar span:nth-child(2) { background: var(--coral); }
.slate-bar span:nth-child(4) { background: var(--teal); }
.slate-card { background: var(--white); padding: clamp(22px, 3vw, 36px); }
.slate-card img { width: 100%; height: auto; }
.slate-meta { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: var(--paper); font-size: .78rem; border-radius: 0 0 10px 10px; }
.slate-meta span { padding: 10px 12px; border-left: 1px solid rgba(255, 248, 236, .18); }
.slate-meta span:first-child { border-left: 0; }
.slate-meta b { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.slate-meta a { color: var(--paper); text-underline-offset: 3px; }

.hero-credits { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 248, 236, .2); margin-bottom: 22px; padding: 14px 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: rgba(255, 248, 236, .75); }
.credits-track { display: flex; gap: 48px; width: max-content; }
.credits-track span::after { content: "✦"; margin-left: 48px; color: var(--coral); font-style: normal; }

/* Entrance: CSS only, short, content never waits for JS */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slate-in { from { opacity: 0; transform: rotate(-8deg) translateY(30px) scale(.96); } to { opacity: 1; transform: rotate(-2.5deg); } }
@keyframes clap { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-9deg); } 60% { transform: rotate(0); } }
@keyframes credits { to { transform: translateX(-50%); } }
@keyframes sway { 0%, 100% { transform: translateY(var(--drop, 0)) rotate(-2deg); } 50% { transform: translateY(var(--drop, 0)) rotate(2deg); } }
.hero-eyebrow, .hero-line, .hero-description, .hero-actions { animation: rise .8s var(--ease) both; }
.hero-line:nth-child(1) { animation-delay: .08s; }
.hero-line:nth-child(2) { animation-delay: .18s; }
.hero-description { animation-delay: .26s; }
.hero-actions { animation-delay: .32s; }
.hero-slate { animation: slate-in 1s var(--ease) .15s both; }
.slate-bar { animation: clap .7s var(--ease) 1s both; }
.credits-track { animation: credits 40s linear infinite; }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.015em; }
.section h2 span { color: var(--coral); font-style: italic; font-weight: 500; }
.section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--coral) 25% 45%, var(--sun) 45% 62%, var(--emerald) 62% 80%, var(--teal) 80%); }
.section-heading-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.section-summary { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }

/* Workshops */
.workshop-list { border-top: 2px solid var(--ink); }
.workshop-row { display: grid; grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.workshop-row:hover { background: linear-gradient(90deg, rgba(244, 182, 59, .14), transparent 70%); }
.workshop-index { font-family: var(--serif); font-size: 2rem; color: var(--blue); }
.workshop-copy h3 { margin: 0 0 6px; font-size: 1.25rem; }
.workshop-copy p { margin: 0; color: var(--muted); }
.workshop-meta { display: grid; gap: 10px; font-size: .9rem; }
.workshop-date { font-weight: 700; color: var(--emerald); }
.capacity-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.capacity-track { display: block; height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.capacity-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: inherit; }
.workshop-row-full .capacity-track span { background: var(--coral); }
.capacity-open { color: var(--emerald); font-weight: 600; }
.workshop-select { min-height: 48px; padding: 0 20px; border: 2px solid var(--blue); border-radius: 999px; background: transparent; color: var(--blue); font: 700 .95rem var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.workshop-select:hover { background: var(--blue); color: var(--white); }
.workshop-full-label { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #F9DCD4; color: #9A2E1A; font-weight: 700; font-size: .9rem; }
.empty-workshops { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Flags / clothesline */
.flags-section { background: linear-gradient(180deg, var(--paper-2), var(--paper)); overflow: hidden; }
.flags-layout { display: grid; gap: 40px; }
.flags-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.flags-intro .eyebrow, .flags-intro h2 { grid-column: 1; }
.flags-intro p:not(.eyebrow) { grid-column: 2; margin: 0; font-size: 1.05rem; }
.flags-intro h2 { grid-row: 2 / span 2; }
.flags-note { color: var(--muted); font-size: .95rem !important; padding-left: 16px; border-left: 3px solid var(--coral); }
.flags-note a, .history-source a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.clothesline { position: relative; padding-top: 4px; }
.clothesline-rope { position: absolute; top: 0; left: -3%; width: 106%; height: 80px; }
.flag-list { position: relative; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0 1%; }
.flag-item { position: relative; display: flex; flex-direction: column; align-items: center; width: 12.5%; padding-top: 10px; transform: translateY(var(--drop, 0)); transform-origin: 50% 0; }
.flag-pin { position: absolute; top: 2px; left: 50%; width: 8px; height: 22px; margin-left: -4px; z-index: 1; border-radius: 2px; background: linear-gradient(90deg, #C58A52, #E6B47F); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.flag { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 10px 18px -8px rgba(26, 29, 36, .45); }
.flag-name { margin-top: 12px; font-size: .86rem; font-weight: 700; text-align: center; line-height: 1.25; }

/* History 2026 */
.history-section { background: var(--night); color: var(--paper); }
.history-section .section-eyebrow { color: var(--sun); }
.history-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.history-head { grid-column: 1 / span 7; }
.history-lede { margin: 20px 0 0; font-size: 1.12rem; color: rgba(255, 248, 236, .82); max-width: 52ch; }
.history-figures { grid-column: 8 / span 5; grid-row: 1 / span 2; display: grid; gap: 14px; margin: 0; align-self: start; }
.figure { position: relative; padding: 20px 22px; border-radius: var(--radius); color: var(--night); overflow: hidden; }
.figure dt { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.figure dd { margin: 4px 0 0; font-weight: 600; }
.figure-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.figure-coral { background: var(--coral); color: var(--white); }
.figure-sun { background: var(--sun); margin-left: 12%; }
.figure-emerald { background: var(--teal); color: var(--night); margin-left: 4%; }
.history-story { grid-column: 1 / span 7; display: grid; gap: 0; border-top: 1px solid rgba(255, 248, 236, .2); }
.story-block { padding: 26px 0; border-bottom: 1px solid rgba(255, 248, 236, .2); }
.story-block h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.5rem; color: var(--sun); }
.story-block p { margin: 0; color: rgba(255, 248, 236, .88); }
.story-block strong { color: var(--white); }
.speaker-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.speaker-list li { padding: 8px 16px; border: 1px solid rgba(255, 248, 236, .4); border-radius: 999px; font-weight: 600; }
.history-disclaimer { grid-column: 8 / span 5; align-self: end; padding: 22px; border: 1px dashed rgba(244, 182, 59, .7); border-radius: var(--radius); background: rgba(255, 248, 236, .05); }
.history-disclaimer p { margin: 0 0 10px; }
.history-disclaimer p:last-child { margin: 0; font-size: .92rem; color: rgba(255, 248, 236, .75); }
.history-section .history-source a { color: var(--sun); }

/* Registration */
.registration-section { background: var(--paper); }
.registration-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.registration-eyebrow { color: var(--coral); }
.registration-intro p { color: var(--muted); font-size: 1.05rem; }
.registration-mark { display: flex; justify-content: space-between; margin-top: 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue); color: var(--white); font-family: var(--serif); font-size: 1.3rem; }
.form-wrapper { padding: clamp(22px, 4vw, 40px); background: var(--white); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(34, 79, 144, .35); border-top: 6px solid var(--sun); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: grid; gap: 6px; }
.form-group-wide { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: .95rem; }
.optional-label { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #CFC6B6; border-radius: 10px; background: var(--white); font: inherit; color: var(--ink); }
input:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(34, 79, 144, .25); outline-offset: 0; }
.workshop-picker { margin: 0; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; }
.workshop-picker[hidden] { display: none; }
.workshop-options { display: grid; gap: 8px; margin-top: 8px; }
.workshop-option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 10px; background: var(--paper); cursor: pointer; }
.workshop-option:has(input:checked) { background: #E3ECF8; box-shadow: inset 0 0 0 2px var(--blue); }
.workshop-option-name { flex: 1; }
.workshop-option-capacity { font-size: .85rem; color: var(--muted); }
.workshop-option-full { opacity: .55; cursor: not-allowed; }
.workshop-option input, .consent-row input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.picker-empty { margin: 8px 0 0; color: var(--muted); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; font-weight: 500; cursor: pointer; }
.form-submit { width: 100%; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.success, .form-status.error { padding: 14px 16px; border-radius: 10px; }
.form-status.success { background: #DDF3EA; color: #0B5E41; }
.form-status.error { background: #FBE3DD; color: #962C18; }

/* Footer */
.site-footer { padding: 36px 0; background: var(--ink); color: rgba(255, 248, 236, .8); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner p { margin: 0; }
.footer-brand { display: inline-flex; padding: 6px 10px; background: var(--white); border-radius: 10px; }
.footer-brand img { height: 40px; width: auto; }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* Scroll cues: content remains visible for no-JS, reduced-motion and full-page views. */
.motion-ok [data-reveal] { opacity: 1; transform: none; }
.motion-ok [data-reveal].is-visible { animation: reveal-once .78s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes reveal-once { from { transform: translateY(18px); filter: blur(1.5px); } to { transform: none; filter: none; } }
.motion-ok .clothesline.is-visible .flag-item { animation: sway calc(4.2s + var(--i) * .35s) ease-in-out calc(var(--i) * -.6s) infinite; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-slate { justify-self: start; width: min(100%, 380px); }
    .hero-scene::after { background: linear-gradient(180deg, rgba(11, 24, 48, .85), rgba(11, 24, 48, .6)); }
    .section-heading-split, .flags-intro, .registration-layout { grid-template-columns: 1fr; }
    .flags-intro > * { grid-column: 1 !important; grid-row: auto !important; }
    .history-head, .history-figures, .history-story, .history-disclaimer { grid-column: 1 / -1; grid-row: auto; }
    .history-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .figure-sun, .figure-emerald { margin-left: 0; }
    .workshop-row { grid-template-columns: 48px minmax(0, 1fr); }
    .workshop-meta, .workshop-action { grid-column: 2; }
}
@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); display: none; }
    .nav-links.is-open { display: flex; }
    .nav-links a { min-height: 48px; padding: 0 16px; }
    .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
    .brand-logo { height: 42px; }
    .history-figures { grid-template-columns: 1fr; }
    .clothesline-rope { display: none; }
    .flag-list { flex-wrap: wrap; justify-content: center; gap: 30px 4%; padding: 0; }
    .flag-item { --drop: 0px !important; width: 28%; padding-top: 16px; }
    .flag-item::before { content: ""; position: absolute; top: 12px; left: -10%; right: -10%; height: 2px; background: #7A4A2A; }
    .form-grid { grid-template-columns: 1fr; }
    .slate-meta { font-size: .72rem; }
}
@media (max-width: 420px) {
    .container { width: calc(100% - 28px); }
    .hero-actions .button { width: 100%; }
    .flag-item { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .hero-layer { transform: none !important; }
    .hero-slate { transform: rotate(-2.5deg); }
    .credits-track { flex-wrap: wrap; width: auto; }
    .credits-track span:nth-child(n + 7) { display: none; }
}
