/* Home hero (variant E from hero-lab.html): blue copy card + event photo with VNTR OS notifications.
   Used by index.html and hero-lab.html. Reads the tokens of style.css; hero.js adds reveal and the notifications. */

:root {
  --hl-head: 68px;              /* announcement bar + sticky header; hero.js measures the real offset */
  --hl-vh: calc(100svh - var(--hl-head));
  --hl-r-xl: 32px;              /* hero cards (C, D stage, E) */
  --hl-r-lg: 24px;              /* mosaic tiles */
  --hl-r-md: 20px;              /* floating stat / path cards */
  --hl-pad: 12px;               /* inset of full-bleed cards from the page edge */
  --hl-ease: cubic-bezier(.2, .7, .2, 1);
}
@supports not (height: 100svh) { :root { --hl-vh: calc(100vh - var(--hl-head)); } }
@media (min-width: 720px) { :root { --hl-pad: 20px; } }

.hl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.hl { position: relative; min-height: var(--hl-vh); padding: 0; display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: var(--hl-head); }
.hl .hl-title { font-family: var(--serif); font-weight: 300; text-wrap: balance; }
.hl .hl-title em { font-style: italic; }
.hl .sub { text-wrap: pretty; }
.hl a:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }

/* reveal on first view (JS adds html.hl-js; without JS or with reduced motion everything is simply visible) */
@media (prefers-reduced-motion: no-preference) {
  /* load-in (Caldera): rise 40px + blur 8px → 0 + scale .98, 700ms ease-out-cubic, 90ms stagger */
  .hl-js .hl [data-r] { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(8px); transition: opacity .7s cubic-bezier(.33, 1, .68, 1), transform .7s cubic-bezier(.33, 1, .68, 1), filter .7s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(80ms + var(--d, 0) * 90ms); }
  .hl-js .hl.hl-in [data-r] { opacity: 1; transform: none; filter: none; }
  /* load-in: the H1's second line follows the first; the photo card fades in while its picture settles from 1.06 */
  .hl-js .hl-e .hl-title em { display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .7s cubic-bezier(.33, 1, .68, 1), transform .7s cubic-bezier(.33, 1, .68, 1), filter .7s cubic-bezier(.33, 1, .68, 1); transition-delay: 170ms; }
  .hl-js .hl-e.hl-in .hl-title em { opacity: 1; transform: none; filter: none; }
  .hl-js .hl-e .hl-e-photo { opacity: 0; filter: blur(8px); transition: opacity .9s cubic-bezier(.33, 1, .68, 1) .2s, filter .9s cubic-bezier(.33, 1, .68, 1) .2s; }
  .hl-js .hl-e .hl-e-photo > img { transform: scale(1.06); transition: transform 1.8s var(--hl-ease) .15s; }
  .hl-js .hl-e.hl-in .hl-e-photo { opacity: 1; filter: none; }
  .hl-js .hl-e.hl-in .hl-e-photo > img { transform: none; }
}

/* ═════════ E — Two tall cards ═════════ */
.hl-e { padding: var(--hl-pad) var(--page-gutter); }   /* sides = the shared page container (style.css) */
.hl-e-grid { display: grid; gap: 12px; max-width: var(--page-max); margin: 0 auto; }
.hl-e-blue { position: relative; overflow: hidden; border-radius: var(--hl-r-xl); background: var(--royal); color: #fff; padding: clamp(24px, 3.8vw, 60px); display: flex; flex-direction: column; justify-content: flex-end; gap: 56px;
  --ice: #fff; --ice-2: rgba(255, 255, 255, .86); --mute: rgba(255, 255, 255, .86); --sky: var(--ice-blue); --dot: #fff;
  --btn-bg: #fff; --btn-fg: var(--royal); --btn-hover-bg: var(--beige); --btn-hover-fg: var(--navy);
  --btn2-line: rgba(255, 255, 255, .6); --btn2-hover-bg: #fff; --btn2-hover-fg: var(--royal); }
.hl-e-blue a:focus-visible { outline-color: #fff; }
.hl-e-proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .24); font: 400 14px/1.4 var(--sans); color: rgba(255, 255, 255, .86); }
.hl-stack { display: flex; flex: none; }
.hl-stack img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--royal); }
.hl-stack img + img { margin-left: -10px; }
.hl-e .hl-title { font-size: clamp(38px, 4.2vw, 68px); line-height: .94; letter-spacing: -.045em; max-width: 9.5em; margin: 0 0 24px; color: #fff; }
.hl-e .sub { color: rgba(255, 255, 255, .86); max-width: 32em; margin-bottom: 32px; }
.hl-e-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--hl-r-xl); background: var(--photo); min-height: 460px; }
.hl-e-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; }
.hl-e-cap { position: absolute; top: 16px; right: 16px; padding: 9px 14px; border-radius: var(--r-pill); background: rgba(29, 29, 27, .3); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hl-e-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(29, 29, 27, .42)); pointer-events: none; }
/* OS notifications stacking over the event photo: what happens in VNTR OS after the room */
.hl-toasts { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); display: grid; }
.hl-toasts > .hl-toast { grid-area: 1 / 1; align-self: end; cursor: pointer; user-select: none; }
.hl-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 14px 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 18px; box-shadow: 0 10px 30px rgba(29, 29, 27, .18); color: var(--ink); }
.hl-toast-av { position: relative; flex: none; }
.hl-toast-av img, .hl-toast-ico { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
/* company mark on the founder's avatar (fictional company) */
.hl-toast-av i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 6px; background: var(--navy, #1D4AAA); border: 2px solid #fff; display: grid; place-items: center; font: 600 10px/1 var(--sans); font-style: normal; color: #fff; }
.hl-toast-ico { display: grid; place-items: center; background: var(--royal); }
.hl-toast-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hl-toast-ico.soft { background: var(--beige); }
.hl-toast-ico.soft svg { stroke: var(--royal); }
.hl-toast-body { min-width: 0; flex: 1; }
.hl-toast-top { display: flex; justify-content: space-between; gap: 8px; font: 500 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--royal); margin-bottom: 4px; }
.hl-toast-top time { color: rgba(29, 29, 27, .45); letter-spacing: .04em; text-transform: none; font-size: 11px; font-weight: 400; }
.hl-toast-title { font: 500 14px/1.3 var(--sans); color: var(--ink); }
.hl-toast-text { font: 400 13px/1.4 var(--sans); color: rgba(29, 29, 27, .66); margin-top: 2px; }
@media (min-width: 900px) {
  .hl-e-grid { grid-template-columns: 1fr 1fr; gap: 16px; height: calc(var(--hl-vh) - 2 * var(--hl-pad)); min-height: 600px; }
  .hl-e-photo { min-height: 0; }
  .hl-toasts { right: 24px; bottom: 24px; }
  .hl-e-cap { top: 20px; right: 20px; }
}
@media (max-width: 719px) {
  .hl-e-blue { padding-top: 64px; gap: 40px; }
  .hl-e .btns .btn { flex: 1 1 100%; }
  .hl-e-cap { display: none; }
}

@media (max-width: 479px) {
  .hl-toast { padding: 12px 14px 12px 12px; }
  .hl-toast-av img, .hl-toast-ico { width: 34px; height: 34px; }
  .hl-stack img:nth-child(n+4) { display: none; }
}

/* ═════ E · photo scenes + tab row (hero.js; Mollie-style) ═════ */
.hl-e-photo > img.hl-scene { opacity: 0; transition: opacity 1s ease; }
.hl-e-photo > img.hl-scene.is-on { opacity: 1; }
.hl-e-photo > img.hl-scene:not(.is-on) { pointer-events: none; }
.hl-e-photo::after { z-index: 1; inset: 30% 0 0; background: linear-gradient(180deg, transparent, rgba(29, 29, 27, .55)); }
.hl-tabs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: 20px; padding: 0 24px 18px; }
.hl-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 0; border: 0; background: none; cursor: pointer; font: 500 13px/1.2 var(--sans); color: rgba(255, 255, 255, .72); text-align: left; transition: color .2s ease; }
.hl-tab:hover, .hl-tab.is-on { color: #fff; }
.hl-tab i { display: block; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hl-tab b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
.hl-tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.hl-e-photo .hl-toasts { z-index: 2; }   /* same inset right and bottom (founder, 26.10) — the tabs it used to clear are gone */
@media (min-width: 900px) { .hl-tabs { padding: 0 28px 22px; gap: 24px; } }
@media (max-width: 479px) { .hl-tabs { padding: 0 16px 14px; gap: 12px; } .hl-tab { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .hl-e-photo > img.hl-scene, .hl-tab b { transition: none; } }

/* ═════ headline word rotation (hero.js): a grid stack reserves the widest word — no reflow ═════ */
.hl-rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0 .1em .14em 0; margin: 0 -.1em -.14em 0; }
.hl-rot > span { grid-area: 1 / 1; white-space: nowrap; }
.hl-rot > span:not(.is-on) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hl-js .hl-rot > span { visibility: visible; opacity: 0; transform: translateY(100%); transition: transform .65s var(--hl-ease), opacity .45s ease; }
  .hl-js .hl-rot > span.is-on { opacity: 1; transform: none; }
  .hl-js .hl-rot > span.is-out { opacity: 0; transform: translateY(-100%); }
}

/* hero load-in, Caldera match: text fades with a 16px rise, the photo card pops from scale .9; no blur */
@media (prefers-reduced-motion: no-preference) {
  .hl-js .hl [data-r], .hl-js .hl-e .hl-title em { transform: translateY(16px); filter: none; transition: opacity .6s cubic-bezier(.37, .97, .64, 1), transform .6s cubic-bezier(.37, .97, .64, 1); }
  .hl-js .hl-e .hl-title em { transition-delay: 170ms; }
  .hl-js .hl-e .hl-e-photo { filter: none; transform: scale(.9); transition: opacity .6s cubic-bezier(.37, .97, .64, 1) .15s, transform .6s cubic-bezier(.37, .97, .64, 1) .15s; }
  .hl-js .hl.hl-in [data-r], .hl-js .hl-e.hl-in .hl-title em { transform: none; }
  .hl-js .hl-e.hl-in .hl-e-photo { transform: none; }
}

/* header drops in on load like caldera.xyz (opacity 0 + 32px up → in, 400ms on their curve); homepage only (hl-boot) */
@media (prefers-reduced-motion: no-preference) {
  .hl-boot .site-header { animation: hl-head-in .45s cubic-bezier(.37, .97, .64, 1) both; }
  @keyframes hl-head-in { from { opacity: 0; transform: translateY(-32px); } to { opacity: 1; transform: none; } }
}

/* ═════ mobile first screen (homepages, ≤719px): photo + toast and the H1 both on the first screen ═════
   one-line announcement bar, photo card first (shorter), compact blue card, buttons side by side */
@media (max-width: 719px) {
  /* the summit bar: two short lines, nothing cut (founder, 27.10) — event and date, then the link */
  [data-section="home"] .announcement-bar { flex-wrap: wrap; gap: 2px 8px; padding: 7px 40px; font-size: 12px; line-height: 1.35; }
  .hl-e .hl-e-photo { order: -1; min-height: 300px; }
  .hl-e-blue { padding-top: 28px; gap: 28px; }
  .hl-e .btns .btn { flex: 1 1 auto; }
}

/* homepage H1 in two lines on wide screens (founder, 26.10): "Private capital moves" / "through <rotating word>" */
@media (min-width: 900px) {
  #hl-e-title { max-width: none; text-wrap: wrap; }
  #hl-e-title em { display: block; width: max-content; white-space: nowrap; }
}
