/* PM Live Meetup landing page — RTL, Leon */

@font-face { font-family: 'leonprod'; src: url('fonts/Leon-ProductRegular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'leonprod'; src: url('fonts/Leon-ProductBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'leonprod'; src: url('fonts/Leon-ProductHeavy.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --midnight: #0a0d24;
  --navy: #111739;
  --ink: #151a3b;
  --muted: #5d6385;
  --line: #e3e6f1;
  --field-line: #7c829f;  /* resting form-control border: 3.6:1 on #fbfbfe / white (WCAG 1.4.11) */
  --paper: #f5f6fb;
  --card: #ffffff;
  --blue: #3f6bff;
  --blue-deep: #1f3fd6;
  --violet: #8a3ffc;
  --violet-soft: #efe6ff;
  --danger: #d6334d;
  --ok: #19a974;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 23, 57, .08);
  --wrap: 1120px;
  --font: 'leonprod', 'Arial Hebrew', Arial, sans-serif;

  /* hero (port of hero/option-B): sized in --u, 1u = 1px on the 1920 desktop canvas.
     Up to 1920 wide: 1u = 100vw/1920 (floor .5px). Wider screens keep scaling with the width, like the photo
     (100% wide), so the route stays on the beam trail as on the artwork, instead of drifting right of it;
     capped by the height (hero CTA bottom ~ 816u from the top) so the CTA stays above the fold, never < 1px. */
  --night: #0a0720;
  --hv: #8039e9;          /* Gong violet */
  --hv-lt: #b596ff;       /* violet tint on dark */
  --hv-label: #cdb8ff;
  --u: clamp(0.5px, 100vw / 1920, max(1px, 100vh / 880));
  --edge-x: calc(96 * var(--u));   /* PM Live logo / co-branding corner margins */
  --edge-y: calc(70 * var(--u));
  --edge-r: calc(112 * var(--u));  /* right edge of the hero text column */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 19px/1 var(--font); color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  border: 0; border-radius: 999px; padding: 18px 34px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(90, 70, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(90, 70, 255, .45); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* light surfaces (the white registration card; the sticky CTA can sit over the light page): a two-tone
   ring - dark outline with a white gap - that reads on light and dark alike */
.register__card .btn:focus-visible, .sticky-cta:focus-visible {
  outline: 3px solid var(--blue-deep); outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff, 0 8px 24px rgba(90, 70, 255, .35);
}
.btn--small { font-size: 16px; padding: 11px 22px; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- PM Live logo ----------
   pmlive-logo-caption-white.png: the primary logo with ONLY its tagline recoloured white. No fill is added:
   the letters/counters stay transparent and show whatever is behind them (in the top bar: the black ellipse below;
   in the footer: the dark background). The white tagline keeps >= 4.5:1. */
.brandmark { --lw: 150px; display: block; width: var(--lw); }
.brandmark img { width: 100%; height: auto; }

/* Hero/top-bar logo gets the same soft BLACK ellipse as hero/option-B (.brand::before, v3):
   large, very blurry, slightly translucent; the transparent letters read dark on it, the white tagline
   keeps >= 4.5:1. Sized from --lw so it scales with the logo. */
.topbar__logo { position: relative; isolation: isolate; }
.topbar__logo img { position: relative; }
.topbar__logo::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 56%; top: 38%; width: 330%; height: 420%; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(0,0,0,.80) 0%, rgba(0,0,0,.78) 15%, rgba(0,0,0,.70) 30%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.38) 60%, rgba(0,0,0,.20) 75%, rgba(0,0,0,.07) 88%, rgba(0,0,0,0) 100%) center / 62% 44% no-repeat,
    radial-gradient(closest-side, rgba(0,0,0,.24) 0%, rgba(0,0,0,.22) 20%, rgba(0,0,0,.16) 40%, rgba(0,0,0,.09) 60%, rgba(0,0,0,.035) 80%, rgba(0,0,0,0) 100%) center / 100% 100% no-repeat;
  filter: blur(calc(var(--lw) * .14));
}

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; overflow-x: clip; }
.topbar__inner {
  direction: ltr; /* PM Live logo top-left, as on the hero artwork */
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: var(--edge-y) var(--edge-r) 0 var(--edge-x);
}
.topbar__inner .btn { direction: rtl; }
.topbar__logo { --lw: calc(250 * var(--u)); }

/* ---------- hero (port of hero/option-B) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--night);
  /* the photo scales with the width like the 1920x800 artwork (beam ends stay at ~42% of the width, where the
     route ends); when the hero is taller than the photo (2560x1086 -> 42.42vw) its bottom edge fades into --night */
  background-image:
    linear-gradient(270deg, rgba(8, 6, 26, .62) 0%, rgba(8, 6, 26, .38) 36%, rgba(8, 6, 26, 0) 58%),
    linear-gradient(180deg, rgba(10, 7, 32, 0) calc(42.42vw - 180px), var(--night) calc(42.42vw - 2px)),
    var(--hero-bg, radial-gradient(ellipse at 10% 40%, rgba(138, 63, 252, .55), transparent 55%));
  background-size: 100% 100%, 100% 100%, 100% auto; background-position: 0 0, 0 0, left top; background-repeat: no-repeat;
}
.hero__inner {
  position: relative; min-height: calc(800 * var(--u));
  padding: calc(var(--edge-y) + max(44px, 44 * var(--u)) + 34 * var(--u)) var(--edge-r) var(--edge-y);
}
/* desktop wider than 1920 (1u > 1px): the two CTAs grow with the rest of the hero; <= 1920 the px floors win */
@media (min-width: 1100px) {
  .topbar__inner .btn--small { font-size: max(16px, calc(16 * var(--u))); padding: max(11px, calc(11 * var(--u))) max(22px, calc(22 * var(--u))); }
  .hero__foot .btn { font-size: max(19px, calc(19 * var(--u))); padding: max(18px, calc(18 * var(--u))) max(34px, calc(34 * var(--u))); }
}
.hero__content { width: max(940px, calc(1100 * var(--u))); max-width: 100%; }
.nb { white-space: nowrap; }
.hero__kicker { font-weight: 700; font-size: max(14px, calc(25 * var(--u))); line-height: 1.2; letter-spacing: .07em; text-align: right; margin: 0; }
.hero__title { margin-top: calc(12 * var(--u)); font-weight: 900; font-size: max(38px, calc(74 * var(--u))); line-height: 1.07; max-width: 13.5em; text-wrap: balance; }
.hero__title--long { font-size: max(36px, calc(66 * var(--u))); max-width: 15.5em; }
/* title fit modes (app.js fitTitle, port of hero/option-B): phrase break = 2 lines, one phrase each (default);
   3 lines, stacked layout only (--title-phrase-lines): .is-sub-break = the longer phrase also breaks at its
   closing quote / comma, else .is-phrase-blocks = each phrase its own balanced block;
   .is-balanced = the breaks are dropped and the whole title balances itself */
.hero__title:not(.is-sub-break) .hero__title-sub,
.hero__title.is-balanced .hero__title-br, .hero__title.is-phrase-blocks .hero__title-br { display: none; }
.hero__title.is-phrase-blocks .hero__phrase { display: block; text-wrap: balance; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px calc(16 * var(--u)); margin: calc(18 * var(--u)) 0 0; font-size: max(17px, calc(28 * var(--u))); line-height: 1.35; }
.hero__sep { color: var(--hv-lt); }

/* speaker route: the talk speaker, then the panel as one connected group (line runs Inbal -> moderator only) */
.route {
  --label-h: max(22px, calc(30 * var(--u))); --lead: calc(126 * var(--u)); --wp: calc(80 * var(--u));
  /* column floors = widest role title on one line at the role font floors (measured: 165px lead / 138px panel) */
  /* hero B geometry: 151u panel columns on a 159u pitch, 16u from the talk to the panel */
  --col: max(142px, calc(151 * var(--u))); --lead-col: max(172px, calc(216 * var(--u))); --gap: calc(8 * var(--u));
  display: flex; align-items: flex-start; gap: calc(16 * var(--u)); margin-top: calc(62 * var(--u));
}
.route__panel { position: relative; display: flex; align-items: flex-start; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.route__panel::before {
  content: ""; position: absolute; z-index: 0;
  top: calc(var(--label-h) + var(--lead) / 2 - max(1px, 1.5 * var(--u))); right: calc(var(--col) / 2); left: calc(var(--col) / 2);
  height: max(2px, calc(3 * var(--u))); border-radius: 99px;
  background: linear-gradient(270deg, #e6dcff 0%, var(--hv-lt) 22%, var(--hv) 62%, rgba(98, 143, 255, .6) 100%);
  box-shadow: 0 0 calc(14 * var(--u)) rgba(128, 57, 233, .9);
}
.stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; width: var(--col); flex: none; }
.stop--lead { width: var(--lead-col); }
.stop__label {
  position: relative; top: -.444em; /* the label row sits 8u above its old spot (8/18 em), scales with the label */
  height: var(--label-h); font-weight: 700; font-size: max(13px, calc(18 * var(--u))); line-height: 1.2; letter-spacing: .03em;
  color: var(--hv-label); white-space: nowrap;
  /* the artwork's soft drop shadow + a tight dark halo: at 1100-1300px the moderator column sits on the
     bright beam strands, and the halo keeps the label >= 4.5:1 there (p5 7.1:1 at worst, measured) */
  text-shadow: 0 0 1px rgba(6, 4, 20, 1), 0 0 2px rgba(6, 4, 20, 1), 0 0 4px rgba(6, 4, 20, .95), 0 0 8px rgba(6, 4, 20, .9),
    0 1px calc(12 * var(--u)) rgba(6, 4, 20, .9);
}
.stop__tag { display: none; font-weight: 700; color: var(--hv-lt); }
.stop__dot { height: var(--lead); display: flex; align-items: center; justify-content: center; }
.avatar {
  position: relative; display: block; flex: none; width: var(--wp); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: url('avatar-placeholder.svg') center / cover no-repeat;
  box-shadow: 0 0 0 max(2px, calc(3 * var(--u))) #fff, 0 0 calc(24 * var(--u)) rgba(128, 57, 233, .75);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar:has(img) { background: #fff; } /* under a photo: the anti-aliased clip edge blends into the white ring, not the purple placeholder */
.stop--lead .avatar { width: var(--lead); box-shadow: 0 0 0 max(2.5px, calc(4 * var(--u))) #fff, 0 0 calc(36 * var(--u)) rgba(181, 150, 255, .8); }
.stop__text { display: flex; flex-direction: column; align-items: center; }
.stop__name { margin-top: calc(12 * var(--u)); font-weight: 700; font-size: max(16px, calc(22 * var(--u))); line-height: 1.15; text-shadow: 0 1px calc(10 * var(--u)) rgba(6, 4, 20, .85); }
.stop--lead .stop__name { font-size: max(19px, calc(28 * var(--u))); }
.stop__role { margin-top: calc(4 * var(--u)); font-size: max(12.5px, calc(14.5 * var(--u))); line-height: 1.25; color: rgba(255, 255, 255, .8); text-wrap: balance; text-shadow: 0 1px calc(8 * var(--u)) rgba(6, 4, 20, .8); }
.stop--lead .stop__role { font-size: max(14px, calc(17 * var(--u))); }
.role__org { display: block; }
.role__title { white-space: nowrap; } /* as on the artwork: "Title," on one line, company below */
/* app.js fitRoles (port of hero B): a panel role title wider than its column flows with the company over
   two balanced lines instead ('Senior Director / of R&D, Gong') */
.role--flow .role__title { white-space: normal; }
.role--flow .role__org { display: inline; }
.role--flow .role__org--dash { display: block; } /* "Title -" wraps, "Unit, Company" keeps its own line */

.hero__foot { display: flex; align-items: flex-end; margin-top: calc(48 * var(--u)); }
/* co-branding: bottom-left corner, same corner margins as the PM Live logo; label flush right with the Gong logo */
.hero__partner {
  position: absolute; left: var(--edge-x); bottom: var(--edge-y);
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(8 * var(--u));
}
.hero__partner-label { font-size: max(14px, calc(18 * var(--u))); line-height: 1; color: rgba(255, 255, 255, .8); }
.hero__partner img { width: max(92px, calc(132 * var(--u))); }

/* ---------- intro ---------- */
.intro { padding-block: 72px 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 48px; align-items: start; }
.intro__lead { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.55; margin: 0; }
.facts { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px; }
.facts > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 16px; }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.5; }

/* ---------- sessions ---------- */
.session { padding-block: 64px; }
.session + .session { border-top: 1px solid var(--line); }
.session__head { margin-bottom: 22px; }
.session__label {
  display: inline-block; font-size: 15px; font-weight: 700; color: #6d28d9; /* 6.3:1 on --violet-soft (--violet was 4.15:1) */
  background: var(--violet-soft); border-radius: 999px; padding: 5px 16px; margin-bottom: 14px;
}
.session__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; max-width: 22ch; text-wrap: balance; }
.session__abstract { max-width: 760px; font-size: 19px; margin-bottom: 40px; }
.people__heading { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 8px 0 18px; }
.people { display: grid; gap: 22px; }
.people--grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }

.person {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.person__photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; flex: none; background: #e8eaf5;
  box-shadow: 0 0 0 4px var(--violet-soft), 0 6px 18px rgba(17, 23, 57, .12); } /* ring: white-backdrop portraits (Or) don't dissolve into the white card */
.person--compact .person__photo { width: 104px; height: 104px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe3f5, #ece3fb); }
.person__placeholder svg { width: 58%; fill: #b3b9d8; margin-top: 12%; }
.person__tag { display: inline-block; font-size: 14px; font-weight: 700; color: #fff; background: var(--violet); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
/* the LinkedIn link sits next to the heading, not inside it (a screen reader reads the heading as the name only) */
.person__head { display: flex; align-items: center; gap: 10px; }
.person__name { font-size: 24px; font-weight: 700; }
.person--compact .person__name { font-size: 21px; }
.person__li { display: inline-flex; width: 22px; height: 22px; color: #0a66c2; flex: none; }
.person__li svg { width: 100%; height: 100%; fill: currentColor; }
.person__li:hover { color: var(--blue-deep); }
.person__role { color: var(--muted); font-size: 16px; margin: 4px 0 12px; text-align: right; unicode-bidi: plaintext; }
.person__bio { font-size: 16.5px; line-height: 1.65; }
.person__bio p:last-child { margin-bottom: 0; }

/* ---------- agenda ---------- */
.section-title { font-size: clamp(28px, 3vw, 38px); font-weight: 900; margin-bottom: 24px; }
.agenda { padding-block: 40px 80px; }
.agenda__list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; }
.agenda__list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 18px; }
.agenda__list li:last-child { border-bottom: 0; }
.agenda__list time { font-weight: 700; color: var(--blue-deep); text-align: right; }

/* ---------- registration ---------- */
.register {
  color: #fff; padding-block: 90px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(138, 63, 252, .35), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(63, 107, 255, .3), transparent 55%),
    var(--midnight);
}
.register__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.register__side p { font-size: 19px; opacity: .9; }
.register__when { font-weight: 700; opacity: 1 !important; }
.register__card { background: var(--card); color: var(--ink); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field--email, .field--check, .form__error--global, .form .btn { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; }
.field input[type=text], .field input[type=email] {
  font: 400 17px var(--font); color: var(--ink); width: 100%;
  border: 1.5px solid var(--field-line); border-radius: 12px; padding: 13px 14px; background: #fbfbfe;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type=email] { text-align: left; }
.field input::placeholder { color: #a0a6c2; }
/* focus: a solid 3px --blue-deep edge (1.5px border + 1.5px ring, 8.6:1 on white) plus a soft outer halo;
   the transparent outline only shows in forced-colors mode, where box-shadows are dropped */
.field input:focus {
  outline: 2px solid transparent; outline-offset: 2px; background: #fff;
  border-color: var(--blue-deep); box-shadow: 0 0 0 1.5px var(--blue-deep), 0 0 0 5px rgba(63, 107, 255, .3);
}
.field__error { color: var(--danger); font-size: 14px; min-height: 0; }
.field__error:empty { display: none; }
.is-invalid input[type=text], .is-invalid input[type=email] { border-color: var(--danger); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 400 !important; font-size: 15px !important; line-height: 1.55; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; border: 1.5px solid var(--field-line); border-radius: 7px; background: #fbfbfe; margin-top: 1px; display: grid; place-items: center; transition: all .15s; }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .check__box {
  outline: 2px solid transparent; outline-offset: 2px;
  border-color: var(--blue-deep); box-shadow: 0 0 0 1.5px var(--blue-deep), 0 0 0 5px rgba(63, 107, 255, .3);
}
.is-invalid .check__box { border-color: var(--danger); }

.form__error--global { background: #fdecef; color: var(--danger); border-radius: 12px; padding: 12px 16px; margin: 0; font-size: 15px; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* no left:-9999px: in RTL it widens the page */

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.register__done { text-align: center; padding: 20px 6px; outline: none; }
.register__done svg { width: 64px; height: 64px; margin: 0 auto 16px; }
.register__done circle { fill: #e6f7f0; }
.register__done path { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.register__done h3 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.register__small { color: var(--muted); font-size: 15px; }

/* ---------- sponsor + footer ---------- */
.sponsor { padding-block: 56px; text-align: center; }
.sponsor p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.sponsor img { width: 150px; margin-inline: auto; }
.footer { background: var(--midnight); color: rgba(255, 255, 255, .7); padding-block: 36px; font-size: 15px; overflow-x: clip; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { --lw: 130px; flex: none; }
.footer p { margin: 0; flex: 1; }
.footer a { color: #fff; }

.sticky-cta { display: none; }

/* ---------- responsive ---------- */
/* hero, stacked (tablet + phone): the hero-mobile.png layout, designed on a 375 canvas and capped for tablets */
@media (max-width: 1099px) {
  :root {
    --u: min(100vw / 375, 1.45px);
    --edge-x: calc(20 * var(--u)); --edge-y: calc(20 * var(--u)); --edge-r: var(--edge-x);
  }
  .topbar__logo { --lw: calc(122 * var(--u)); }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(8, 6, 26, 0) 0, rgba(8, 6, 26, .15) calc(180 * var(--u)), rgba(8, 6, 26, .94) calc(300 * var(--u)), var(--night) calc(360 * var(--u))),
      var(--hero-bg, radial-gradient(ellipse at 10% 20%, rgba(138, 63, 252, .55), transparent 55%));
    /* the photo is 348u tall, but never narrower than the viewport (2560x1086 -> 100vw * 1086/2560 tall): on
       landscape tablets / phones (the --u height cap below) 348u alone left the photo short of the right edge,
       a hard vertical seam against --night, and 4% left a dark strip at the left edge. Portrait: 348u wins. */
    background-size: 100% 100%, auto max(calc(348 * var(--u)), calc(100vw * 1086 / 2560));
    background-position: 0 0, 4% 0;
  }
  .hero__inner { min-height: 0; padding: calc(200 * var(--u)) var(--edge-x) var(--edge-y); } /* co-branding sits --edge-y above the bottom, like the logo below the top */
  .hero__content { width: auto; }
  /* 12px on narrow phones crosses the bright beam strands: the same tight dark halo as .stop__label */
  .hero__kicker {
    font-size: max(12px, calc(12 * var(--u)));
    text-shadow: 0 0 1px rgba(6, 4, 20, 1), 0 0 2px rgba(6, 4, 20, 1), 0 0 4px rgba(6, 4, 20, .95), 0 0 8px rgba(6, 4, 20, .9),
      0 1px calc(12 * var(--u)) rgba(6, 4, 20, .9);
  }
  .hero__title { font-size: max(30px, calc(34 * var(--u))); margin-top: calc(6 * var(--u)); --title-phrase-lines: 3; }
  .hero__title--long { font-size: max(27px, calc(30 * var(--u))); }
  .hero__meta { font-size: max(14px, calc(14 * var(--u))); gap: 0 calc(8 * var(--u)); margin-top: calc(10 * var(--u)); }

  /* the talk speaker on its own row, the panel group rides the line below */
  .route {
    flex-direction: column; align-items: stretch; gap: calc(22 * var(--u)); margin-top: calc(26 * var(--u));
    --label-h: max(17px, calc(17 * var(--u))); --lead: calc(66 * var(--u)); --wp: calc(50 * var(--u));
  }
  .hero--title3 .route { gap: calc(14 * var(--u)); margin-top: calc(16 * var(--u)); } /* 3-line title (phrase blocks): tighter route, as on hero B */
  .stop--lead { width: auto; flex-direction: row; align-items: center; gap: calc(12 * var(--u)); text-align: right; }
  .stop--lead .stop__label { display: none; }
  .stop--lead .stop__dot { height: auto; }
  .stop--lead .stop__text { align-items: flex-start; }
  .stop--lead .stop__tag { display: block; font-size: max(11px, calc(10.5 * var(--u))); line-height: 1.3; }
  .stop--lead .stop__name { font-size: max(18px, calc(18 * var(--u))); margin-top: 0; }
  .stop--lead .stop__role { display: block; font-size: max(12.5px, calc(12 * var(--u))); margin-top: calc(3 * var(--u)); text-align: right; }
  .stop--lead .role__org { display: inline; }
  .route__panel { gap: 0; }
  .route__panel .stop { flex: 1 1 0; width: auto; min-width: 0; }
  .route__panel::before { top: calc(var(--label-h) + var(--wp) / 2 - 1px); right: 10%; left: 10%; height: 2px; } /* 5 equal columns: centre of first -> centre of last */
  .route__panel .stop__dot { height: var(--wp); }
  .stop__label { font-size: max(11px, calc(10.5 * var(--u))); }
  .avatar { box-shadow: 0 0 0 max(1.5px, calc(1.5 * var(--u))) #fff, 0 0 calc(10 * var(--u)) rgba(128, 57, 233, .75); }
  .stop--lead .avatar { box-shadow: 0 0 0 max(2px, calc(2 * var(--u))) #fff, 0 0 calc(14 * var(--u)) rgba(181, 150, 255, .8); }
  .route__panel .stop__name { font-size: max(13px, calc(12.5 * var(--u))); margin-top: calc(7 * var(--u)); width: min-content; }
  .route__panel .stop__role { display: none; }
  .route__panel .role__title { white-space: normal; }

  .hero__foot { justify-content: space-between; gap: 16px; margin-top: calc(30 * var(--u)); }
  .hero__foot .btn { font-size: 17px; padding: 15px 28px; }
  .hero__partner { position: static; gap: 6px; }
  .hero__partner-label { font-size: 12px; }
  .hero__partner img { width: max(64px, calc(64 * var(--u))); }
}
/* tablet: room for full names and role lines under each panelist */
@media (min-width: 600px) and (max-width: 1099px) {
  .route__panel .stop { padding-inline: 6px; }
  .route__panel .stop__name { width: auto; }
  .route__panel .stop__role { display: block; font-size: 12.5px; margin-top: 3px; }
}
/* landscape tablets / phones: also cap the stacked hero's scale by the viewport height, so the hero CTA
   stays above the fold where it can (1024x768: 1.45 -> 1.2). Never below 1u = 1px (the 375 phone design),
   so short landscape phones keep the phone layout instead of shrinking into the type floors. */
@media (max-width: 1099px) and (orientation: landscape) {
  :root { --u: min(100vw / 375, 1.45px, max(1px, 100vh / 640)); }
  @supports (height: 100svh) { :root { --u: min(100vw / 375, 1.45px, max(1px, 100svh / 640)); } }
}
@media (max-width: 900px) {
  .intro, .register__inner { grid-template-columns: 1fr; gap: 32px; }
  .people--grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 18px; }
  .intro { padding-block: 48px 8px; }
  .session { padding-block: 48px; }
  .person { grid-template-columns: 1fr; justify-items: start; padding: 22px; gap: 16px; }
  .person__photo { width: 120px; height: 120px; }
  .person--compact .person__photo { width: 96px; height: 96px; }
  .register { padding-block: 60px 110px; }
  .register__card { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .agenda__list li { grid-template-columns: 64px 1fr; padding: 16px 18px; font-size: 17px; }
  .sticky-cta { display: flex; position: fixed; inset: auto 16px 16px 16px; z-index: 20; transition: transform .25s ease, opacity .25s ease, visibility 0s; }
  /* hidden = also unfocusable / unclickable (visibility flips after the slide-out; app.js adds tabindex=-1 + aria-hidden) */
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}

/* ---------- invisible reCAPTCHA v3 ----------
   The floating badge is hidden; Google's required notice sits under the submit button instead. */
.grecaptcha-badge { visibility: hidden !important; }
.form__legal { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.form__legal a { color: inherit; }

/* ---------- speaker links (photo + name -> LinkedIn) ---------- */
a.person__photo { display: block; }
.person__name a { color: inherit; text-decoration: none; }
.person__name a:hover, .person__name a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a.stop__dot { color: inherit; }
a.stop__dot .avatar { transition: transform .15s ease, box-shadow .15s ease; }
a.stop__dot:hover .avatar { transform: scale(1.05); }
a.stop__name { display: block; color: inherit; text-decoration: none; }
a.stop__name:hover, a.stop__name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.facts dd a { color: var(--blue-deep); }

/* ---------- in-page CTAs (after the panel description, after the agenda) ---------- */
.section-cta { margin: 0 0 40px; }
.agenda .section-cta { margin: 32px 0 0; }
@media (max-width: 640px) { .section-cta .btn { width: 100%; } }

/* ---------- standalone pages (cancel.php) ---------- */
.standalone {
  min-height: 100vh; margin: 0; color: #fff;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(138, 63, 252, .35), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(63, 107, 255, .3), transparent 55%),
    var(--midnight);
}
.standalone__wrap { max-width: 520px; margin: 0 auto; padding: 48px 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.standalone__logo { --lw: 180px; direction: ltr; }
.standalone__card { width: 100%; background: var(--card); color: var(--ink); border-radius: 22px; padding: 32px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.standalone__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-align: right; }
.standalone__event { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; line-height: 1.4; }
.standalone__event span { font-weight: 400; font-size: 15px; color: var(--muted); }
.standalone__card h1 { font-size: 28px; font-weight: 900; margin: 0 0 12px; }
.standalone__card form { margin: 24px 0 0; }
.standalone__small { margin: 16px 0 0; font-size: 15px; text-align: center; }
.standalone__small a { color: var(--blue-deep); }

/* ---------- seats: "נותרו N מקומות" (low) and sold out ---------- */
.hero__cta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.seats-left {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 700; font-size: 16px; line-height: 1; color: #ffd48a;
  padding: 9px 14px; border-radius: 999px; background: rgba(255, 180, 60, .12); border: 1px solid rgba(255, 196, 102, .45);
}
.seats-left::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffb43c; box-shadow: 0 0 0 0 rgba(255, 180, 60, .7); animation: seats-pulse 1.6s infinite; }
@keyframes seats-pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 180, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 60, 0); } }
.section-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.section-cta .seats-left { color: #9a5b00; background: #fff4e0; border-color: #ffd699; }
.btn--closed { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); box-shadow: none; border: 1px solid rgba(255, 255, 255, .3); cursor: default; }
.btn--closed:hover { transform: none; filter: none; box-shadow: none; }
.register__soldout { text-align: center; padding: 28px 6px; }
.register__soldout h3 { font-size: 30px; font-weight: 900; margin: 0 0 12px; }
.register__soldout p { color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .seats-left::before { animation: none; } }
@media (max-width: 640px) { .section-cta .seats-left { width: 100%; justify-content: center; } }

/* ---------- footer links ---------- */
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- field hint ("לתג שם" under role / company) ---------- */
.field__hint { display: block; direction: rtl; text-align: right; font-size: 13px; line-height: 1.3; color: var(--muted); margin-top: -2px; }

/* ---------- waiting list (sold out) ---------- */
.waitlist-link { color: #fff; font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.waitlist-link:hover { color: var(--hv-label); }
.register__soldout--waitlist { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }

/* ---------- hero speaker -> card (smooth scroll via html{scroll-behavior}) ---------- */
.person { scroll-margin-top: 32px; }
.person:target { animation: card-flash 1.8s ease-out .35s; }
@keyframes card-flash {
  0%, 30% { box-shadow: 0 0 0 3px var(--violet), 0 10px 30px rgba(138, 63, 252, .25); }
  100%    { box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { .person:target { animation: none; box-shadow: 0 0 0 3px var(--violet); } }
