/* ============================================================
   הבנת חינם — עמודי דף הבית ותנאי השימוש (עיצוב Claude Design)
   קובץ זה מיישם בקוד ייצור את העיצוב שהתקבל מ-Claude Design.
   נבנה בעבודת יד (לא Tailwind) כי המקור מבוסס סגנון inline מדויק.
   ============================================================ */

@font-face {
  font-family: "buDrakonit";
  src: url("/static/fonts/buDrakonit2.1-Regular.woff2") format("woff2"),
       url("/static/fonts/buDrakonit2.1-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "buDrakonit";
  src: url("/static/fonts/buDrakonit2.1-Bold.woff2") format("woff2"),
       url("/static/fonts/buDrakonit2.1-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #EAE7E0;
  --bg-warm: #FDF7EE;
  --bg-warm-2: #FAF1E1;
  --bg-lectures: #F5EFE3;
  --ink: #3E3C38;
  --ink-strong: #25336E;
  --ink-strong-2: #22317A;
  --blue: #3A52B0;
  --orange: #C36937;       /* decorative-only: illustrations, large accents, dividers */
  --orange-text: #9C4C19;  /* text-safe replacement — meets 4.5:1 on this background */
  --orange-solid: #B15A22; /* solid CTA fill (already passes with white text) */
  --orange-solid-hover: #9C4C19;
  --focus-ring: #C36937;
}

/* ---- design-page reset (scoped: only these two pages link this file) ---- */
.fp-page {
  margin: 0;
  background: var(--bg);
  font-family: "buDrakonit", system-ui, sans-serif;
  color: var(--ink);
}
.fp-page * { box-sizing: border-box; }
.fp-page a { color: var(--blue); text-decoration: none; }
.fp-page a:hover { color: var(--orange-text); }
.fp-page img { max-width: none; }
.fp-page ul { list-style: none; margin: 0; padding: 0; }

.fp-page a:focus-visible,
.fp-page button:focus-visible,
.fp-page [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.fp-page main:focus,
.fp-page section:focus,
.fp-page div:focus {
  outline: none;
}
.fp-page main:focus-visible,
.fp-page section:focus-visible,
.fp-page div:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

html:has(.fp-page) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(clamp(58px, 6vw, 84px) + 14px);
}

/* Show exactly one of the two hand-built layouts at a time. */
.tree-mobile { display: block; }
.tree-desktop { display: none; }
@media (min-width: 768px) {
  .tree-mobile { display: none; }
  .tree-desktop { display: block; }
}

/* ---------------------------- skip link ---------------------------- */
.fp-skip-link {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fp-skip-link:focus {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 100;
  width: auto; height: auto;
  margin: 0; padding: 12px 22px;
  clip-path: none;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--blue);
  font: 700 17px/1 "buDrakonit", system-ui, sans-serif;
  box-shadow: 0 3px 14px rgba(62, 60, 56, .2);
}

/* ------------------------------ header ------------------------------ */
.fp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(234, 231, 224, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62, 60, 56, .12);
}
.fp-header .tree-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  height: clamp(62px, 6vw, 84px);
}
@media (min-width: 768px) {
  .fp-header .tree-desktop { display: flex; }
}
.fp-header .tree-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
}
@media (min-width: 768px) {
  .fp-header .tree-mobile { display: none; }
}

.fp-brand { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); text-decoration: none; }
.fp-brand-mobile { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.fp-brand-name { font: 700 clamp(18px, 2vw, 26px)/1 "buDrakonit", system-ui, sans-serif; color: var(--ink); }
.fp-brand-name-mobile { font: 700 18px/1 "buDrakonit", system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.fp-brand-mark { display: block; width: clamp(30px, 3.2vw, 44px); height: clamp(30px, 3.2vw, 44px); object-fit: contain; }
.fp-brand-mark-mobile { display: block; width: 26px; height: 26px; object-fit: contain; flex: none; }
.fp-brand-en { direction: ltr; font: 700 clamp(17px, 1.85vw, 24px)/1 "buDrakonit", system-ui, sans-serif; letter-spacing: .04em; color: var(--blue); }
.fp-brand-en-mobile { direction: ltr; font: 700 16px/1 "buDrakonit", system-ui, sans-serif; letter-spacing: .03em; color: var(--blue); white-space: nowrap; }

.fp-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); font: 600 clamp(15px, 1.5vw, 20px)/1 "buDrakonit", system-ui, sans-serif; }
.fp-nav a { display: flex; align-items: center; min-height: 24px; color: var(--ink); text-decoration: none; font-weight: 600; }
.fp-nav a.fp-nav-cta {
  height: clamp(34px, 3.4vw, 44px);
  padding: 0 clamp(14px, 1.6vw, 22px);
  border: 1.5px solid var(--orange-solid);
  border-radius: 999px;
  background: var(--orange-solid);
  color: #fff;
  font-weight: 700;
}
.fp-nav a.fp-nav-cta:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fp-nav a.fp-nav-outline {
  height: clamp(34px, 3.4vw, 44px);
  padding: 0 clamp(14px, 1.6vw, 22px);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
}
.fp-nav a.fp-nav-outline:hover { text-decoration: underline; text-underline-offset: 3px; }
.fp-nav a:not(.fp-nav-cta):not(.fp-nav-outline):hover { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.fp-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* mobile hamburger */
.fp-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px;
  border: none; background: transparent; cursor: pointer;
}
.fp-burger span { display: block; height: 2px; border-radius: 2px; background: var(--blue); }

.fp-mobile-nav {
  position: sticky; top: 58px; z-index: 59;
  display: flex; flex-direction: column;
  padding: 8px 18px 18px;
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(62, 60, 56, .14);
}
.fp-mobile-nav[hidden] { display: none; }
.fp-mobile-nav a { display: flex; align-items: center; min-height: 48px; font: 600 19px/1 "buDrakonit", system-ui, sans-serif; color: var(--ink); }
.fp-mobile-nav a[aria-current="page"] { font-weight: 700; color: var(--orange-solid); }
/* Force-hide at desktop widths even if the menu was left open on a narrower viewport before a resize/rotate. */
@media (min-width: 768px) {
  .fp-mobile-nav.tree-mobile { display: none; }
}

/* ------------------------------ motion toggle ------------------------------ */
.fp-motion-toggle {
  position: fixed;
  bottom: 14px; left: 14px;
  z-index: 80;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--blue);
  font: 600 15px/1 "buDrakonit", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(62, 60, 56, .16);
}
@media (min-width: 768px) {
  .fp-motion-toggle { bottom: 22px; left: 22px; padding: 0 20px; font-size: 17px; }
}
.fp-motion-toggle:hover { background: #F3E9DA; }
.fp-motion-toggle-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.5px solid var(--blue); background: var(--blue); }
[data-motion="off"] .fp-motion-toggle-dot { background: transparent; }

/* ------------------------------ accessibility widget ------------------------------ */
.fp-fab-row {
  position: fixed;
  bottom: 14px; left: 14px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}
.fp-fab-row .fp-motion-toggle { position: static; bottom: auto; left: auto; }
@media (min-width: 768px) {
  .fp-fab-row { bottom: 22px; left: 22px; gap: 12px; }
}

.fp-a11y { position: relative; direction: rtl; }
.fp-a11y-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(62, 60, 56, .16);
}
.fp-a11y-toggle:hover { background: #F3E9DA; }
.fp-a11y-toggle[aria-expanded="true"] { background: var(--blue); color: var(--bg-warm); }

.fp-a11y-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 220px;
  padding: 14px;
  border: 1.5px solid var(--blue);
  border-radius: 16px;
  background: var(--bg-warm);
  box-shadow: 0 6px 22px rgba(62, 60, 56, .22);
  font: 600 15px/1.3 "buDrakonit", system-ui, sans-serif;
}
.fp-a11y-panel[hidden] { display: none; }
.fp-a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-a11y-steppers { display: flex; gap: 6px; }
.fp-a11y-steppers button {
  width: 34px; height: 34px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font: 700 15px/1 "buDrakonit", system-ui, sans-serif;
  cursor: pointer;
}
.fp-a11y-steppers button:hover { background: #F3E9DA; }
.fp-a11y-panel-btn {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 10px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font: 600 15px/1 "buDrakonit", system-ui, sans-serif;
  cursor: pointer;
}
.fp-a11y-panel-btn:hover { background: #F3E9DA; }
.fp-a11y-panel-btn[aria-pressed="true"] { background: var(--blue); color: var(--bg-warm); }
.fp-a11y-panel-link {
  display: block;
  text-align: center;
  padding: 8px 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* text-size levels, applied on <html> so it reaches both breakpoints' markup */
html[data-a11y-text="1"] .fp-page { zoom: 1.15; }
html[data-a11y-text="2"] .fp-page { zoom: 1.3; }

/* high-contrast mode */
html[data-a11y-contrast="on"] .fp-page { background: #000; color: #fff; }
html[data-a11y-contrast="on"] .fp-page a { color: #FFD54A; }
html[data-a11y-contrast="on"] .fp-page a:hover { color: #7CD1FF; }
html[data-a11y-contrast="on"] .fp-header { background: #000; border-bottom-color: #fff; }
html[data-a11y-contrast="on"] .fp-mobile-nav { background: #000; border-bottom-color: #fff; }
html[data-a11y-contrast="on"] .fp-nav a.fp-nav-cta,
html[data-a11y-contrast="on"] .fp-nav a.fp-nav-outline,
html[data-a11y-contrast="on"] .fp-page .fp-btn-solid,
html[data-a11y-contrast="on"] .fp-page .fp-btn-outline {
  background: #000; color: #fff; border-color: #fff;
}
html[data-a11y-contrast="on"] .fp-motion-toggle,
html[data-a11y-contrast="on"] .fp-a11y-toggle,
html[data-a11y-contrast="on"] .fp-a11y-panel,
html[data-a11y-contrast="on"] .fp-a11y-steppers button,
html[data-a11y-contrast="on"] .fp-a11y-panel-btn {
  background: #000; color: #fff; border-color: #fff;
}
html[data-a11y-contrast="on"] .fp-a11y-toggle[aria-expanded="true"],
html[data-a11y-contrast="on"] .fp-a11y-panel-btn[aria-pressed="true"] {
  background: #fff; color: #000;
}
html[data-a11y-contrast="on"] .fp-page img { filter: grayscale(1) contrast(1.15); }

/* ------------------------------ hero / carousel ------------------------------ */
#top .tree-desktop { position: relative; background: var(--bg); }
.fp-deck-frame {
  /* vertical overflow left visible (not hidden) so text-spacing/1.4.12 growth in
     .fp-slide-copy is never silently clipped -- images already match the 16:9 box
     exactly so this is a no-op under normal content. Horizontal is clipped (not
     visible) because slide 6's decorative blur blobs intentionally bleed past their
     own box edge (left:-8%) and, without this, escape into real page-level horizontal
     scroll at wide viewports (confirmed from ~1024px up, worst at 2560px+ monitors --
     this was the site-wide horizontal-scrollbar bug mistaken for a "200% zoom" issue). */
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow-x: clip;
  container-type: inline-size;
}
.fp-deck-stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.fp-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--bg);
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
  overflow-x: clip;
}
.fp-slide[data-active="true"] { opacity: 1; pointer-events: auto; z-index: 2; }
.fp-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-slide-counter {
  position: absolute; left: 4%; bottom: 5.5%; z-index: 8;
  display: flex; align-items: center; gap: 12px; direction: rtl;
  font: 400 clamp(14px, 1.6vw, 30px)/1 "buDrakonit", system-ui, sans-serif; color: var(--ink);
}
.fp-slide-counter b { direction: ltr; font-weight: 700; letter-spacing: .04em; color: var(--orange-text); }
.fp-slide-copy { position: absolute; z-index: 3; direction: rtl; display: flex; flex-direction: column; }
.fp-slide h1, .fp-slide h2, .fp-slide [role="heading"] { margin: 0; font-family: "buDrakonit", system-ui, sans-serif; color: var(--ink); }
.fp-slide .fp-accent, .fp-m-slide .fp-accent { color: var(--blue); }
.fp-accent-orange { color: var(--orange-text); }
.fp-slide .fp-quote {
  display: flex; flex-direction: column; gap: 10px;
  padding-right: 26px; border-right: 3px solid var(--orange);
}

.fp-deck-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; align-items: center; justify-content: center;
  width: clamp(42px, 4vw, 56px); height: clamp(42px, 4vw, 56px);
  border: 1.5px solid rgba(58, 82, 176, .35); border-radius: 50%;
  background: rgba(234, 231, 224, .72); cursor: pointer;
}
.fp-deck-nav-btn:hover { background: var(--bg); border-color: var(--blue); }
.fp-deck-prev { right: clamp(10px, 1.6vw, 26px); }
.fp-deck-next { left: clamp(10px, 1.6vw, 26px); }

/* below this effective width (incl. desktop tree under browser zoom), drop the
   fixed 16:9 collage and let each slide flow top-to-bottom like the mobile hero:
   the decorative background photos/rocks/arcs are composed for the full-size
   stage and don't fit a narrow column, so they're hidden and the existing slide
   copy (same markup, same text -- nothing invented or duplicated) is allowed to
   wrap and grow freely instead of being frozen inside a fixed-height, clipped box. */
@container (max-width: 859.98px) {
  .fp-deck-frame { aspect-ratio: auto; overflow: visible; display: flex; flex-direction: column; gap: 16px; }
  .fp-deck-stage { position: static; width: auto; height: auto; }
  .fp-slide {
    position: static; inset: auto; width: auto; height: auto; overflow: visible;
    background: none; opacity: 1; transition: none; pointer-events: auto;
    display: none; flex-direction: column; gap: 20px; padding: 28px 22px 8px;
  }
  .fp-slide[data-active="true"] { display: flex; }
  .fp-slide > *:not(.fp-slide-copy):not(.fp-slide-counter) { display: none; }
  .fp-slide-copy {
    position: static !important; inset: auto !important;
    left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; width: auto !important; max-width: none !important;
  }
  .fp-slide-copy h1, .fp-slide-copy h2, .fp-slide-copy [role="heading"], .fp-slide-copy p, .fp-slide-copy li {
    white-space: normal !important;
  }
  .fp-slide-counter { position: static !important; left: auto !important; bottom: auto !important; }
  .fp-deck-nav-row { display: flex; justify-content: flex-end; gap: 12px; padding: 0 22px 16px; }
  .fp-deck-nav-btn { position: static; transform: none; }
}

.fp-sr-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* mobile hero carousel */
#top .tree-mobile { position: relative; overflow: hidden; background: #F5EFE3; }
.fp-m-slider { position: relative; padding: 28px 22px 8px; display: flex; flex-direction: column; overflow: hidden; transition: height .38s cubic-bezier(.4,0,.2,1); }
.fp-m-slide { display: none; flex-direction: column; gap: 16px; }
.fp-m-slide[data-active="true"] { display: flex; }
.fp-m-slide h1 { margin: 0; font: 700 clamp(38px, 10vw, 54px)/1 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.fp-m-slide h2 { margin: 0; font: 700 30px/1.05 "buDrakonit", system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); }
.fp-m-counter { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: auto; align-self: flex-end; padding-top: 16px; white-space: nowrap; font: 400 14px/1 "buDrakonit", system-ui, sans-serif; color: var(--ink); }
.fp-m-counter b { direction: ltr; font-weight: 700; letter-spacing: .04em; color: var(--orange-text); }
.fp-m-quote { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; border-right: 3px solid var(--orange); }

.fp-m-controls { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px 16px; }
.fp-m-arrow { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border: 1.5px solid rgba(58,82,176,.4); border-radius: 50%; background: rgba(253,247,238,.7); cursor: pointer; }
.fp-m-arrow:hover { border-color: var(--blue); }
.fp-m-dots { display: flex; align-items: center; gap: 0; }
.fp-m-dot { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 -3px; padding: 0; border: none; background: transparent; cursor: pointer; }
.fp-m-dot span { display: block; width: 9px; height: 9px; border-radius: 50%; background: #8A857E; transition: transform .15s ease, background .15s ease; }
.fp-m-dot[aria-current="true"] span { background: var(--blue); transform: scale(1.35); }

/* ------------------------------ lectures ------------------------------ */
#lectures .tree-desktop:not(.fp-divider), #lectures .tree-mobile:not(.fp-divider) {
  padding: clamp(26px, 3.2vw, 54px) clamp(20px, 5vw, 72px) clamp(30px, 3.8vw, 62px);
  background: var(--bg-warm);
}
#lectures .tree-mobile { padding: 44px 18px; }
.fp-lectures-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 44px); }
.fp-lectures-kicker { margin: 0 4px 6px; font: 700 34px/1 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.fp-lectures-rule { width: 110px; height: 3px; margin: 0 4px 26px; border-radius: 999px; background: var(--orange); }
.fp-divider { width: min(100%, 860px); height: 1.5px; margin: clamp(2px, .6vw, 10px) auto; border-radius: 999px; background: linear-gradient(90deg, rgba(58,82,176,0) 0%, rgba(58,82,176,.28) 22%, rgba(195,105,55,.34) 50%, rgba(58,82,176,.28) 78%, rgba(58,82,176,0) 100%); }

/* desktop lecture "deck" component — container-queried, with a fluid fallback
   so text keeps growing at high browser zoom instead of only rescaling as a unit. */
.fp-lecture-deck {
  position: relative; width: 100%; container-type: inline-size;
  background: var(--bg-warm); font-family: "buDrakonit", system-ui, sans-serif;
}
.fp-lecture-deck-inner { position: relative; aspect-ratio: 1916 / 821; overflow: visible; }
/* overflow intentionally stays "visible" (not "hidden") at every width: at rest nothing
   in the composition extends past the box, so this is visually a no-op -- but if Text
   Spacing overrides or zoom-driven reflow ever make a text block taller than its slot,
   content spills into view instead of being invisibly clipped (no loss of content). */
@container (max-width: 859.98px) {
  /* below this effective width (incl. desktop tree under browser zoom),
     fall back to a simple flowing card instead of the absolute composition */
  .fp-lecture-deck-inner { position: static; aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 26px; background: var(--bg-warm); }
  .fp-lecture-deck-inner .fp-lec-abs { position: static !important; inset: auto !important; width: auto !important; height: auto !important; transform: none !important; }
  .fp-lecture-deck-inner .fp-lec-decor { display: none; }
  .fp-lecture-deck-inner .fp-lec-num { font-size: 44px; }
}
.fp-lec-num { position: absolute; z-index: 5; font: 700 clamp(88px, 9.8cqw, 188px)/.85 "buDrakonit", system-ui, sans-serif; letter-spacing: -.04em; }
.fp-lec-title { margin: 0; font: 700 clamp(30px, 4.5cqw, 90px)/1.1 "buDrakonit", system-ui, sans-serif; letter-spacing: -.025em; text-wrap: pretty; }
.fp-lec-body { margin: 0; font: 400 clamp(15px, 2.1cqw, 40px)/1.5 "buDrakonit", system-ui, sans-serif; color: var(--ink); text-wrap: pretty; }
.fp-lec-callout {
  box-sizing: border-box; display: flex; flex-direction: column;
  padding: 3% 4.2%; border-radius: 42px;
  background: rgba(255,255,255,.28); border: 4px solid rgba(255,255,255,.96);
}
.fp-lec-callout-title { margin: 0; font: 700 clamp(15px, 2cqw, 30px)/1.2 "buDrakonit", system-ui, sans-serif; color: var(--ink-strong); }
.fp-lec-callout-body { margin: 8px 0 0; font: 700 clamp(14px, 1.8cqw, 30px)/1.34 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink-strong); text-align: center; text-wrap: pretty; }
.fp-lec-decor { pointer-events: none; }

/* mobile lecture cards */
.fp-lec-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 26px; background: var(--bg-warm); }
.fp-lec-card .fp-lec-badge { direction: ltr; font: 700 50px/.85 "buDrakonit", system-ui, sans-serif; letter-spacing: -.04em; }
.fp-lec-card h3 { margin: 0; font: 700 26px/1.15 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink-strong); text-wrap: pretty; }
.fp-lec-card p { margin: 0; font: 400 18px/1.5 "buDrakonit", system-ui, sans-serif; color: var(--ink); text-wrap: pretty; }
.fp-lec-card-footer { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 18px; border-radius: 18px; background: #F7EEDD; border: 1.5px solid rgba(195,105,55,.22); }
.fp-lec-card-footer-head { display: flex; align-items: center; gap: 10px; }
.fp-lec-card-footer-head img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.fp-lec-card-footer-head p { margin: 0; font: 700 18px/1.2 "buDrakonit", system-ui, sans-serif; color: var(--ink-strong); }
.fp-lec-card-footer strong.fp-lec-emph { margin: 0; font: 700 17px/1.4 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink-strong); text-wrap: pretty; display: block; }

/* ------------------------------ contact ------------------------------ */
#contact { background: var(--bg-warm); }
#contact .tree-desktop { padding: clamp(30px, 4vw, 64px) clamp(20px, 5vw, 72px) clamp(38px, 4.6vw, 74px); }
#contact .tree-mobile { padding: 44px 22px; background: var(--bg-warm-2); }
.fp-contact-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2vw, 28px); }
/* Higher-specificity override so only one of the two hand-built contact blocks ever renders (matches the .fp-header .tree-desktop/.tree-mobile pattern above). */
.fp-contact-inner.tree-desktop { display: none; }
.fp-contact-inner.tree-mobile { display: flex; }
@media (min-width: 768px) {
  .fp-contact-inner.tree-desktop { display: flex; }
  .fp-contact-inner.tree-mobile { display: none; }
}
.fp-contact-inner h2, .fp-contact-inner [role="heading"] { margin: 0; font: 700 clamp(30px, 3.6vw, 58px)/1 "buDrakonit", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink-strong); }
.fp-contact-row { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.fp-social {
  display: flex; align-items: center; justify-content: center;
  width: clamp(30px, 2.6vw, 40px); height: clamp(30px, 2.6vw, 40px);
  color: var(--blue);
}
.fp-social:hover { color: var(--orange-text); }
.fp-email {
  direction: ltr; font: 400 clamp(17px, 1.9vw, 30px)/1 "Assistant", system-ui, sans-serif;
  letter-spacing: .01em; color: var(--ink);
  border-bottom: 1.5px solid rgba(58,82,176,.4); padding-bottom: .12em;
}
.fp-email:hover { color: var(--blue); border-color: var(--blue); }

/* ------------------------------ footer ------------------------------ */
.fp-footer { background: var(--bg-warm); padding: clamp(26px, 3.5vw, 48px) clamp(20px, 5vw, 72px); border-top: 1.5px solid rgba(62,60,56,.18); }
.fp-footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fp-footer-c { display: flex; align-items: center; justify-content: center; width: clamp(20px, 2vw, 26px); height: clamp(20px, 2vw, 26px); border: 1.5px solid rgba(62,60,56,.5); border-radius: 50%; font: 400 clamp(14px, 1.4vw, 19px)/1 "buDrakonit", system-ui, sans-serif; color: var(--ink); padding-bottom: .05em; }
.fp-footer-inner p { margin: 0; font: 400 clamp(13px, 1.35vw, 19px)/1.4 "buDrakonit", system-ui, sans-serif; letter-spacing: .01em; color: var(--ink); text-align: center; }

/* ============================== terms page ============================== */
.fp-terms { font-family: "Assistant", system-ui, sans-serif; color: #000; }
.fp-terms h1 {
  margin: 0;
  font: 400 clamp(26px, 4.4vw, 42px)/1.25 "Assistant", system-ui, sans-serif;
  letter-spacing: -.01em; color: #000; text-wrap: pretty;
}
.fp-terms h2 { margin: 0; font: 400 clamp(26px, 3.8vw, 52px)/1.16 "Assistant", system-ui, sans-serif; letter-spacing: -.01em; color: #000; }
.fp-terms h3 { margin: 0; font: 700 clamp(19px, 2.3vw, 30px)/1.28 "Assistant", system-ui, sans-serif; color: #000; text-wrap: pretty; }
.fp-terms p, .fp-terms li { margin: 0; font: 400 clamp(16px, 1.85vw, 23px)/1.55 "Assistant", system-ui, sans-serif; color: #000; text-wrap: pretty; }
.fp-terms ul { padding-inline-start: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 8px; list-style: disc; }
.fp-terms article, .fp-terms .fp-terms-block { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 18px); }
.fp-terms section { padding: clamp(30px, 4vw, 60px) clamp(20px, 5vw, 72px); border-top: 1px solid rgba(62,60,56,.16); }
.fp-terms section:first-child { border-top: 0; padding-top: clamp(40px, 6vw, 96px); }
.fp-terms-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); }
.fp-terms a.fp-underline { text-decoration: underline; text-underline-offset: 4px; }
.fp-terms a[href^="mailto:"] { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.fp-btn-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.4vw, 18px); }
.fp-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 clamp(20px, 2.4vw, 34px);
  border-radius: 999px; text-decoration: none;
  font: 400 clamp(16px, 1.7vw, 22px)/1 "Assistant", system-ui, sans-serif;
}
.fp-page .fp-btn-solid { border: 1.5px solid var(--orange-solid); background: var(--orange-solid); color: var(--bg-warm); }
.fp-page .fp-btn-solid:hover { background: var(--orange-solid-hover); border-color: var(--orange-solid-hover); color: var(--bg-warm); }
.fp-page .fp-btn-outline { border: 1.5px solid var(--blue); color: var(--blue); }
.fp-page .fp-btn-outline:hover { background: var(--blue); color: #fff; }

@media (max-width: 767.98px) {
  .fp-terms h1 { font-size: 26px; line-height: 1.3; }
  .fp-terms h2 { font-size: 26px; }
  .fp-terms h3 { font-size: 19px; }
  .fp-terms p, .fp-terms li { font-size: 17px; }
  .fp-terms section { padding: 30px 20px; }
  .fp-terms section:first-child { padding-top: 34px; }
  .fp-terms-inner { max-width: none; }
  .fp-btn-row { flex-direction: column; }
}

/* ============================== motion ============================== */
@keyframes s1StoneL { 0%, 100% { transform: translate(calc(var(--travel, 64px) * -1), calc(var(--travel, 64px) * .16)) scale(.985); } 50% { transform: translate(0,0) scale(1); } }
@keyframes s1StoneR { 0%, 100% { transform: translate(var(--travel, 64px), calc(var(--travel, 64px) * -.16)) scale(.985); } 50% { transform: translate(0,0) scale(1); } }
@keyframes s1DrawBlue { 0% { stroke-dashoffset: 1.03; } 58% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1.03; } }
@keyframes s1DrawOrange { 0%, 40% { stroke-dashoffset: 1.03; opacity: 1; } 58%, 68% { stroke-dashoffset: 0; opacity: 1; } 80% { opacity: 1; } 88%, 100% { stroke-dashoffset: -1.03; opacity: 0; } }
@keyframes s6Pin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes s6Ring { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.055); opacity: .82; } }
@keyframes lecLoop {
  0% { stroke-dashoffset: var(--len, 1); }
  26% { stroke-dashoffset: 0; }
  82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: calc(var(--len, 1) * -1); }
}

[data-motion="on"] [data-anim="s1-stone-l"] { animation: s1StoneL 14s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s1-stone-r"] { animation: s1StoneR 14s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s1-arc-blue"] { animation: s1DrawBlue 6s linear infinite; }
[data-motion="on"] [data-anim="s1-arc-orange"] { animation: s1DrawOrange 6s cubic-bezier(.42,0,.58,1) infinite; }
[data-motion="on"] [data-anim="s6-pin"] { animation: s6Pin 9s ease-in-out infinite; }
[data-anim="s6-ring-1"], [data-anim="s6-ring-2"] { transform-box: view-box; will-change: transform, opacity; }
[data-motion="on"] [data-anim="s6-ring-1"] { animation: s6Ring 15s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s6-ring-2"] { animation: s6Ring 19s -4s cubic-bezier(.45,0,.55,1) infinite; }
[data-lec-loop] { stroke-dasharray: 1; }
[data-motion="on"] [data-lec-loop] { animation: lecLoop 9.2s cubic-bezier(.45,0,.55,1) infinite; }

/* --- hero slides 2-6: restored from frontend/Home Page.dc.html, missing since integration --- */
@property --s2tb { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --s2to { syntax: "<angle>"; inherits: false; initial-value: 139deg; }

@keyframes s2DrawBlue { from { --s2tb: 152deg; } to { --s2tb: 0deg; } }
@keyframes s2DrawOrange { from { --s2to: 0deg; } to { --s2to: 139deg; } }
@keyframes s2Settle { from { transform: scale(1.016); } to { transform: scale(1); } }
@keyframes s2Drift { 0%, 100% { transform: scale(1) translate(0,0); } 50% { transform: scale(1.014) translate(-.24%,.16%); } }
@keyframes s3DriftBlue { 0% { transform: translate(0,0); } 25% { transform: translate(-17px,12px); } 50% { transform: translate(-3px,-4px); } 75% { transform: translate(15px,-10.5px); } 100% { transform: translate(0,0); } }
@keyframes s3DriftOrange { 0% { transform: translate(0,0); } 25% { transform: translate(12px,-8px); } 50% { transform: translate(2.5px,4px); } 75% { transform: translate(-11px,8px); } 100% { transform: translate(0,0); } }
@keyframes s3TiltBlue { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1deg); } }
@keyframes s3TiltOrange { 0%, 100% { transform: rotate(.8deg); } 50% { transform: rotate(-.85deg); } }
@keyframes s3Arcs { 0%, 100% { transform: scale(1); opacity: .88; } 50% { transform: scale(1.013); opacity: 1; } }
@keyframes s4DrawDown { from { -webkit-mask-position: 0% 100%; mask-position: 0% 100%; } to { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; } }
@keyframes s4DrawRight { from { -webkit-mask-position: 100% 0%; mask-position: 100% 0%; } to { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; } }
@keyframes s5Ring { 0%, 100% { transform: scale(1); opacity: .62; } 50% { transform: scale(2.26); opacity: .16; } }
@keyframes s6Blob1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(1.8%,-1.4%) scale(1.035); } }
@keyframes s6Blob2 { 0%, 100% { transform: translate(0,0) scale(1.02); } 50% { transform: translate(-1.6%,1.2%) scale(1); } }
@keyframes s6Draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

[data-anim="s2-draw-blue"] {
  --s2tb: 0deg;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-image: conic-gradient(from 201deg at 23.977% 64.098%, #0000 0 var(--s2tb), #000 calc(var(--s2tb) + .7deg) 152deg, #0000 152deg);
  mask-image: conic-gradient(from 201deg at 23.977% 64.098%, #0000 0 var(--s2tb), #000 calc(var(--s2tb) + .7deg) 152deg, #0000 152deg);
}
[data-anim="s2-draw-orange"] {
  --s2to: 139deg;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-image: conic-gradient(from 28deg at 32.722% 45.421%, #000 0 var(--s2to), #0000 calc(var(--s2to) + .7deg) 139deg, #0000 139deg);
  mask-image: conic-gradient(from 28deg at 32.722% 45.421%, #000 0 var(--s2to), #0000 calc(var(--s2to) + .7deg) 139deg, #0000 139deg);
}
[data-motion="on"] [data-anim="s2-drift"] { animation: s2Drift 28s ease-in-out infinite; }
.fp-slide[data-active="true"] [data-anim="s2-settle"] { animation: s2Settle 2.1s cubic-bezier(.16,.72,.2,1) both; }
.fp-slide[data-active="true"] [data-anim="s2-draw-blue"] { animation: s2DrawBlue 2.25s .18s cubic-bezier(.38,.05,.2,1) both; }
.fp-slide[data-active="true"] [data-anim="s2-draw-orange"] { animation: s2DrawOrange 2.35s .62s cubic-bezier(.38,.05,.2,1) both; }

[data-motion="on"] [data-anim="s3-drift-blue"] { animation: s3DriftBlue 15s -3.2s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s3-drift-orange"] { animation: s3DriftOrange 19s -8s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s3-tilt-blue"] { animation: s3TiltBlue 27s -11s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s3-tilt-orange"] { animation: s3TiltOrange 34s -5s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="on"] [data-anim="s3-arcs"] { animation: s3Arcs 20s -6s cubic-bezier(.45,0,.55,1) infinite; }

[data-anim="s4-line-down-1"], [data-anim="s4-line-down-2"], [data-anim="s4-line-right"] {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0%; mask-position: 0% 0%;
}
[data-anim="s4-line-down-1"], [data-anim="s4-line-down-2"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 47%, rgba(0,0,0,0) 53%);
  mask-image: linear-gradient(to bottom, #000 0 47%, rgba(0,0,0,0) 53%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%;
}
[data-anim="s4-line-right"] {
  -webkit-mask-image: linear-gradient(to right, #000 0 47%, rgba(0,0,0,0) 53%);
  mask-image: linear-gradient(to right, #000 0 47%, rgba(0,0,0,0) 53%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
}
.fp-slide[data-active="true"] [data-anim="s4-line-down-1"] { animation: s4DrawDown 2.15s .18s cubic-bezier(.32,.06,.28,1) both; }
.fp-slide[data-active="true"] [data-anim="s4-line-down-2"] { animation: s4DrawDown 1.95s .85s cubic-bezier(.32,.06,.28,1) both; }
.fp-slide[data-active="true"] [data-anim="s4-line-right"] { animation: s4DrawRight 2.5s 1.2s cubic-bezier(.32,.06,.28,1) both; }

[data-anim="s5-ring"] { transform-box: view-box; transform-origin: 430px 500px; }
[data-motion="on"] [data-anim="s5-ring"] { animation: s5Ring 16s cubic-bezier(.45,0,.55,1) infinite; }
[data-motion="off"] [data-anim="s5-ring"] { transform: scale(2.26); }

[data-motion="on"] [data-anim="s6-blob-1"] { animation: s6Blob1 24s ease-in-out infinite; }
[data-motion="on"] [data-anim="s6-blob-2"] { animation: s6Blob2 29s ease-in-out infinite; }
[data-anim="s6-draw-blue"], [data-anim="s6-draw-orange"] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.fp-slide[data-active="true"] [data-anim="s6-draw-blue"] { animation: s6Draw 2.4s .2s cubic-bezier(.36,.05,.22,1) both; }
.fp-slide[data-active="true"] [data-anim="s6-draw-orange"] { animation: s6Draw 2.8s .95s cubic-bezier(.36,.05,.22,1) both; }

[data-motion="off"] [data-anim],
[data-motion="off"] [data-lec-loop] { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-lec-loop] { animation: none !important; }
}

/* one-time "draw in" for the lecture illustration paths, normalized via
   pathLength="1" on the markup so no JS path-length measuring is needed */
[data-lec-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1);
}
[data-lec-draw].is-drawn { stroke-dashoffset: 0; }
[data-motion="off"] [data-lec-draw] { stroke-dashoffset: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  [data-lec-draw] { stroke-dashoffset: 0; transition: none; }
}
