/* ==========================================================
   ישל"צ · עיצוב חדש · פלטה 3 (מרווה, אקווה וטרקוטה)
   Layout: "קשתות ורכסים". Photos framed as Jerusalem-stone arches,
   sections joined by Judean-hill ridgelines, RTL asymmetric grids.
   ========================================================== */

@font-face {
  font-family: "Leon";
  src: url("../assets/fonts/Leon-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Leon";
  src: url("../assets/fonts/Leon-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-display: block;
}
@font-face {
  font-family: "Uriyah Mash";
  src: url("../assets/fonts/OHUriyahMash-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}

:root {
  /* palette 4 (from the brief): saturated, young */
  --sky: #8AD6D1;        /* פרל אקווה: רצועות ומשטחים בהירים */
  --aqua: #359FA0;       /* טורקיז טרופי: הצבע המוביל */
  --sand: #FFEFE6;       /* שמנת אפרסק: רקע האתר */
  --sage: #7FBB47;       /* מוס גרין: קישוטים והדגשות */
  --clay: #C65F33;       /* פפריקה חריפה: כפתורי פעולה וקישוטים */

  /* derived */
  --olive: #0D3B3C;      /* טורקיז כהה מאוד: טקסט, פוטר ורצועות כהות */
  --teal: #1D7C7D;       /* טורקיז עמוק: לוגו, רצועת בוגרים */
  --olive-2: #154A4B;
  --olive-3: #1E5A5B;
  --ink: #0D3B3C;
  --ink-soft: #335555;
  --aqua-ink: #1A7576;
  --clay-ink: #A9471F;
  --clay-bright: #E2804F;
  --sage-ink: #437220;
  --lemon: #FFE48F;
  --paper: #FFFAF7;
  --stone: #D6F1EE;
  --sage-tint: #E4F2D3;
  --aqua-tint: #D3F0ED;
  --clay-tint: #F9DDCB;
  --clay-btn: #B8582F;   /* clay darkened just enough for light text on buttons (4.53:1 with --paper) */
  --focus: var(--olive); /* keyboard focus ring; light (--lemon) on dark grounds */
  --line: rgba(13, 59, 60, 0.16);
  --on-dark: #FFFAF7;
  --on-dark-soft: rgba(255, 250, 247, 0.8);
  --on-dark-line: rgba(255, 250, 247, 0.18);

  /* type */
  --f-display: "Leon", "Heebo", "Arial Hebrew", system-ui, sans-serif;
  --f-body: "Leon", "Heebo", "Arial Hebrew", system-ui, sans-serif;
  --f-script: "Uriyah Mash", "Leon", cursive;
  --t-hero: clamp(2.5rem, 5.6vw, 4.9rem);
  --t-h2: clamp(2rem, 4.2vw, 3.3rem);
  --t-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-script: clamp(1.45rem, 2.4vw, 2.1rem);

  /* shape */
  --r-arch: 999px 999px 26px 26px;
  --r-card: 24px;
  --wrap: 1240px;
  --shadow: 0 22px 44px -26px rgba(13, 59, 60, 0.45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--sand);
}
main { overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 900; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
bdi.ltr { direction: ltr; unicode-bidi: isolate; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }

.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- headings ---------- */
.sec-head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 720px; }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; max-width: none; }
.sec-head.row > div:not(.car-btns) { display: grid; gap: 8px; min-width: 0; }
.script { font-family: var(--f-script); font-size: var(--t-script); line-height: 1.05; color: var(--clay-ink); }
.script.aqua { color: var(--aqua-ink); }
.script.sage { color: var(--lemon); }
.h1 { font-size: var(--t-hero); color: var(--olive); letter-spacing: -0.01em; }
.h2 { font-size: var(--t-h2); color: var(--olive); }
.on-dark .h2, .on-dark .h1 { color: var(--on-dark); }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 58ch; }
.on-dark .lead { color: var(--on-dark-soft); }
.mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10c34-7 66-9 100-5s66 5 94-2' fill='none' stroke='%23C65F33' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom / 100% 0.34em;
  padding-bottom: 0.1em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.95em 1.65em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover .ic.fwd { transform: translateX(-4px); }
.btn-clay { background: var(--clay-btn); color: var(--paper); }
.btn-clay:hover { background: var(--clay-ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(198, 95, 51, 0.9); }
.btn-olive { background: var(--olive); color: var(--sand); }
.btn-olive:hover { background: var(--olive-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--olive); border-color: currentColor; }
.btn-ghost:hover { background: var(--olive); color: var(--sand); border-color: var(--olive); }
.on-dark .btn-ghost, .btn-ghost.light { color: var(--sand); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { background: var(--sand); color: var(--olive); border-color: var(--sand); }
.btn-sm { padding: 0.7em 1.25em; font-size: 0.96rem; }
.text-link { color: var(--aqua-ink); font-family: var(--f-display); font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 14px; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 10px;
  padding-inline-start: 26px;
  box-shadow: 0 14px 34px -24px rgba(13, 59, 60, 0.55);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled .nav { box-shadow: 0 18px 40px -20px rgba(13, 59, 60, 0.5); }
.brand { display: flex; color: var(--teal); flex: none; }
.logo-mark { height: 28px; width: auto; fill: currentColor; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a {
  display: block;
  padding: 0.5em 1em;
  border-radius: 999px;
  text-decoration: none;
  color: var(--olive);
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--teal); color: var(--paper); }
.nav-links a[aria-current="page"] { background: var(--teal); color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--olive);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.icon-btn:hover { background: var(--aqua); border-color: var(--aqua); color: var(--sand); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .nav { gap: 10px; padding-inline-start: 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links a { padding: 0.8em 1.1em; font-size: 1.08rem; }
  .nav-actions { margin-inline-start: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 560px) {
  .nav-actions .social { display: none; }
  .logo-mark { height: 24px; }
}

/* ---------- ridgelines ---------- */
.ridge { display: block; width: 100%; height: clamp(34px, 6vw, 84px); color: var(--olive); margin-bottom: -1px; position: relative; z-index: 1; }
.ridge svg { display: block; width: 100%; height: 100%; }
.ridge.flip { transform: scaleY(-1); margin-top: -1px; margin-bottom: 0; }
.ridge.c-sage { color: var(--sky); }
.ridge.c-stone { color: var(--stone); }
.ridge.c-sand { color: var(--sand); }
.band-olive { background: var(--olive); color: var(--sand); }
.band-sage { background: var(--sky); }
.band-moss { background: var(--sage-tint); }
.band-teal { background: var(--teal); color: var(--paper); }
.ridge.c-teal { color: var(--teal); }
.band-teal .quote-card { background: #176A6B; }
.band-teal .quote-card .q { color: var(--lemon); }
.band-stone { background: var(--stone); }

/* ---------- arch frames ---------- */
.arch { border-radius: var(--r-arch); overflow: hidden; position: relative; background: var(--sage-tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ======================= HOME ======================= */
/* hero: headline + three-print collage on Jerusalem stone */
.hero { position: relative; isolation: isolate; padding-block: clamp(18px, 3vw, 36px) clamp(56px, 7vw, 100px); }
.hero-bg { position: absolute; inset: -120px 0 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0.38; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 239, 230, 0.1) 0%, rgba(255, 239, 230, 0.55) 62%, var(--sand) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
/* hero text block: logo, slogan, paragraph and buttons all centred */
.hero-text { width: fit-content; max-width: 100%; }
.hero-text { justify-items: center; text-align: center; }
.hero-text > #hero-title, .hero-text > .hero-tag { justify-self: center; text-align: center; }
.hero-text .hero-ctas { justify-content: center; }
.hero-kicker { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 2.05rem); color: var(--aqua-ink); line-height: 1.1; }
.hero-word { width: clamp(250px, 36vw, 520px); height: auto; fill: var(--olive); display: block; }
.hero-logo-full { width: clamp(240px, 33vw, 460px); height: auto; fill: var(--teal); display: block; margin-bottom: 6px; }
.hero-tag { font-family: var(--f-script); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; color: var(--clay-ink); margin-top: -4px; }
.hero-sub { max-width: 40ch; font-size: 1.2rem; line-height: 1.75; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.collage { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1 / 0.94; justify-self: end; }
.hero-bg { background: var(--sand); }
.print {
  position: absolute;
  margin: 0;
  background: #FFFCFA;
  padding: 10px 10px 44px;
  border-radius: 4px;
  box-shadow: 0 26px 44px -24px rgba(13, 59, 60, 0.6), 0 2px 6px rgba(13, 59, 60, 0.12);
  transform: rotate(var(--r));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, scale 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), rotate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: drop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.print img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; border-radius: 2px; }
.print figcaption { position: absolute; bottom: 9px; inset-inline: 14px; font-family: var(--f-script); font-size: 1.4rem; line-height: 1; color: var(--olive); }
/* hover: grow 10% and tilt 10deg to the left; stacking order stays as it is */
.print:hover { scale: 1.1; rotate: -10deg; box-shadow: 0 34px 50px -24px rgba(13, 59, 60, 0.65), 0 2px 6px rgba(13, 59, 60, 0.12); }
.p1 { --r: -2.5deg; --ar: 16 / 10; top: 0; left: 9%; width: 76%; z-index: 1; animation-delay: 0.1s; }
.p3 { --r: 3deg; --ar: 4 / 3; bottom: 0; right: -1%; width: 56%; z-index: 2; animation-delay: 0.3s; }
.p2 { --r: -5deg; --ar: 4 / 5; bottom: 7%; left: 0; width: 33%; z-index: 3; animation-delay: 0.5s; }
.p2 img { object-position: 62% center; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--r) * 2.2)) scale(1.04); } to { opacity: 1; transform: rotate(var(--r)); } }

.rise > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise > *:nth-child(2) { animation-delay: 0.12s; }
.rise > *:nth-child(3) { animation-delay: 0.24s; }
.rise > *:nth-child(4) { animation-delay: 0.36s; }
.rise > *:nth-child(5) { animation-delay: 0.48s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* about */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.about-text { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.about-text .lead { font-size: 1.22rem; color: var(--ink); line-height: 1.85; }
.about-media { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.about-media .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-media .inset {
  position: absolute;
  bottom: -30px;
  left: -26px;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--sand);
  box-shadow: var(--shadow);
}
.about-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.badge-spin { position: absolute; top: 18px; left: -36px; width: 128px; height: 128px; }
.badge-spin .ring { animation: spin 48s linear infinite; transform-origin: 50% 50%; }
.badge-spin text { font-family: var(--f-display); font-weight: 900; font-size: 11.4px; fill: var(--olive); direction: ltr; }
@keyframes spin { to { transform: rotate(360deg); } }

/* stats */
.stats-band { padding-block: clamp(40px, 6vw, 72px); }
.stats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 34px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px clamp(14px, 2.4vw, 32px); border-inline-start: 1px solid var(--on-dark-line); display: grid; gap: 6px; align-content: start; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--on-dark-soft); font-size: 1.05rem; }
.c-sage { color: var(--sage); }
.c-clay { color: var(--clay-bright); }
.c-aqua { color: var(--sky); }
.c-sand { color: var(--sand); }

/* studies */
.study-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.study-card {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  text-decoration: none;
}
.study-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s ease; }
.study-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 59, 60, 0.94) 0%, rgba(13, 59, 60, 0.72) 40%, rgba(13, 59, 60, 0.4) 58%, rgba(13, 59, 60, 0.05) 82%); }
.study-card:hover > img { transform: scale(1.05); }
.study-body { padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 12px; justify-items: start; }
.study-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.study-body p { color: var(--on-dark); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 0.35em 0.9em; border-radius: 999px; font-size: 0.9rem; background: rgba(255, 250, 247, 0.14); border: 1px solid rgba(255, 250, 247, 0.24); }
.corner-go {
  position: absolute;
  top: 22px; left: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  transition: transform 0.3s ease;
}
.study-card:hover .corner-go { transform: rotate(-45deg); }

/* activities: 3D ring gallery (drag / arrows / auto-rotate) */
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center .lead { margin-inline: auto; text-wrap: balance; }
.ring-stage {
  --R: 640px;   /* ring radius */
  --D: 610px;   /* camera distance from ring centre */
  --P: 1000px;  /* perspective */
  --cw: calc(var(--R) * 0.3927 - 18px); /* 2πR / 16 cards, minus the gap */
  --ch: calc(var(--cw) * 1.36);
  position: relative;
  height: calc(var(--ch) * 1.42);
  perspective: var(--P);
  perspective-origin: 50% 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.ring-stage.grabbing { cursor: grabbing; }
.ring-stage:focus-visible { -webkit-mask-image: none; mask-image: none; box-shadow: inset 0 0 0 3px var(--teal); border-radius: 26px; }
.ring-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--P) - var(--D))) rotateY(var(--a, 0deg));
}
.ring-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  transform: rotateY(calc(var(--i) * var(--ring-step, 22.5deg))) translateZ(calc(var(--R) * -1)); /* step set by main.js from the card count */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: var(--sand);
  background: var(--olive);
  box-shadow: 0 18px 40px -22px rgba(13, 59, 60, 0.55);
}
.ring-card.arch { border-radius: 999px 999px 22px 22px; }
.ring-card.off { opacity: 0; pointer-events: none; } /* not visibility:hidden: screen readers keep every activity */
.ring-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.ring-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 59, 60, 0.94) 0%, rgba(13, 59, 60, 0.78) 26%, rgba(13, 59, 60, 0.2) 50%, rgba(13, 59, 60, 0) 66%); }
.ring-body { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px 18px; display: grid; gap: 2px; }
.ring-card h3 { font-size: 1.28rem; line-height: 1.15; }
.ring-card p { font-size: 0.92rem; color: var(--on-dark); line-height: 1.4; }
.ring-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: clamp(6px, 1.4vw, 14px); }
.ring-toggle .ic-play, .motion-toggle .ic-play { display: none; }
.ring-toggle[aria-pressed="true"] .ic-play, .motion-toggle[aria-pressed="true"] .ic-play { display: block; }
.ring-toggle[aria-pressed="true"] .ic-pause, .motion-toggle[aria-pressed="true"] .ic-pause { display: none; }
#activities .more-acts { justify-content: center; }
@media (max-width: 1100px) { .ring-stage { --R: 600px; --D: 570px; --P: 900px; } }
.more-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.more-acts > span { font-family: var(--f-display); font-weight: 900; margin-inline-end: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: var(--stone);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--sage)); }
.chip:nth-child(3n+1) { --dot: var(--clay); }
.chip:nth-child(3n+2) { --dot: var(--aqua); }

/* support (maatefet) */
.support-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.support-media { position: relative; }
.support-media .arch { aspect-ratio: 5 / 6; max-width: 480px; box-shadow: var(--shadow); }
.support-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.support-item { background: var(--paper); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); }
.support-item h3 { font-size: 1.2rem; }
.support-item p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.dot-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--c, var(--sage-tint)); color: var(--olive); }

/* carousels */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--col, clamp(210px, 21vw, 250px));
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.car-btns { display: flex; gap: 8px; }
.car-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--olive);
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.car-btn:hover { background: var(--olive); color: var(--sand); }
.on-dark .car-btn { border-color: var(--on-dark-soft); color: var(--sand); }
.on-dark .car-btn:hover { background: var(--sand); color: var(--olive); }

.person { display: grid; gap: 12px; align-content: start; }
.person .arch { aspect-ratio: 3 / 4; background: var(--sage); }
.person .arch img { object-position: center 18%; transition: transform 0.6s ease; }
.person:hover .arch img { transform: scale(1.05); }
.person h3 { font-size: 1.18rem; }
.person p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.4; }
.person .role { display: inline-block; margin-top: 4px; padding: 0.2em 0.75em; border-radius: 999px; background: var(--paper); color: var(--sage-ink); font-size: 0.85rem; border: 1px solid var(--line); }

.quote-card {
  background: var(--olive-2);
  border: 1px solid var(--on-dark-line);
  border-radius: 26px;
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: space-between;
  min-height: 310px;
}
.quote-card .q { width: 38px; height: 30px; color: var(--clay); }
.quote-card blockquote { margin: 0; font-size: 1.1rem; line-height: 1.8; color: rgba(255, 250, 247, 0.92); }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--sage); flex: none; }
.who b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; line-height: 1.3; }
.who span { color: var(--on-dark-soft); font-size: 0.92rem; }

.lesson { display: grid; gap: 12px; text-decoration: none; color: inherit; align-content: start; }
.lesson .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--stone); }
.lesson .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s ease; }
.lesson:hover .thumb img { transform: scale(1.05); }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(198, 95, 51, 0.28);
  transition: transform 0.25s ease;
}
.lesson:hover .play { transform: scale(1.1); }
.lesson h3 { font-size: 1.2rem; }
.lesson p { color: var(--ink-soft); font-size: 0.96rem; }

/* songs */
.songs { --col: clamp(270px, 38vw, 470px); gap: 22px; scroll-snap-type: x proximity; }
.song { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 18px; display: grid; gap: 16px; overflow: hidden; }
.sleeve { position: relative; aspect-ratio: 1; }
.disc {
  position: absolute; top: 5%; left: 5%;
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--c) 0 15%, var(--olive) 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #0A2D2E 0 2px, #134243 2px 4px);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.song:hover .disc { transform: translateX(-24%) rotate(-60deg); }
.cover {
  position: absolute; inset: 0;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 80% 110%, rgba(255, 250, 247, 0.22) 0 22%, transparent 22.5%),
    radial-gradient(circle at 80% 110%, rgba(255, 250, 247, 0.12) 0 38%, transparent 38.5%),
    radial-gradient(circle at 80% 110%, rgba(255, 250, 247, 0.07) 0 54%, transparent 54.5%),
    var(--c);
  color: var(--tc, var(--olive));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.song:hover .cover { transform: translateX(5%); }
.cover strong { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; padding: 0 12px; }
.cover small { position: absolute; bottom: 14px; inset-inline: 0; font-size: 0.8rem; opacity: 0.85; }
.song-meta { display: flex; align-items: center; gap: 12px; }
.song-meta h3 { font-size: 1.2rem; }
.song-meta small { color: var(--ink-soft); font-size: 0.88rem; }
.song-play {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--olive); color: var(--sand);
  border: 0; cursor: pointer;
  transition: background-color 0.2s ease;
}
.song-play:hover { background: var(--aqua-ink); }
.song-meta .text-link { margin-inline-start: auto; font-size: 0.92rem; }
@media (max-width: 560px) { .songs { --col: 80vw; } .song-meta .text-link { font-size: 0; gap: 0; } .song-meta .text-link .ic { width: 22px; height: 22px; } }

/* contact */
.contact-photo { height: clamp(220px, 30vw, 380px); border-radius: 32px; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; margin-top: clamp(-150px, -12vw, -60px); position: relative; padding-inline: clamp(0px, 3vw, 40px); }
.form-card { background: var(--olive); color: var(--sand); border-radius: 30px; padding: clamp(24px, 4vw, 46px); display: grid; gap: 22px; box-shadow: var(--shadow); }
.form-card .h2 { color: var(--sand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; color: var(--on-dark-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 250, 247, 0.08);
  border: 1.5px solid rgba(255, 250, 247, 0.2);
  border-radius: 14px;
  padding: 0.85em 1em;
  color: var(--sand);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 250, 247, 0.45); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); background: rgba(255, 250, 247, 0.13); }
.field select option { color: var(--olive); }
.field.invalid input { border-color: var(--clay); }
.form-note { min-height: 1.5em; font-size: 0.98rem; color: var(--sage); }
.side { display: grid; gap: 20px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.3rem; }
.info-row { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.info-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--aqua-tint); color: var(--aqua-ink); flex: none; }
.info-row small { display: block; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.3; }
.info-row b { font-family: var(--f-display); font-weight: 900; font-size: 1.08rem; }
.news-card { background: var(--clay-tint); border-radius: 26px; padding: 26px; display: grid; gap: 12px; }
.news-card h3 { font-size: 1.3rem; color: var(--olive); }
.news-card p { color: var(--ink-soft); }
.news-form { display: flex; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.news-form input { flex: 1 1 0; width: 0; min-width: 0; border: 0; background: transparent; padding: 0 14px; color: var(--olive); }
.contact-grid > * { min-width: 0; }
.news-form input:focus { outline: none; }
.news-form input::placeholder { color: rgba(13, 59, 60, 0.7); }
.news-form:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53, 159, 160, 0.2); }
.news-note { font-size: 0.95rem; color: var(--aqua-ink); min-height: 1.4em; }

/* footer */
.site-footer { background: var(--olive); color: var(--sand); padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.3fr; gap: 36px; }
.foot-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.foot-logo { width: 150px; height: auto; fill: var(--sand); }
.foot-brand .script { color: var(--lemon); }
.foot-brand p { color: var(--on-dark-soft); font-size: 0.98rem; max-width: 40ch; }
.foot-col h3 { font-size: 1.05rem; color: var(--sage); margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--on-dark-soft); text-decoration: none; }
.foot-col a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
.foot-news p { color: var(--on-dark-soft); font-size: 0.98rem; margin-bottom: 14px; }
.foot-news .news-form { background: rgba(255, 250, 247, 0.08); border-color: var(--on-dark-line); }
.foot-news .news-form input { color: var(--sand); }
.foot-news .news-form input::placeholder { color: rgba(255, 250, 247, 0.7); }
.foot-news .news-note { color: var(--sage); }
.foot-social { display: flex; gap: 8px; margin-top: 16px; }
.foot-social .icon-btn { color: var(--sand); border-color: var(--on-dark-line); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 0.9rem; color: var(--on-dark-soft); }
.foot-bottom nav { display: flex; gap: 18px; }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--sand); }
.pill-draft { background: var(--clay); color: var(--paper); border-radius: 999px; padding: 0.3em 0.95em; font-family: var(--f-display); font-weight: 900; font-size: 0.85rem; }

/* ======================= KODESH ======================= */
.k-hero { position: relative; border-radius: 34px; overflow: hidden; isolation: isolate; background: var(--sky); }
.k-hero > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.45; mix-blend-mode: multiply; }
.k-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(28px, 5vw, 64px); padding-bottom: 0; }
.k-hero-text { display: grid; gap: 18px; justify-items: start; padding-bottom: clamp(28px, 5vw, 64px); min-width: 0; }
.k-hero-media .arch { aspect-ratio: 4 / 4.4; border-radius: 999px 999px 0 0; box-shadow: var(--shadow); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.45em 1em; border-radius: 999px; background: rgba(255, 250, 247, 0.85); border: 1px solid var(--line); text-decoration: none; font-size: 0.95rem; transition: background-color 0.2s ease, color 0.2s ease; }
.jump a:hover { background: var(--olive); color: var(--sand); }

.seder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.seder.rev .seder-media { order: 2; }
.seder-media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.seder-media .sun { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--sage)); top: -6%; left: -8%; z-index: -1; }
.seder.rev .seder-media .sun { left: auto; right: -8%; }
.seder-media .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.seder-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.seder-text p { font-size: 1.14rem; line-height: 1.85; color: var(--ink-soft); max-width: 54ch; }
.tracks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tracks li { padding: 0.4em 1em; border-radius: 999px; background: var(--sage-tint); color: var(--sage-ink); font-size: 0.95rem; }
.isolate { isolation: isolate; }

.marquee-zone { overflow: hidden; padding-block: 34px; display: grid; gap: 0; }
.marquee { transform: rotate(-2deg); margin-inline: -4%; background: var(--clay); color: var(--paper); padding-block: 14px; overflow: hidden; }
.marquee.alt { transform: rotate(1.6deg); background: var(--sage); color: var(--olive); margin-top: -6px; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee.alt .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee-track span { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 2.1rem); white-space: nowrap; padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 14px; margin-bottom: 26px; }
.week-span { grid-column: 1 / -1; background: var(--aqua-tint); color: var(--aqua-ink); border-radius: 14px; padding: 8px 14px; text-align: center; font-size: 0.95rem; }
.week-span b { font-family: var(--f-display); }
.day { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 4px; border-radius: 16px; text-align: center; }
.day b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.day small { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; min-height: 2.6em; }
.day.hl { background: var(--c); }
.day.hl b { color: var(--olive); }
.day.hl small { color: var(--olive); font-family: var(--f-display); font-weight: 900; }
.init-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.init { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.init .when { justify-self: start; padding: 0.25em 0.8em; border-radius: 999px; font-size: 0.85rem; background: var(--c, var(--sage-tint)); color: var(--olive); }
.init h3 { font-size: 1.32rem; }
.init p { color: var(--ink-soft); line-height: 1.65; }
.init.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 0; overflow: hidden; }
.init.wide .init-in { padding: 24px; display: grid; gap: 10px; justify-items: start; }
.init.wide img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

.cta-card { position: relative; border-radius: 34px; overflow: hidden; isolation: isolate; color: var(--sand); display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; background: var(--olive); }
.cta-card .cta-in { padding: clamp(28px, 5vw, 60px); display: grid; gap: 16px; justify-items: start; align-content: center; }
.cta-card .cta-in .h2 { color: var(--sand); }
.cta-card .cta-in p { color: var(--on-dark-soft); max-width: 46ch; }
.cta-card .cta-img { position: relative; min-height: 300px; }
.cta-card .cta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-card .cta-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, var(--olive) 0%, rgba(13, 59, 60, 0) 40%); }

/* ======================= REGISTER ======================= */
.r-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.r-hero-text { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.r-hero-media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.r-hero-media .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.r-hero-media .arch img { object-position: 48% center; }
.r-hero-media .stamp {
  position: absolute; bottom: 26px; right: -30px;
  background: var(--paper); border-radius: 20px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; border: 1px solid var(--line);
}
.stamp b { display: block; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; }
.stamp small { color: var(--ink-soft); font-size: 0.86rem; }
.stamp .dot-ic { --c: var(--clay-tint); color: var(--clay-ink); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill-row li { padding: 0.4em 1em; border-radius: 999px; border: 1.5px solid var(--sage); color: var(--sage-ink); font-size: 0.95rem; background: var(--paper); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 31px; inset-inline: 6% 12%; border-top: 2px dashed var(--sage); }
.step { position: relative; display: grid; gap: 10px; justify-items: start; align-content: start; }
.step-num { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--sage); font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--olive); position: relative; z-index: 1; }
.step:last-child .step-num { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-soft); line-height: 1.6; }

.dates-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; align-items: start; }
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 1.3rem; }
.cal-head .car-btn { width: 40px; height: 40px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-dow { font-size: 0.85rem; color: var(--ink-soft); padding-block: 6px; font-family: var(--f-display); font-weight: 900; }
.cal-day { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 0; background: transparent; color: var(--ink); position: relative; padding: 0; font-size: 0.98rem; }
.cal-day.ev { background: var(--sage-tint); font-family: var(--f-display); font-weight: 900; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.cal-day.ev::after { content: ""; position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ec, var(--aqua)); }
.cal-day.ev:hover { transform: scale(1.06); }
.cal-day.sel { background: var(--clay); color: var(--paper); }
.cal-day.sel::after { background: var(--paper); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 0.86rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ec); }
.ev-open { --ec: var(--aqua); --et: var(--aqua-tint); }
.ev-shabbat { --ec: var(--clay); --et: var(--clay-tint); }
.ev-interview { --ec: var(--sage-ink); --et: var(--sage-tint); }

.events { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--line); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.event.sel { border-color: var(--clay); box-shadow: 0 0 0 4px rgba(198, 95, 51, 0.16); }
.ev-date { width: 68px; text-align: center; border-radius: 16px; background: var(--et); padding: 8px 4px; line-height: 1.2; }
.ev-date b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--olive); }
.ev-date small { font-size: 0.82rem; color: var(--olive); }
.ev-type { font-size: 0.82rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.ev-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ec); }
.ev-info h3 { font-size: 1.12rem; margin-block: 2px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: 0.9rem; }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ev-meta .ic { width: 15px; height: 15px; }
.event .btn[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--paper); }

.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc { background: var(--stone); border-radius: 24px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.doc .dot-ic { width: 56px; height: 56px; }
.doc .dot-ic svg { width: 28px; height: 28px; fill: currentColor; }
.dot-ic .ic-img { width: 28px; height: 28px; object-fit: contain; } /* icon uploaded in the panel */
.doc h3 { font-size: 1.2rem; }
.doc p { color: var(--ink-soft); font-size: 0.98rem; }

.reg-card { position: relative; background: var(--olive); color: var(--sand); border-radius: 34px; padding: clamp(24px, 5vw, 58px); overflow: hidden; isolation: isolate; }
.reg-card > .tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.07; z-index: -1; mix-blend-mode: luminosity; }
.reg-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.reg-top > div { display: grid; gap: 6px; }
.stepper { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-soft); font-size: 0.95rem; }
.stepper li b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--on-dark-line); font-family: var(--f-display); }
.stepper li.on { color: var(--sand); }
.stepper li.on b { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.stepper .bar { width: 46px; height: 2px; background: var(--on-dark-line); border-radius: 2px; }
.stepper .bar.on { background: var(--clay); }
.chosen { display: flex; align-items: center; gap: 14px; border: 1.5px dashed rgba(255, 250, 247, 0.32); border-radius: 16px; padding: 14px 16px; }
.chosen .dot-ic { --c: rgba(255, 250, 247, 0.1); color: var(--sage); width: 44px; height: 44px; flex: none; }
.chosen small { display: block; font-size: 0.85rem; color: var(--on-dark-soft); }
.chosen b { font-family: var(--f-display); font-weight: 900; }
.chosen.set { border-style: solid; border-color: var(--sage); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px dashed rgba(255, 250, 247, 0.32); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; min-width: 0; }
.upload:hover { border-color: var(--sage); background: rgba(255, 250, 247, 0.05); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--aqua); outline-offset: 2px; }
.upload .dot-ic { --c: rgba(255, 250, 247, 0.1); color: var(--sage); flex: none; }
.upload .dot-ic svg { width: 24px; height: 24px; fill: currentColor; }
.upload b { display: block; font-family: var(--f-display); font-weight: 900; }
.upload small { display: block; color: var(--on-dark-soft); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload.done { border-style: solid; border-color: var(--sage); }
.upload.done small { color: var(--sage); }
.success { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 28px; }
.success .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--sage); color: var(--olive); display: grid; place-items: center; }
.success p { color: var(--on-dark-soft); max-width: 44ch; }

.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-family: var(--f-display); font-weight: 900; font-size: 1.16rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-tint); color: var(--olive); display: grid; place-items: center; flex: none; transition: transform 0.25s ease, background-color 0.25s ease; }
.faq-list details[open] .plus { transform: rotate(45deg); background: var(--clay); color: var(--paper); }
.faq-list details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 60ch; }
.contact-person { position: relative; border-radius: 28px; overflow: hidden; background: var(--olive); color: var(--sand); margin-top: 28px; }
.contact-person .cp-img { height: 170px; }
.contact-person .cp-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact-person .cp-in { padding: 22px 24px 26px; display: grid; gap: 8px; justify-items: start; }
.contact-person h3 { font-size: 1.6rem; }
.contact-person p { color: var(--on-dark-soft); display: inline-flex; align-items: center; gap: 8px; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.phone-big { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--sand); text-decoration: none; }
.copy-btn { border: 1.5px solid var(--on-dark-line); background: transparent; color: var(--sand); border-radius: 999px; padding: 0.4em 0.9em; font-size: 0.88rem; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 250, 247, 0.1); }

/* about: promo video */
.about-media.video { max-width: 640px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--olive); box-shadow: var(--shadow); }
.video-frame video, .video-frame .video-poster, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; background: var(--olive); }
.video-yt-link { margin-top: 14px; color: var(--olive); font-size: 0.95rem; }
.video-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(13, 59, 60, 0.9) 0%, rgba(13, 59, 60, 0.64) 32%, rgba(13, 59, 60, 0.12) 62%, rgba(13, 59, 60, 0) 100%);
}
.vp-ic { width: clamp(64px, 7vw, 86px); aspect-ratio: 1; border-radius: 50%; background: var(--clay); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(169, 71, 31, 0.7); transition: transform 0.25s ease; }
.vp-ic svg { width: 42%; height: 42%; fill: currentColor; margin-left: 8%; }
.video-play:hover .vp-ic, .video-play:focus-visible .vp-ic { transform: scale(1.08); }
.vp-label { position: absolute; bottom: clamp(14px, 2vw, 22px); right: clamp(16px, 2.2vw, 26px); display: grid; gap: 2px; text-align: right; font-family: var(--f-display); font-weight: 900; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.vp-label small { font-family: var(--f-body); font-weight: 400; font-size: 0.86rem; color: var(--on-dark); }
.video-frame.playing .video-play { display: none; }
/* the badge sits behind the video and turns slowly; its centre (ישל״צ) stays above the frame */
.about-media.video { isolation: isolate; }
.about-media.video .video-frame { z-index: 1; }
.about-media.video .badge-spin { top: -76px; left: -36px; width: 118px; height: 118px; z-index: 0; }
@media (min-width: 981px) {
  .about-grid.has-video { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* hero logo: 30% smaller on desktop */
@media (min-width: 981px) {
  .hero-logo-full { width: clamp(168px, 23.1vw, 322px); }
}

/* studies page: part A (kodesh) / part B (chol) */
.part-in { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 36px); }
.part-num {
  flex: none;
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1;
  border-radius: 999px 999px 18px 18px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; line-height: 1;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  background: var(--aqua); color: var(--paper);
  padding-top: 0.18em;
}
.chol .part-num { background: var(--sage); color: var(--olive); }
.part-text { display: grid; gap: 8px; min-width: 0; max-width: 720px; }
.jump li.main a { background: var(--teal); color: var(--paper); border-color: transparent; }
.jump li.main.alt a { background: var(--clay); }
.jump li.main a:hover { background: var(--olive); }

@media (max-width: 980px) { .about-media.video { margin-top: 44px; } .about-media.video .badge-spin { top: -59px; left: -14px; width: 90px; height: 90px; } }
@media (max-width: 560px) { .about-media.video { margin-top: 40px; } .about-media.video .badge-spin { width: 77px; height: 77px; top: -52px; left: -12px; } }
.band-green { background: var(--sage); }
.band-green .script { color: var(--olive); }
.band-green .lead { color: var(--olive); }
.band-green .car-btn:hover { background: var(--olive); color: var(--sage); }
.chol .part-num { background: var(--olive); color: var(--lemon); }
.part-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.part-row .part-in { flex: 1 1 520px; min-width: 0; }
.feat-car { display: flex; gap: 22px; }
.feat { flex: 0 0 min(580px, 86vw); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 320px; border-radius: 26px; overflow: hidden; background: var(--olive); box-shadow: 0 22px 40px -28px rgba(13, 59, 60, 0.7); }
.feat-panel { background: var(--olive); color: var(--paper); padding: clamp(22px, 2.6vw, 32px); display: grid; align-content: space-between; gap: 14px; }
.feat-panel h3 { font-size: clamp(1.7rem, 2.5vw, 2.25rem); line-height: 1.02; color: var(--lemon); }
.feat-panel p { color: var(--on-dark-soft); font-size: 0.98rem; line-height: 1.6; }
.feat-img { position: relative; min-height: 220px; }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-stat { flex-basis: min(320px, 78vw); grid-template-columns: 1fr; background: var(--clay-btn); }
.feat-stat .feat-panel { background: var(--clay-btn); align-content: center; text-align: center; justify-items: center; }
.feat-stat h3 { color: var(--paper); font-size: clamp(1.4rem, 2vw, 1.7rem); }
.feat-stat p { color: var(--paper); }
.kodesh .car-btn:hover { background: var(--olive); color: var(--sky); }
.feat.wide { flex-basis: min(680px, 88vw); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: 400px; }
.feat-top { display: grid; gap: 10px; }
.feat-kicker { font-family: var(--f-script); font-size: 1.4rem; line-height: 1.1; color: var(--sky); }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.feat-tags li { font-size: 0.82rem; padding: 0.3em 0.85em; border-radius: 999px; border: 1px solid var(--on-dark-line); color: var(--on-dark-soft); }
.feat-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 9vw, 7rem); line-height: 0.85; color: var(--lemon); }
@media (max-width: 560px) {
  .feat { grid-template-columns: 1fr; grid-template-rows: 190px auto; min-height: 0; }
  .feat-img { order: -1; min-height: 0; }
  .feat-panel { align-content: start; }
  .feat-stat { grid-template-rows: auto; }
  .feat.wide { grid-template-columns: 1fr; min-height: 0; }
  .part-in { gap: 14px; }
}

/* ======================= responsive ======================= */
@media (max-width: 980px) {
  .about-grid, .support-grid, .seder-grid, .r-hero-grid, .faq-grid, .k-hero-grid, .hero-grid { grid-template-columns: 1fr; }
  .collage { justify-self: center; max-width: 600px; }
  .seder.rev .seder-media { order: 0; }
  .about-media { max-width: 420px; }
  .study-grid { grid-template-columns: 1fr; }
  .study-card { min-height: 380px; }
  .contact-grid { grid-template-columns: 1fr; padding-inline: 0; margin-top: -60px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dates-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .init-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-hero-media { max-width: 420px; justify-self: center; width: 100%; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .cta-img { min-height: 240px; order: -1; }
  .cta-card .cta-img::before { background: linear-gradient(0deg, var(--olive) 0%, rgba(13, 59, 60, 0) 50%); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 760px) {
  .ring-stage { --R: 540px; --D: 520px; --P: 760px; height: calc(var(--ch) * 1.1); }
  .ring-card h3 { font-size: 1.12rem; }
  .ring-card p { font-size: 0.84rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .steps::before { display: none; }
  .support-list { grid-template-columns: 1fr; }
  .uploads { grid-template-columns: 1fr; }
  .init.wide { grid-template-columns: 1fr; }
  .r-hero-media .stamp { right: 10px; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .init-grid { grid-template-columns: 1fr; }
  .init.wide { grid-column: auto; }
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event .btn { grid-column: 1 / -1; }
  .about-media .inset { left: -8px; }
  .badge-spin { left: -10px; width: 104px; height: 104px; }
  .week { gap: 4px; padding: 10px; }
  .day small { font-size: 0.7rem; }
  .print { padding: 7px 7px 34px; }
  .print figcaption { font-size: 1.1rem; bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ======================= home: Figma round 1 (sections 1-4) ======================= */
:root { --wall: #176A6B; }

/* fortress wall: "לגדול מתוך אחריות" */
.wall-band { background: var(--wall); color: var(--paper); z-index: 2; padding-block: clamp(36px, 5vw, 72px) clamp(110px, 12vw, 180px); }
.wall-top { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(26px, 4vw, 60px); display: block; fill: var(--wall); pointer-events: none; }
.wall-band .mark { color: #FFF0C5; }
.wall-band .h2 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); }
.wall-top { overflow: visible; }
.wall-band .about-text .lead { color: var(--on-dark-soft); }
.wall-band .about-text .lead b { color: var(--paper); font-weight: 700; }
.wall-band .vp-ic { background: var(--sky); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); }
.wall-band .video-yt-link { color: var(--sand); }

/* torn-paper numbers band */
.torn-band { position: relative; z-index: 3; background: var(--olive); color: var(--sand); margin-top: calc(-1 * clamp(48px, 6vw, 90px)); padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px); }
.torn-edge { position: absolute; left: 0; width: 100%; display: block; fill: var(--olive); pointer-events: none; }
.torn-edge.top { bottom: calc(100% - 1px); height: max(22px, 3.8vw); }
.torn-edge.bottom { top: calc(100% - 1px); height: max(16px, 2.8vw); }
.stat-pre { display: block; }
.stat { transition: transform 0.3s ease; }
.stat:hover { transform: translateY(-4px); }

/* activities: palm, dove and the clay ground line */
#activities { z-index: 2; padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(clamp(64px, 9vw, 120px) + 4vw); }
#activities > .wrap, #activities > .ring-stage { position: relative; z-index: 1; }
/* palm base sits exactly on the ground line (Figma: 1.3 units into the clay) */
.deco-palm { position: absolute; z-index: 0; left: 0.387vw; bottom: 1.859vw; width: min(36.14vw, 600px); height: auto; pointer-events: none; }
.acts-head { position: relative; }
.deco-bird { position: absolute; top: calc(-1 * clamp(44px, 5.8vw, 88px)); inset-inline-start: clamp(24px, 6vw, 93px); width: clamp(46px, 5.5vw, 82px); height: auto; pointer-events: none; animation: bird-float 6s ease-in-out infinite; }
@keyframes bird-float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-6px, -10px) rotate(-5deg); } }
.ground-strip { position: absolute; left: 0; bottom: -2.202vw; width: 100%; height: 9.585vw; display: block; fill: var(--clay); z-index: 3; pointer-events: none; }
@media (min-width: 981px) { #activities .acts-head { margin-inline-start: 0; margin-inline-end: auto; } }

/* support (המעטפת): green gradient, masonry cards */
#maatefet { background: linear-gradient(180deg, #E1F1CF 0%, #AACD80 100%); padding-top: calc(clamp(64px, 9vw, 120px) + 2vw); }
.support-list { display: block; columns: 2; column-gap: 16px; }
.support-item { break-inside: avoid; margin-bottom: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.support-item:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -20px rgba(13, 59, 60, 0.5); }
@media (max-width: 760px) { .support-list { columns: 1; } }

/* staff: aqua gradient */
#staff { background: linear-gradient(180deg, #88D5D0 0%, #35A39C 100%); padding-bottom: calc(clamp(64px, 9vw, 120px) + 12vw); }

/* alumni: dark band with a hill top and the learning student */
.alumni-sec { background: var(--olive); color: var(--paper); z-index: 2; padding-block: clamp(32px, 4vw, 60px) clamp(64px, 8vw, 110px); }
.hill-top { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 6.26vw; pointer-events: none; }
.hill-top svg { display: block; width: 100%; height: 100%; fill: var(--olive); overflow: visible; }
/* student stands on the flat part of the hill, feet set into the dark ground as in Figma */
.deco-student { position: absolute; left: 12.2%; bottom: -9.4%; width: 10.11vw; height: auto; }
.alumni-sec .quote-card { background: var(--wall); transition: transform 0.3s ease, border-color 0.3s ease; }
.alumni-sec .quote-card .q { color: var(--lemon); }
.alumni-sec .quote-card:hover { transform: translateY(-4px); border-color: rgba(255, 250, 247, 0.32); }

/* scroll reveal (JS adds .reveal-on) */
.reveal-on [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.reveal-on [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .deco-bird { animation: none; } }
.figma-capture [data-reveal] { opacity: 1 !important; translate: none !important; }

/* ======================= home: Figma round 1 (section 5) ======================= */
#contact { z-index: 2; padding-top: clamp(40px, 6vw, 90px); background: linear-gradient(180deg, var(--stone) 0, var(--stone) calc(clamp(40px, 6vw, 90px) + clamp(90px, 12vw, 170px)), transparent 0); }
.contact-photo { height: clamp(240px, 36vw, 520px); }
.news-card { background: var(--sky); }
.news-card p { color: var(--ink); }
.flags-cut { position: relative; z-index: 1; margin-top: -2vw; margin-bottom: -13.4vw; line-height: 0; pointer-events: none; }
.flags-cut img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 849; } /* same frame whichever srcset size loads */
.site-footer { position: relative; z-index: 2; background: #1B4545; }

/* ======================= alumni: expanding testimonial carousel ======================= */
.tcar { position: relative; outline: none; --ease: cubic-bezier(0.22, 0.7, 0.18, 1); }
.tcar:focus-visible { box-shadow: 0 0 0 3px var(--lemon); border-radius: 30px; }
.tcar-track { display: flex; justify-content: center; align-items: center; gap: 14px; height: clamp(380px, 31vw, 450px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tcard { --w: 0px; --h: 0px; flex: none; width: var(--w); height: var(--h); display: flex; gap: 10px; padding: 8px; background: var(--paper); border-radius: 26px; overflow: hidden; cursor: pointer; box-shadow: 0 24px 44px -28px rgba(0, 0, 0, 0.7); transition: width 0.7s var(--ease), height 0.7s var(--ease), opacity 0.45s ease, padding 0.7s var(--ease), margin 0.7s var(--ease), transform 0.3s ease; }
.tcard[data-pos="-2"], .tcard[data-pos="2"] { --w: 78px; --h: 214px; }
.tcard[data-pos="-1"], .tcard[data-pos="1"] { --w: 108px; --h: 304px; }
.tcard[data-pos="-1"]:hover, .tcard[data-pos="1"]:hover, .tcard[data-pos="-2"]:hover, .tcard[data-pos="2"]:hover { transform: translateY(-6px); }
.tcard[data-pos="0"] { --w: min(720px, 60vw); --h: 100%; cursor: default; }
.tcard[data-pos="out"] { --w: 0px; --h: 0px; padding: 0; opacity: 0; margin-inline: -7px; pointer-events: none; }
.tcard-text { flex: 0 0 0%; width: 0; min-width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 0; color: var(--olive); transition: flex-basis 0.7s var(--ease), opacity 0.25s ease, padding 0.7s var(--ease); }
.tcard.is-active .tcard-text { flex-basis: 50%; opacity: 1; padding: 20px 18px; transition: flex-basis 0.7s var(--ease), opacity 0.5s ease 0.38s, padding 0.7s var(--ease); }
.tcard-head { font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.08; color: var(--olive); min-width: 12ch; }
.tcard-role { font-family: var(--f-script); font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.1; color: var(--clay-ink); min-width: 12ch; }
.tcard-text blockquote { margin-top: 8px; }
.tcard-tag { margin-top: 6px; font-size: 0.8rem; padding: 0.28em 0.75em; border-radius: 8px; background: var(--stone); color: var(--ink-soft); white-space: nowrap; }
.tcard blockquote { margin: 0; font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.7; color: var(--ink); min-width: 22ch; }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tcard-tags span { font-size: 0.8rem; padding: 0.28em 0.7em; border-radius: 8px; background: var(--stone); color: var(--ink-soft); white-space: nowrap; }
.tcard-tags span:first-child { background: var(--sage-tint); color: var(--olive); font-weight: 700; }
.tcard-img { flex: 1 1 auto; min-width: 0; border-radius: 19px; overflow: hidden; background: var(--olive-2); }
.tcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tcard.is-active .tcard-img img { transform: scale(1.03); }
.tcar-dots { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: clamp(22px, 3vw, 34px); }
.tdot { position: relative; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 250, 247, 0.38); cursor: pointer; overflow: hidden; transition: width 0.45s var(--ease), background-color 0.3s ease; }
.tdot:hover { background: rgba(255, 250, 247, 0.55); }
.tdot.on { width: 58px; }
.tdot i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--lemon); }
.tdot.on i { animation: tprog var(--tdur, 6.5s) linear forwards; }
.tcar.is-paused .tdot.on i { animation-play-state: paused; }
.tcar.no-auto .tdot.on i { animation: none; width: 100%; }
@keyframes tprog { from { width: 0; } to { width: 100%; } }
@media (max-width: 980px) {
  .tcard[data-pos="-2"], .tcard[data-pos="2"] { --w: 0px; --h: 0px; padding: 0; opacity: 0; margin-inline: -7px; }
  .tcard[data-pos="-1"], .tcard[data-pos="1"] { --w: 74px; --h: 250px; }
  .tcard[data-pos="0"] { --w: calc(100% - 176px); }
}
@media (max-width: 640px) {
  .tcar-track { height: auto; align-items: stretch; }
  .tcard[data-pos="-1"], .tcard[data-pos="1"] { --w: 0px; --h: 0px; padding: 0; opacity: 0; margin-inline: -7px; }
  .tcard[data-pos="0"] { --w: 100%; --h: auto; min-height: 512px; flex-direction: column-reverse; justify-content: flex-end; }
  .tcard-img { flex: none; height: 240px; }
  .tcard.is-active .tcard-text { flex-basis: auto; width: auto; padding: 18px 14px 14px; }
  .tcard-head, .tcard-role, .tcard blockquote { min-width: 0; }
}

/* muted looping video inside an arch (המעטפת) */
.arch .arch-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--olive-2); }

/* ======================= register page: home-style round ======================= */
.r-hero { position: relative; isolation: isolate; }
.r-hero-media { isolation: isolate; }
.r-scrap { position: absolute; z-index: -1; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(13, 59, 60, 0.18)); }
.r-scrap.s-tall { inset-inline-end: -13%; top: 10%; width: 68%; height: 82%; fill: var(--sky); rotate: -7deg; }
.r-scrap.s-small { inset-inline-start: -9%; top: -5%; width: 38%; height: 20%; fill: var(--clay); rotate: 8deg; }
.steps-band { margin-block: max(22px, 3.8vw) max(16px, 2.8vw); padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5.5vw, 70px); }
.steps-band .script { color: var(--lemon); }
.steps-band .steps::before { border-top-color: rgba(255, 250, 247, 0.28); }
.steps-band .step h3 { color: var(--on-dark); }
.steps-band .step p { color: var(--on-dark-soft); }
.steps-band .step-num { border: 0; color: var(--olive); background: var(--sage); }
.steps-band .step:nth-child(2) .step-num { background: var(--clay-bright); }
.steps-band .step:nth-child(3) .step-num { background: var(--sky); }
.steps-band .step:nth-child(4) .step-num { background: var(--lemon); color: var(--olive); }
.docs .torn-doc { position: relative; isolation: isolate; background: none; padding: 30px 26px; rotate: var(--r, 0deg); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), rotate 0.35s ease, transform 0.35s ease; }
.torn-doc .doc-paper { position: absolute; left: -6px; top: -5px; width: calc(100% + 12px); height: calc(100% + 10px); z-index: -1; fill: var(--c); filter: drop-shadow(0 12px 16px rgba(13, 59, 60, 0.16)); }
.docs .torn-doc:hover { rotate: 0deg; transform: translateY(-5px); }
.faq-edge { fill: var(--stone); }
.faq-sec { margin-top: max(22px, 3.8vw); }
@media (max-width: 760px) {
  .r-scrap.s-tall { inset-inline-end: -6%; }
  .r-scrap.s-small { inset-inline-start: -4%; }
}

/* registration: embedded Google Form */
.gform-wrap { margin-top: clamp(18px, 3vw, 30px); background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.6); }
/* 40% of the screen height; the form scrolls inside its own frame */
.gform-wrap iframe { display: block; width: 100%; height: 40vh; height: 40dvh; min-height: 300px; border: 0; background: var(--paper); }
.gform-alt { margin-top: 14px; font-size: 0.92rem; color: var(--on-dark-soft); text-align: center; }
.gform-alt a { color: var(--lemon); font-weight: 700; }
@media (max-width: 640px) { .gform-wrap { border-radius: 18px; } #register-form .reg-card { padding: 24px 12px 20px; } #register-form .reg-top { padding-inline: 8px; } }

/* stats: animated Lottie icons above the numbers (they pop in when the band scrolls into view) */
.stat-icon { --ic: clamp(70px, 7vw, 104px); display: block; width: var(--ic); height: var(--ic); margin-inline-start: calc(var(--ic) * -0.085); margin-bottom: 4px; }
.stat-icon svg { display: block; overflow: visible; }
/* two-column stats (tablet / mobile): everything centred in its column */
@media (max-width: 980px) {
  .stats-head { justify-content: center; text-align: center; }
  .stat, .stat:first-child, .stat:nth-child(3) { padding-inline: clamp(8px, 2vw, 16px); justify-items: center; text-align: center; }
  .stat-icon { margin-inline: 0; }
}

/* ======================= register page: Figma round 2 ======================= */
/* section scripts follow the Figma text style (46.4px at 1425px) on the home, limudim and register pages;
   `main` keeps the small footer tagline out of it */
:is([data-page="home"], [data-page="limudim"], [data-page="register"]) main .script { font-size: clamp(1.75rem, 3.26vw, 2.9rem); line-height: 1; }

/* hero: a 1425 x 720 composition measured from Figma. 1u = one Figma pixel, so
   everything keeps its exact place as the screen narrows (capped at 1600px wide) */
.rh { position: relative; background: var(--sand); container-type: inline-size; }
.rh > * { --u: calc(min(100cqw, 1600px) / 1425); }
.rh-stage { position: relative; width: calc(1425 * var(--u)); height: calc(720 * var(--u)); margin-inline: auto; }
.rh-line { position: absolute; left: 50%; top: calc(7.8 * var(--u)); width: 2px; height: calc(118 * var(--u)); translate: -50% 0; background: var(--olive); transform-origin: top; }
.rh-head { position: absolute; left: 50%; top: calc(135.8 * var(--u)); translate: -50% 0; display: grid; justify-items: center; text-align: center; white-space: nowrap; }
[data-page="register"] .rh-head .script { font-size: calc(46.4 * var(--u)); line-height: 1; margin-bottom: calc(-10.05 * var(--u)); }
.rh-title { font-size: calc(52.8 * var(--u)); line-height: 1.12; color: var(--olive); }
.rh-card { position: absolute; top: calc(171.8 * var(--u)); width: calc(400 * var(--u)); height: calc(438 * var(--u)); display: block; color: inherit; text-decoration: none; }
.rh-card--parents { left: calc(960.5 * var(--u)); }
.rh-card--students { left: calc(66.5 * var(--u)); }
.rh-photo { position: absolute; inset: 0; border-radius: calc(72 * var(--u)); overflow: hidden; background: #D9D9D9; box-shadow: 0 22px 44px -30px rgba(13, 59, 60, 0.5); }
.rh-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rh-card--parents .rh-photo img { object-position: 50% 45%; }
.rh-card--students .rh-photo img { object-position: 44% 50%; }
.rh-badge { --d: calc(200 * var(--u)); position: absolute; width: var(--d); height: var(--d); border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; rotate: var(--rot); transition: rotate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rh-badge > span { font-family: var(--f-display); font-weight: 900; font-size: calc(24 * var(--u)); line-height: 1.7; color: #000; text-align: center; white-space: nowrap; translate: 0 calc(-4.5 * var(--u)); }
/* badge centres, measured from the card's top-left corner */
.rh-card--parents .rh-badge { left: calc(296 * var(--u) - var(--d) / 2); top: calc(-5 * var(--u) - var(--d) / 2); }
.rh-card--students .rh-badge { left: calc(151.2 * var(--u) - var(--d) / 2); top: calc(0.2 * var(--u) - var(--d) / 2); }
.rh-card:hover .rh-photo img, .rh-card:focus-visible .rh-photo img { scale: 1.05; }
.rh-card:hover .rh-badge, .rh-card:focus-visible .rh-badge { rotate: calc(var(--rot) * 1.9); scale: 1.06; }
.rh-card:focus-visible { outline: none; }
.rh-card:focus-visible .rh-photo { outline: 3px solid var(--clay); outline-offset: 4px; }

/* the shoreline: the dark line + the turquoise sea of the form section, and the student standing on it */
.rh-ground { --wh: calc(120 * var(--u)); --sh: calc(361 * var(--u)); position: absolute; left: 0; right: 0; bottom: 0; height: var(--wh); pointer-events: none; }
/* a sliver of sea under the seam, so no hairline shows between the hero and the form section */
.rh-ground::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--teal); }
.rh-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rh-sea { fill: var(--teal); }
.rh-shore { fill: var(--olive); }
/* feet meet the line: the joint sits 27.99% up the wave strip and 6.2% up the figure */
.rh-student { position: absolute; left: calc(50% - 115 * var(--u)); height: var(--sh); width: auto; bottom: calc(var(--wh) * 0.27992 - var(--sh) * 0.06202); }

/* entrance + small motion */
.rh-line { animation: rh-line 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rh-head > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rh-head > :nth-child(1) { animation-delay: 0.25s; }
.rh-head > :nth-child(2) { animation-delay: 0.35s; }
.rh-card { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rh-card--parents { animation-delay: 0.45s; }
.rh-card--students { animation-delay: 0.55s; }
.rh-card .rh-badge { animation: rh-pop 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.rh-card--parents .rh-badge { animation-delay: 0.85s; }
.rh-card--students .rh-badge { animation-delay: 0.95s; }
.rh-student { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both; }
@keyframes rh-line { from { transform: scaleY(0); } to { transform: none; } }
@keyframes rh-pop { from { opacity: 0; transform: scale(0.4) rotate(-24deg); } to { opacity: 1; transform: none; } }

/* form section: sits on the turquoise sea, no dark card */
.reg-sea { background: var(--teal); padding-block: 0 clamp(48px, 7.72vw, 110px); position: relative; z-index: 1; }
#register-form .reg-card { background: none; border-radius: 0; overflow: visible; padding: clamp(26px, 3.86vw, 55px) 0 clamp(28px, 4.07vw, 58px); box-shadow: none; }
#register-form .reg-top { margin-bottom: 0; }
#register-form .reg-top > div { gap: 0; }
#register-form .gform-wrap { margin-top: 10px; padding-top: 16px; }

/* steps: straight join with the sea above, CTA pill sitting across the bottom tear */
#steps.steps-band { margin-top: 0; padding-bottom: 0; }
.steps-cta { position: relative; z-index: 5; display: grid; justify-items: center; text-align: center; margin-top: clamp(48px, 6.25vw, 89px); }
.steps-cta .script { color: var(--lemon); }
.cta-pill { --ph: clamp(76px, 8.7vw, 124px); display: grid; place-items: center; width: clamp(280px, 38.46vw, 548px); max-width: 100%; height: var(--ph); margin-top: clamp(16px, 1.9vw, 27px); margin-bottom: calc(var(--ph) * -0.742); border-radius: calc(var(--ph) * 0.3226); background: linear-gradient(90deg, var(--clay-ink), #DF7540); color: var(--paper); font-family: var(--f-display); font-weight: 900; font-size: calc(var(--ph) * 0.4258); line-height: 1; text-decoration: none; white-space: nowrap; transition: translate 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; }
.cta-pill:hover, .cta-pill:focus-visible { translate: 0 -4px; box-shadow: 0 18px 34px -16px rgba(169, 71, 31, 0.65); }
/* two-tone ring: the pill sits across the dark band and the sand below, so olive shows on sand and the lemon halo on the band */
.cta-pill:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; box-shadow: 0 0 0 9px var(--lemon), 0 18px 34px -16px rgba(169, 71, 31, 0.65); }

/* docs / FAQ spacing (Figma) */
#docs { padding-bottom: clamp(40px, 4.63vw, 66px); }
#faq.faq-sec { padding-block: clamp(44px, 4.21vw, 60px); }
@media (min-width: 981px) { #faq .faq-list { margin-top: min(5vw, 71px); } }
.contact-person .cp-img img { object-position: center; }
/* the flags rise into the FAQ: on wide screens the big flag overlaps the contact card (as in Figma) */
[data-page="register"] .flags-cut { margin-top: -9.51vw; }

@media (max-width: 980px) {
  /* one-column FAQ: the flags only take the bottom padding, never the last question */
  [data-page="register"] .flags-cut { margin-top: max(-9.51vw, -40px); }
}

@media (max-width: 760px) {
  .rh-stage { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .rh-line { position: static; translate: none; height: 54px; }
  .rh-head { position: static; translate: none; margin-top: 10px; white-space: normal; }
  [data-page="register"] .rh-head .script { font-size: clamp(1.6rem, 7.2vw, 2.1rem); margin-bottom: 0.1em; }
  .rh-title { font-size: clamp(1.95rem, 8.8vw, 2.4rem); }
  .rh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 460px; margin-top: 78px; }
  .rh-card { position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: 400 / 438; }
  .rh-photo { border-radius: 30px; }
  .rh-badge { --d: 108px; }
  .rh-badge > span { font-size: 13.5px; line-height: 1.55; translate: 0 -2px; }
  .rh-card--parents .rh-badge { left: calc(66% - var(--d) / 2); top: calc(-1% - var(--d) / 2); }
  .rh-card--students .rh-badge { left: calc(37.8% - var(--d) / 2); top: calc(0px - var(--d) / 2); }
  .rh-ground { --wh: 62px; --sh: 176px; position: relative; bottom: auto; margin-top: 20px; height: calc(var(--sh) * 0.93798 + var(--wh) * 0.27992); }
  .rh-wave { top: auto; height: var(--wh); }
  .rh-student { left: 50%; translate: -50% 0; }
  :is([data-page="home"], [data-page="limudim"], [data-page="register"]) main .script { font-size: clamp(1.5rem, 6.8vw, 1.75rem); text-wrap: balance; }
  .steps-cta { margin-top: 44px; }
  .cta-pill { width: min(100%, 330px); font-size: 30px; }
  #docs { padding-top: 104px; }
  #register-form .reg-card { padding: 26px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-line, .rh-head > *, .rh-card, .rh-card .rh-badge, .rh-student { animation: none; }
  .rh-photo img, .rh-badge, .cta-pill { transition: none; }
}

/* exam registration banner (replaces the embedded Google Form): one big link to rishum.app */
.exam-banner { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(380px, 30vw, 440px); margin-top: clamp(16px, 1.6vw, 22px); border-radius: 28px; overflow: hidden; background: var(--olive); color: var(--paper); text-decoration: none; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7); }
.eb-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; transform: scale(1.32); transform-origin: 90% 42%; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.exam-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 95% at 0% 105%, rgba(198, 95, 51, 0.38), rgba(198, 95, 51, 0) 58%),
    linear-gradient(to left, rgba(13, 59, 60, 0.97) 0%, rgba(13, 59, 60, 0.93) 42%, rgba(21, 74, 75, 0.68) 60%, rgba(29, 124, 125, 0.24) 80%, rgba(29, 124, 125, 0.08) 100%); }
.eb-body { display: grid; justify-items: start; gap: 14px; width: min(100%, 780px); padding: clamp(28px, 4vw, 56px); }
.eb-title { font-size: clamp(1.8rem, 3.1vw, 2.75rem); line-height: 1.1; color: var(--paper); }
.eb-sub { margin-top: -6px; font-family: var(--f-script); font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1; color: var(--lemon); }
.eb-dates { display: flex; gap: 12px; margin-top: 4px; }
.eb-date { flex: 0 1 auto; display: grid; gap: 3px; min-width: 0; padding: 12px 18px 13px; border-radius: 16px; background: rgba(255, 250, 247, 0.09); border: 1px solid rgba(255, 250, 247, 0.2); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.eb-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--on-dark-soft); }
.eb-label .ic { width: 16px; height: 16px; color: var(--lemon); }
.eb-date b { font-family: var(--f-display); font-weight: 900; font-size: 1.06rem; color: var(--paper); }
.eb-date bdi { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; letter-spacing: 0.03em; color: var(--lemon); }
.eb-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.98rem; color: var(--on-dark-soft); }
.eb-note .ic { color: var(--sky); }
.eb-cta { margin-top: 8px; background: linear-gradient(90deg, var(--clay-ink), var(--clay-btn)); transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease; }
.exam-banner:hover .eb-photo, .exam-banner:focus-visible .eb-photo { transform: scale(1.36); }
.exam-banner:hover .eb-cta, .exam-banner:focus-visible .eb-cta { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(169, 71, 31, 0.9); }
.exam-banner:hover .eb-cta .ic.fwd { transform: translateX(-4px); }
.exam-banner:focus-visible { outline: 3px solid var(--lemon); outline-offset: 4px; }
@media (max-width: 1100px) { .eb-dates { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .exam-banner { min-height: 0; align-items: end; padding-top: 170px; border-radius: 22px; }
  .eb-photo { height: 250px; bottom: auto; transform: none; object-position: 42% 40%; }
  .exam-banner:hover .eb-photo, .exam-banner:focus-visible .eb-photo { transform: none; }
  .exam-banner::before { background: linear-gradient(to bottom, rgba(13, 59, 60, 0) 0, rgba(13, 59, 60, 0.3) 95px, rgba(13, 59, 60, 0.95) 200px, var(--olive) 250px); }
  .eb-body { gap: 12px; padding: 0 18px 22px; }
  .eb-dates { display: grid; gap: 10px; width: 100%; }
  .eb-date { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 11px 14px 12px; }
  .eb-label { grid-row: 1; grid-column: 1; }
  .eb-date bdi { grid-row: 1; grid-column: 2; font-size: 1.05rem; }
  .eb-date b { grid-row: 2; grid-column: 1 / -1; font-size: 1.02rem; }
  .eb-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .eb-photo, .eb-cta { transition: none; } }

/* ======================= daily schedule timeline (limudim / סדר יום) =======================
   default: a vertical line that fills as you scroll (phones, reduced motion, no JS).
   .daytl--h (desktop, set by JS): the section pins under the header and the day slides sideways. */
.daytl { position: relative; padding-block: clamp(18px, 3vw, 34px) clamp(36px, 5vw, 64px); }
.daytl-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.daytl-titles { display: grid; gap: 6px; }
.daytl-clock { display: none; }
.daytl-view { position: relative; }
.daytl-track { position: relative; width: min(100% - 32px, 1208px); margin: 26px auto 0; }
.daytl-list { list-style: none; margin: 0; padding: 0; }
.daytl-rail { position: absolute; top: 14px; bottom: 14px; right: 13px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(13, 59, 60, 0.28) 0 7px, transparent 7px 13px); }
.daytl-fill { position: absolute; top: 0; bottom: 0; right: -1px; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--lemon), var(--clay-bright) 30%, var(--clay) 55%, var(--teal) 80%, var(--olive)); clip-path: inset(0 0 calc(100% - var(--fv, 0px)) 0); }
.daytl-sun { position: absolute; top: var(--fvs, 0px); right: 50%; width: 36px; height: 36px; translate: 50% calc(var(--fvy, 0px) - 50%); border-radius: 50%; background: var(--paper); box-shadow: 0 8px 18px -8px rgba(13, 59, 60, 0.45); display: grid; place-items: center; color: var(--clay); z-index: 2; }
.daytl-sun svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.45s ease, scale 0.45s ease; }
.daytl-sun .moon { opacity: 0; scale: 0.4; color: var(--teal); }
.daytl.is-night .daytl-sun .sun { opacity: 0; scale: 0.4; }
.daytl.is-night .daytl-sun .moon { opacity: 1; scale: 1; }

.ts { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 0 46px 30px 0; }
.ts-dot { position: absolute; top: 5px; right: 3px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); border: 3px solid rgba(13, 59, 60, 0.25); transition: background-color 0.4s ease, border-color 0.4s ease, scale 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ts.is-on .ts-dot { background: var(--c); border-color: var(--paper); box-shadow: 0 0 0 2px var(--c); scale: 1.08; }
.ts-text { display: grid; gap: 4px; min-width: 0; }
.ts-time { font-family: var(--f-display); font-weight: 900; font-size: 1.65rem; line-height: 1; color: var(--clay-ink); font-variant-numeric: tabular-nums; }
.ts-time--soft { font-family: var(--f-script); font-weight: 400; font-size: 1.55rem; color: var(--aqua-ink); }
.ts h3 { font-size: 1.16rem; line-height: 1.2; color: var(--olive); }
.ts p { max-width: 34ch; font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); }
.ts-media { position: relative; flex: none; }
.ts-photo { width: 96px; height: 96px; }
.ts-photo::before { content: ""; position: absolute; top: -7%; left: -10%; width: 48%; height: 48%; border-radius: 50%; background: var(--c); }
.ts-photo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 26px -14px rgba(13, 59, 60, 0.6); }
.ts-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: var(--olive); background: color-mix(in srgb, var(--c) 24%, var(--paper)); border: 1.5px dashed color-mix(in srgb, var(--c) 80%, var(--olive)); }
.ts-icon svg, .ts-icon .ic-img { width: 46%; height: 46%; }
.ts-icon .ic-img { object-fit: contain; }
/* scroll states (only when the script runs) */
.daytl.js .ts > * { transition: opacity 0.5s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
.daytl.js .ts:not(.is-on) .ts-text { opacity: 0.81; }
.daytl.js .ts:not(.is-on) .ts-media { opacity: 0.35; scale: 0.82; }

/* tablets (vertical line): keep each photo right beside its text instead of across the screen */
@media (min-width: 600px) {
  .daytl:not(.daytl--h) .ts { grid-template-columns: minmax(0, 36ch) auto; justify-content: start; gap: 28px; padding-bottom: 36px; }
  .daytl:not(.daytl--h) .ts-photo { width: 124px; height: 124px; }
  .daytl:not(.daytl--h) .ts-icon { width: 96px; height: 96px; }
}

/* ---------- desktop: pinned, horizontal ---------- */
.daytl--h { padding: 0; }
.daytl--h .daytl-pin { position: sticky; top: var(--hdr, 92px); height: calc(100vh - var(--hdr, 92px)); height: calc(100svh - var(--hdr, 92px)); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: clamp(4px, 1.6vh, 20px); }
.daytl--h .daytl-clock { display: grid; justify-items: end; text-align: left; gap: 2px; }
.dc-time { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1; color: var(--clay-ink); font-variant-numeric: tabular-nums; }
.dc-label { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; color: var(--olive); }
.daytl--h .daytl-view { overflow: visible; }
.daytl--h .daytl-track { position: absolute; top: 0; bottom: 0; right: 0; width: max-content; margin: 0; transform: translate3d(0, 0, 0); will-change: transform; }
.daytl--h .daytl-list { display: flex; height: 100%; padding-inline: var(--P, 96px); }
.daytl--h .daytl-rail { top: calc(50% - 1px); bottom: auto; right: calc(var(--P, 96px) + 41px); width: calc(var(--W, 300px) * 12); height: 2px; background: repeating-linear-gradient(to left, rgba(13, 59, 60, 0.28) 0 8px, transparent 8px 14px); }
.daytl--h .daytl-fill { top: -1px; bottom: -1px; right: 0; left: 0; width: auto; height: auto; background: linear-gradient(to left, var(--lemon), var(--clay-bright) 30%, var(--clay) 55%, var(--teal) 80%, var(--olive)); clip-path: inset(0 0 0 calc(100% - var(--fl, 0px))); }
.daytl--h .daytl-sun { top: 50%; right: 0; translate: calc(50% - var(--fl, 0px)) -50%; width: 42px; height: 42px; }
.daytl--h .daytl-sun svg { width: 24px; height: 24px; }
.daytl--h .ts { flex: none; width: var(--W, 300px); height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
.daytl--h .ts-dot { top: 50%; right: 30px; translate: 0 -50%; }
.daytl--h .ts::after { content: ""; position: absolute; right: 40px; width: 0; height: 38px; border-right: 2px dashed color-mix(in srgb, var(--c) 70%, var(--olive)); opacity: 0.55; }
.daytl--h .ts:nth-child(odd)::after { bottom: calc(50% + 12px); }
.daytl--h .ts:nth-child(even)::after { top: calc(50% + 12px); }
.daytl--h .ts-text { padding-right: 52px; padding-left: 16px; }
.daytl--h .ts:nth-child(odd) .ts-text { grid-row: 1; align-self: end; padding-bottom: 58px; }
.daytl--h .ts:nth-child(odd) .ts-media { grid-row: 2; align-self: start; margin-top: 46px; }
.daytl--h .ts:nth-child(even) .ts-media { grid-row: 1; align-self: end; margin-bottom: 46px; }
.daytl--h .ts:nth-child(even) .ts-text { grid-row: 2; align-self: start; padding-top: 58px; }
.daytl--h .ts-media { justify-self: center; margin-inline-start: 34px; }
.daytl--h .ts-photo { width: clamp(140px, 21vh, 206px); height: clamp(140px, 21vh, 206px); }
.daytl--h .ts-icon { width: clamp(96px, 13vh, 128px); height: clamp(96px, 13vh, 128px); }
.daytl--h .ts-time { font-size: 2.15rem; }
.daytl--h .ts h3 { font-size: 1.24rem; }
.daytl--h .ts p { max-width: 26ch; }
.daytl--h.js .ts:nth-child(odd):not(.is-on) .ts-text { translate: 0 14px; }
.daytl--h.js .ts:nth-child(even):not(.is-on) .ts-text { translate: 0 -14px; }

@media (prefers-reduced-motion: reduce) {
  .daytl.js .ts > *, .ts-dot, .daytl-sun svg { transition: none; }
}

/* ======================= limudim: kodesh / chol with the new copy ======================= */
/* kodesh: Thursday "מיש" card + photo tiles */
.feat-mish .feat-panel { gap: 18px; }
.mish-moon { width: 74px; height: 74px; color: var(--lemon); }
.feat-mish h3 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.15; }
.feat.tile { position: relative; flex-basis: min(300px, 74vw); grid-template-columns: 1fr; grid-template-rows: none; min-height: 380px; }
.feat.tile .feat-img { position: absolute; inset: 0; min-height: 0; }
.feat.tile .feat-img img { transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.feat.tile:hover .feat-img img { scale: 1.05; }
.feat.tile .feat-panel { position: relative; align-self: end; align-content: end; background: linear-gradient(to top, rgba(13, 59, 60, 0.94) 0%, rgba(13, 59, 60, 0.6) 55%, rgba(13, 59, 60, 0) 100%); padding-top: 90px; }
.feat.tile h3 { font-size: clamp(2rem, 3vw, 2.6rem); }

/* chol: Rav Kook quote */
.k-quote { position: relative; margin: 0 0 clamp(26px, 3.4vw, 40px); padding: clamp(26px, 4vw, 48px) clamp(22px, 4.4vw, 56px); border-radius: 28px; background: var(--olive); color: var(--paper); box-shadow: 0 26px 50px -32px rgba(13, 59, 60, 0.75); }
.k-quote-mark { position: absolute; top: clamp(-22px, -1.8vw, -16px); right: clamp(22px, 4vw, 48px); width: clamp(48px, 5vw, 64px); height: clamp(40px, 4.2vw, 54px); color: var(--lemon); }
.k-quote blockquote { margin: 0; display: grid; gap: 14px; max-width: 900px; }
.k-quote blockquote p { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.85; color: rgba(255, 250, 247, 0.92); }
.k-quote blockquote p:first-child { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.18rem, 1.7vw, 1.45rem); line-height: 1.6; color: var(--lemon); }

/* chol: subjects as chips */
.k-subjects { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(30px, 4vw, 48px); }
.k-subjects > p { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: var(--olive); }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.k-chips li { padding: 0.42em 1em; border-radius: 999px; background: var(--paper); color: var(--olive); font-weight: 700; font-size: 0.98rem; box-shadow: 0 6px 14px -10px rgba(13, 59, 60, 0.5); }
.k-majors-head { margin-bottom: clamp(18px, 2.4vw, 28px); }
.k-majors-head .lead { flex: 1 1 420px; min-width: 0; margin: 0; }

/* chol: the four majors */
.feat.major { flex-basis: min(300px, 76vw); grid-template-columns: 1fr; grid-template-rows: none; min-height: 320px; }
.feat.major .feat-panel { align-content: start; gap: 18px; }
.major-top { display: flex; align-items: center; justify-content: space-between; }
.major-letter { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lemon); color: var(--olive); font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; }
.major-ic { width: 62px; height: 62px; color: var(--sky); }
.feat.major h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.12; }
.major-units { justify-self: start; padding: 0.38em 0.95em; border-radius: 999px; border: 1px solid var(--on-dark-line); color: var(--on-dark-soft); font-size: 0.9rem; }
.feat.major:nth-child(3) .major-letter { background: var(--sky); } .feat.major:nth-child(3) .major-ic { color: var(--lemon); }
.feat.major:nth-child(4) .major-letter { background: var(--clay-bright); color: var(--olive); }
.feat.major:nth-child(5) .major-letter { background: var(--sage); }

@media (max-width: 560px) {
  .feat.tile { grid-template-rows: none; min-height: 340px; }
  .feat.tile .feat-img { order: 0; }
  .feat.major, .feat-mish { grid-template-rows: none; min-height: 0; }
  .k-subjects > p { flex-basis: 100%; }
}

/* chol: Rav Kook cut-out beside the quote, standing on the card's bottom edge with circles behind him */
.k-quote { --pad-y: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 25vw, 330px); column-gap: clamp(20px, 3.4vw, 52px); align-items: center; padding-block: var(--pad-y); margin-top: clamp(40px, 5vw, 70px); }
.k-quote > blockquote { grid-column: 1; grid-row: 1; }
.k-quote-art { grid-column: 2; grid-row: 1; position: relative; align-self: stretch; margin-block: calc(-1 * var(--pad-y)); min-height: 340px; }
.kq-rav { position: absolute; bottom: 0; left: 50%; translate: -50% 0; z-index: 2; height: calc(100% + clamp(36px, 4vw, 64px)); width: auto; max-width: none; aspect-ratio: 612 / 1000; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35)); } /* a replaced cut-out keeps this frame */
.kq-dot { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.kq-sun { width: 94%; aspect-ratio: 1; top: 2%; left: 3%; background: var(--lemon); }
.kq-clay { width: clamp(46px, 4.6vw, 64px); aspect-ratio: 1; top: 34%; left: -4%; background: var(--clay-bright); z-index: 3; }
.kq-ring { width: clamp(70px, 7vw, 100px); aspect-ratio: 1; bottom: 12%; right: -7%; border: 3px solid var(--sky); }
@media (max-width: 760px) {
  .k-quote { grid-template-columns: 1fr; margin-top: 110px; }
  .k-quote > blockquote { grid-row: 2; }
  .k-quote-art { grid-column: 1; grid-row: 1; align-self: auto; margin: calc(-1 * var(--pad-y) - 90px) auto 18px; width: min(240px, 70%); height: 300px; min-height: 0; }
  .kq-rav { height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
  .kq-sun { top: 6%; }
}

/* alumni carousel: long real quotes get a wider, tighter text column; people without a photo yet get a placeholder */
@media (min-width: 641px) { .tcar-track { height: clamp(400px, 33vw, 480px); } }
.tcard--long.is-active .tcard-text { flex-basis: 58%; gap: 8px; }
.tcard--long blockquote { font-size: clamp(0.92rem, 1.02vw, 1rem); line-height: 1.62; }
.tcard--noquote.is-active .tcard-text { gap: 14px; }
.tcard-ph { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, var(--teal), var(--olive-2) 70%); }
.tcard-ph svg { width: min(46%, 150px); fill: var(--sky); opacity: 0.55; }

/* limudim: kodesh on a deep turquoise gradient, chol straight after it, the two ribbons riding the seam */
.kodesh.band-sage { margin-top: clamp(16px, 3vw, 40px); padding-bottom: calc(clamp(64px, 9vw, 120px) + clamp(36px, 4vw, 56px)); background: radial-gradient(120% 75% at 50% 0%, #2E7B7A 0%, #1F5E5F 42%, #143F40 100%); }
.kodesh .k-top { position: absolute; top: -1px; left: 0; right: 0; margin: 0; color: var(--sand); z-index: 1; pointer-events: none; }
.kodesh .script { color: var(--lemon); }
.kodesh .part-num { background: var(--lemon); color: var(--olive); }
.kodesh .car-btn { border-color: rgba(255, 250, 247, 0.5); color: var(--paper); }
.kodesh .car-btn:hover { background: var(--paper); color: var(--olive); }
.kodesh .feat { box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.75); }
.marquee-zone.seam { position: relative; z-index: 5; height: 0; padding: 0; overflow: visible; }
.marquee-zone.seam .marquee-stack { position: absolute; left: 0; right: 0; top: 0; translate: 0 -50%; display: grid; }
.chol.band-green { padding-top: calc(clamp(64px, 9vw, 120px) + clamp(36px, 4vw, 56px)); }
/* ribbons on the seam: the orange one on top, a light sand one tucked underneath, both with a soft shadow */
.marquee-zone.seam .marquee { z-index: 2; box-shadow: 0 10px 22px -10px rgba(8, 36, 37, 0.55); }
.marquee-zone.seam .marquee.alt { z-index: 1; background: var(--sand); color: var(--olive); box-shadow: 0 10px 20px -10px rgba(8, 36, 37, 0.45); }

/* home: lessons (yeshiva rabbis) + talks, two compact carousels that share one screen on desktop */
.media-duo { display: grid; }
@media (min-width: 761px) { .media-duo { min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); grid-template-rows: 1fr 1fr; } }
.section.duo { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: clamp(22px, 3.8vh, 44px); } /* the column never grows past the screen, so the carousels scroll */
.section.duo + .section.duo > .wrap { position: relative; }
.section.duo + .section.duo > .wrap::before { content: ""; position: absolute; top: calc(-1 * clamp(11px, 1.9vh, 22px)); inset-inline: 20px; border-top: 1px dashed rgba(13, 59, 60, 0.22); }
.duo .sec-head { margin-bottom: clamp(12px, 2vh, 22px); align-items: end; }
.duo .sec-head > div:not(.car-btns) { gap: 0; }
.duo .h2 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }
.duo .sec-head .script { margin-top: -2px; }
.duo-car { --col: clamp(220px, calc((50vh - 250px) * 1.78), 320px); }
.duo .lesson { gap: 8px; }
.duo .lesson h3 { font-size: 1.08rem; }
.duo .lesson p { font-size: 0.9rem; }
/* smaller play button in the corner, so it never sits on a face */
.duo .play { inset: auto auto 12px 12px; margin: 0; width: 46px; height: 46px; box-shadow: 0 0 0 6px rgba(198, 95, 51, 0.28); }
.duo .play .ic { width: 18px; height: 18px; }
@media (max-width: 760px) { .duo-car { --col: 72vw; } .section.duo { padding-block: 30px; } }

/* ======================= Rosh Yeshiva notes: airy texts + field photos ======================= */
/* long texts broken into short paragraphs with clear breathing room between them */
.hero-sub p + p { margin-top: 0.6em; }
.lead-stack { display: grid; gap: 0.75em; }
.sec-head .lead + .lead, .part-text .lead + .lead { margin-top: 0.35em; }
/* a slow river of wide photos from the field: trips, gatherings, the big beit midrash */
.field-strip { position: relative; margin-top: clamp(44px, 5.5vw, 72px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fs-track { display: flex; width: max-content; animation: fs-river 80s linear infinite; }
.fs-set { display: flex; gap: 14px; padding-inline-end: 14px; }
.fs-set img { display: block; height: clamp(170px, 18vw, 250px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 30px -20px rgba(13, 59, 60, 0.55); }
.fs-set img:nth-child(even) { translate: 0 14px; }
.field-strip:hover .fs-track, .field-strip:focus-within .fs-track { animation-play-state: paused; }
@keyframes fs-river { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .fs-track { animation: none; } .field-strip { overflow-x: auto; } }
.figma-capture .fs-track { animation: none; }

/* home order: studies → המעטפת → פעילויות. Soft waves carry the green band in and back out to sand */
/* torn paper edge on top of המעטפת, in the band's own green */
#maatefet .m-tear { fill: #E1F1CF; z-index: 2; }
#maatefet { padding-top: clamp(48px, 6vw, 96px); padding-bottom: calc(clamp(64px, 9vw, 120px) + clamp(20px, 4vw, 56px)); }
#maatefet .ridge.m-out { position: absolute; left: 0; right: 0; bottom: -1px; margin: 0; color: var(--sand); z-index: 0; pointer-events: none; }
#maatefet > .wrap, #maatefet > .field-strip { position: relative; z-index: 1; }
#activities { padding-top: clamp(28px, 4vw, 56px); }

/* footer flags: always a clear gap between the content above and the flags image (no overlap) */
.flags-cut, [data-page="register"] .flags-cut { margin-top: clamp(24px, 3.4vw, 52px); }

/* footer slogan: same width as the logo above it (ink of "זה אומר הכל" ≈ 4.01em wide in Uriyah Mash) */
.foot-brand { --logo-w: 150px; }
.foot-logo { width: var(--logo-w); }
.foot-brand .script { font-size: calc(var(--logo-w) / 4.01); line-height: 1; white-space: nowrap; margin-top: -2px; margin-inline-start: 0.084em; /* optical: the script ink overhangs its start edge */ }

/* footer on mobile (single column): everything centered */
@media (max-width: 600px) {
  .foot-grid { text-align: center; justify-items: center; }
  .foot-brand { justify-items: center; }
  .foot-brand p:not(.script) { margin-inline: auto; }
  .foot-col ul { justify-items: center; }
  .foot-news { width: 100%; max-width: 380px; }
  .foot-news .news-form { margin-inline: auto; }
  .foot-social { justify-content: center; }
  .foot-bottom { flex-direction: column; justify-content: center; text-align: center; }
  .foot-bottom nav { justify-content: center; }
}

/* footer on phones: compact. Site links live in the hamburger menu, so that column is hidden;
   info links become one centered row; legal row merged into it */
@media (max-width: 600px) {
  .site-footer { padding-block: 40px 22px; }
  .foot-grid { gap: 26px; }
  .foot-brand { --logo-w: 128px; gap: 10px; }
  .foot-brand p:not(.script) { font-size: 0.92rem; line-height: 1.6; }
  .foot-site { display: none; }
  .foot-info h3 { display: none; }
  .foot-info ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
  .foot-info li { display: flex; align-items: center; }
  .foot-info li + li::before { content: "·"; color: var(--sage); padding-inline: 10px; }
  .foot-info a { font-size: 0.95rem; }
  .foot-news h3 { margin-bottom: 8px; }
  .foot-news p { font-size: 0.92rem; margin-bottom: 12px; }
  .foot-social { margin-top: 14px; }
  .foot-bottom { margin-top: 26px; padding-top: 16px; font-size: 0.8rem; gap: 8px; }
  .foot-bottom nav { display: none; }
}

/* songs: real album covers inside the sleeve */
.cover.cover-img { background: var(--sky); }
.cover.cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* any picture fills the square sleeve */

/* legal pages (terms; privacy and accessibility will reuse this) */
.legal-wrap { max-width: 860px; }
.legal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4.5vw, 52px); box-shadow: var(--shadow); }
.legal-body { display: grid; gap: 14px; font-size: 1.04rem; line-height: 1.85; color: var(--ink); }
.legal-body h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--olive); margin-top: 18px; }
.legal-body ul, .legal-body ol { margin: 0; padding-inline-start: 1.25em; display: grid; gap: 8px; }
.legal-body h3 { font-size: clamp(1.08rem, 1.6vw, 1.2rem); color: var(--olive); margin-top: 6px; }
.legal-body p { margin: 0; }
.legal-body li::marker { color: var(--clay); }
.legal-body a { color: var(--aqua-ink); text-underline-offset: 3px; }
.foot-col a[aria-current="page"], .foot-bottom a[aria-current="page"] { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }

/* forms: e-mail sign-up with consent, spam protection boxes */
.news-signup { display: grid; gap: 10px; }
.news-signup .news-form { width: 100%; }   /* a grid item: auto margins (footer on phones) would shrink it */
.news-consent { display: flex; align-items: flex-start; gap: 8px; text-align: start; font-size: 0.84rem; line-height: 1.45; cursor: pointer; color: var(--ink-soft); }
.news-consent input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--clay); cursor: pointer; }
.foot-news .news-consent { color: var(--on-dark-soft); }
.hp { position: absolute !important; top: 0; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
/* e-mail addresses and phone numbers are typed left to right (dir="ltr"), but stay aligned like the rest of the form */
input[dir="ltr"] { text-align: right; }
.ts-box:empty { display: none; }
.form-privacy { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--on-dark-soft); }
.form-privacy a { color: inherit; text-underline-offset: 3px; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.news-form.invalid { border-color: var(--clay); }
.news-card .news-consent { color: var(--ink); }
.news-consent input[aria-invalid="true"] { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ======================= accessibility: keyboard, print ======================= */
/* "skip to content": the first stop for keyboard users, shown only while it has focus */
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  padding: 0.8em 1.3em; border-radius: 999px; background: var(--olive); color: var(--sand); font-family: var(--f-display); font-weight: 900; text-decoration: none; box-shadow: var(--shadow); }
/* scroll reveal: an element reached with the keyboard shows at once instead of staying transparent */
.reveal-on [data-reveal]:focus-within { opacity: 1; translate: none; transition: none; }

/* print: everything that waits for scrolling shows, and only the content is printed */
@media print {
  .reveal-on [data-reveal], .reveal-on [data-hv], .reveal-on .st-here { opacity: 1 !important; translate: none !important; transform: none !important; }
  .daytl.js .ts .ts-text, .daytl.js .ts .ts-media { opacity: 1 !important; scale: none !important; translate: none !important; }
  .site-header { position: static; }
  .nav-links, .nav-actions, .skip-link, .car-btns, .ring-ctrl, .field-strip, .marquee, .ts-box, .news-signup, .news-note, .foot-news,
  .video-play, #contact-form, .copy-btn, .hv-lb, .motion-toggle { display: none !important; }
  .carousel { overflow: visible !important; flex-wrap: wrap; }
}

/* ======================= accessibility: focus ring, motion toggles, required fields ======================= */
/* keyboard focus: a light ring wherever the ground is dark (WCAG 1.4.11 / 2.4.7: at least 3:1 next to it) */
.on-dark, .torn-band, .site-footer, .form-card, .wall-band, .alumni-sec, .cta-card, .contact-person { --focus: var(--lemon); }
/* the promo video's frame clips anything outside it, so the ring goes around the frame */
.video-frame:has(.video-play:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
/* the photo strip fades at its edges (mask), which would hide the ring: no fade while it has keyboard focus */
.field-strip:focus-visible { -webkit-mask-image: none; mask-image: none; }
/* e-mail pill: the whole pill shows the focus while typing (the input itself has no outline);
   the join button keeps its own ring */
.news-form:has(input:focus), .foot-news .news-form:has(input:focus) { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
/* contact form fields: the ring comes back for keyboard focus, next to the thin highlighted border */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* stop / start toggles for moving content (main.js shows them only when something moves) */
.motion-toggle.over { position: absolute; z-index: 3; width: 40px; height: 40px; border: 0; background: rgba(255, 250, 247, 0.94); color: var(--olive); box-shadow: 0 8px 18px -8px rgba(13, 59, 60, 0.55); }
.motion-toggle.over:hover { background: var(--olive); color: var(--sand); }
.motion-toggle.over .ic { width: 18px; height: 18px; }
/* over photos and video: a two-tone ring (dark ring on the button's edge, light halo around it) */
.motion-toggle.over:focus-visible { outline: 3px solid var(--olive); outline-offset: 0; border-radius: 50%; box-shadow: 0 0 0 6px var(--paper); }
.fs-toggle { bottom: 12px; inset-inline-end: calc(6% + 8px); }
.arch-toggle { bottom: 16px; inset-inline-end: 16px; }
.marquee-toggle { top: 0; inset-inline-end: max(16px, env(safe-area-inset-left, 0px)); translate: 0 -50%; }
.motion-paused .marquee-track, .motion-paused .fs-track, .motion-paused .badge-spin .ring, .motion-paused .deco-bird, .motion-paused .tdot.on i { animation-play-state: paused; }

/* required fields in the contact form: a star after the label (the inputs carry "required" for screen readers) */
.field.req > label::after { content: " *"; content: " *" / ""; color: var(--lemon); font-weight: 700; }
/* the line above the fields that says what the star means (aria-hidden: "required" already says it) */
.form-hint { margin: 0; font-size: 0.85rem; color: var(--on-dark-soft); }
.form-hint b { color: var(--lemon); }
/* the message for a field sits right under it */
.field-err { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--lemon); }
.field.invalid input, .field.invalid textarea { border-color: var(--clay-bright); }
/* e-mail sign-up errors: a red that stands out 3:1 on each ground (dark footer / light card) */
.foot-news .news-form.invalid { border-color: var(--clay-bright); }
.news-card .news-form.invalid { border-color: var(--clay-ink); }
.foot-news .news-consent input[aria-invalid="true"] { outline-color: var(--clay-bright); }
.news-card .news-consent input[aria-invalid="true"] { outline-color: var(--clay-ink); }

/* very narrow screens (320 px wide = 1280 px at 400% zoom, WCAG 1.4.10): the menu button stays inside the
   header pill, and the e-mail field in the home sign-up card gets a line of its own */
@media (max-width: 359px) {
  .nav { gap: 6px; padding-inline-start: 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding-inline: 0.8em; font-size: 0.9rem; }
  .news-card .news-form { flex-wrap: wrap; border-radius: 22px; }
  .news-card .news-form input { flex: 1 1 100%; width: auto; min-height: 44px; }
  .news-card .news-form .btn { flex: 1 1 100%; }
}

/* ======================= capture mode (?figma) =======================
   Used only when importing a page into Figma: animations stop, everything shows
   in its final state, and the 3D activities ring is laid out flat as a grid of its
   eight cards so it imports as normal editable layers. */
.figma-capture *, .figma-capture *::before, .figma-capture *::after { animation: none !important; transition: none !important; }
.figma-capture .ring-stage { perspective: none; height: auto; overflow: visible; cursor: default; -webkit-mask-image: none; mask-image: none; padding-block: 8px; }
.figma-capture .ring-track { position: static; transform: none; display: grid; grid-template-columns: repeat(4, var(--cw)); gap: 20px; justify-content: center; }
.figma-capture .ring-card { position: relative; left: auto; top: auto; margin: 0; transform: none; }
.figma-capture .ring-card[aria-hidden="true"] { display: none; }
.figma-capture .ring-card.off { visibility: visible; opacity: 1; }
.figma-capture .ring-toggle { display: none; }
.figma-capture .tdot.on i { animation: none; width: 100%; }
@media (max-width: 760px) { .figma-capture .ring-track { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 20px; } .figma-capture .ring-card { width: auto; } }
