/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px; border: 1px solid var(--line);
  font: 600 var(--step-0)/1 var(--font); text-decoration: none; color: var(--white);
  background: rgb(141 179 245 / 0.08); cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: rgb(141 179 245 / 0.16); color: var(--white); transform: translateY(-1px); }
.btn-buy { background: var(--coral); color: var(--coral-ink); border-color: var(--coral); box-shadow: 0 8px 30px rgb(255 107 125 / 0.35); }
.btn-buy:hover { background: #ff8595; color: var(--coral-ink); }
.btn-qbox { background: var(--laser); color: #04210F; border-color: var(--laser); box-shadow: 0 8px 30px rgb(61 255 138 / 0.3); }
.btn-qbox:hover { background: #7dffb0; color: #04210F; }
.btn-ghost { background: transparent; }
.btn small { font-weight: 500; opacity: 0.8; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---------- Header: a floating glass capsule ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header__inner {
  pointer-events: auto; width: min(100%, calc(var(--max) + 2rem)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 64px; padding: 0 0.6rem 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(rgb(13 20 56 / 0.72), rgb(13 20 56 / 0.72)) padding-box,
              linear-gradient(120deg, rgb(177 91 214 / 0.55), rgb(106 124 240 / 0.35) 45%, rgb(47 211 184 / 0.55)) border-box;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.06);
  transition: min-height 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.is-scrolled .site-header__inner { background: linear-gradient(rgb(11 18 48 / 0.9), rgb(11 18 48 / 0.9)) padding-box, linear-gradient(120deg, rgb(177 91 214 / 0.7), rgb(106 124 240 / 0.45) 45%, rgb(47 211 184 / 0.7)) border-box; box-shadow: 0 14px 50px rgb(0 0 0 / 0.5), 0 0 40px rgb(106 124 240 / 0.12); }
.site-logo { display: flex; align-items: center; }
.site-logo img { width: 150px; height: auto; transition: transform 0.4s var(--ease); }
.site-logo:hover img { transform: scale(1.04); }
.site-nav { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.site-nav__list { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav__list > li > a, .site-nav__sub-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 0.35em; color: var(--white); text-decoration: none;
  font: 500 var(--step--1)/1 var(--font); background: none; border: 0; cursor: pointer; padding: 0.7em 0.95em; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.site-nav__list > li > a:hover, .site-nav__sub-toggle:hover, .has-sub.is-open .site-nav__sub-toggle { background: rgb(141 179 245 / 0.12); }
.site-nav a[aria-current="page"] { background: rgb(255 107 125 / 0.12); color: #fff; }
.site-nav__list > li > a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0.25em; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.site-nav__sub-toggle::after { content: ""; width: 0.45em; height: 0.45em; border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist); transform: translateY(-25%) rotate(45deg); transition: transform 0.3s var(--ease); }
.has-sub.is-open .site-nav__sub-toggle::after { transform: translateY(15%) rotate(-135deg); }
.has-sub { position: relative; }

/* Solutions mega menu: every product with its picture */
.site-nav__sub {
  display: grid; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top center;
  position: absolute; top: calc(100% + 0.9rem); left: 50%; translate: -50% 0;
  grid-template-columns: repeat(2, minmax(270px, 1fr)); gap: var(--space-3); width: max-content;
  padding: var(--space-3); border-radius: 22px; border: 1px solid rgb(141 179 245 / 0.2);
  background: radial-gradient(120% 80% at 0% 0%, rgb(64 82 190 / 0.25), transparent 60%), rgb(10 16 44 / 0.96);
  backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s;
}
.has-sub.is-open .site-nav__sub { visibility: visible; opacity: 1; transform: none; }
.site-nav__sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-nav__group { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.6rem 0.5rem; }
.mega__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.5rem; border-radius: 14px; color: var(--white); text-decoration: none; transition: background 0.2s; }
.mega__item:hover, .mega__item:focus-visible { background: rgb(141 179 245 / 0.1); }
.mega__thumb { flex: none; width: 64px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid rgb(141 179 245 / 0.2); background: #05081a; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.mega__item:hover .mega__thumb img { transform: scale(1.1); }
.mega__thumb--icon { display: grid; place-items: center; background: linear-gradient(135deg, #3b2a7a, #14506a); }
.mega__thumb--icon svg { width: 26px; height: 26px; fill: none; stroke: #cfe0ff; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.mega__text { display: grid; gap: 0.2rem; }
.mega__text b { font: 600 0.95rem/1.2 var(--font); }
.mega__text small { color: var(--mist); font-size: 0.8rem; }
.mega__cta { display: block; margin-top: var(--space-2); padding: 0.8rem 1rem; border-radius: 14px; color: #7cf0d6; font-weight: 600; font-size: 0.88rem; text-decoration: none; background: rgb(47 211 184 / 0.1); border: 1px solid rgb(47 211 184 / 0.25); }
.mega__cta:hover { background: rgb(47 211 184 / 0.16); }

.site-nav .site-nav__cta { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.55em 1.25em; border-radius: 999px; font: 600 var(--step--1)/1 var(--font); color: var(--coral-ink); background: linear-gradient(135deg, #ff8a98, #ff6b7d 55%, #f0507a); box-shadow: 0 6px 24px rgb(255 107 125 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.35); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.site-nav .site-nav__cta small { font-weight: 500; opacity: 0.75; }
.site-nav .site-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgb(255 107 125 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35); color: var(--coral-ink); }
.site-nav .btn-qbox.site-nav__cta { color: #04210F; background: linear-gradient(135deg, #a4ffc8, #3DFF8A 55%, #17d468); box-shadow: 0 6px 24px rgb(61 255 138 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.45); }
.site-nav .btn-qbox.site-nav__cta:hover { color: #04210F; box-shadow: 0 10px 32px rgb(61 255 138 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.45); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 20px; height: 2px; background: var(--white); margin: auto; position: relative; transition: transform 0.2s var(--ease);
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1160px) {
  .site-header { padding: 10px 12px 0; }
  .site-header__inner { padding: 0 0.45rem 0 1rem; min-height: 58px; }
  .site-logo img { width: 132px; }
  .nav-toggle { display: block; border-radius: 999px; width: 44px; height: 44px; }
  .site-nav {
    display: flex; visibility: hidden; opacity: 0; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: var(--space-3);
    padding: 92px var(--gutter) var(--space-4); overflow-y: auto;
    background: radial-gradient(80% 50% at 80% 0%, rgb(106 124 240 / 0.28), transparent 70%), radial-gradient(70% 50% at 0% 100%, rgb(47 211 184 / 0.16), transparent 70%), rgb(8 12 34);
    transition: opacity 0.3s, visibility 0.3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a, .site-nav__sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 1rem 0.2rem; border-radius: 0; font-size: var(--step-1); font-weight: 600; }
  .site-nav__list > li > a:hover, .site-nav__sub-toggle:hover, .has-sub.is-open .site-nav__sub-toggle, .site-nav a[aria-current="page"] { background: none; }
  .site-nav a[aria-current="page"] { color: var(--coral); }
  .site-nav__list > li > a[aria-current="page"]::after { display: none; }
  .site-nav__sub { position: static; translate: none; width: auto; display: none; visibility: visible; opacity: 1; transform: none; grid-template-columns: 1fr; gap: var(--space-2); padding: 0 0 var(--space-3); border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .has-sub.is-open .site-nav__sub { display: grid; }
  .site-nav .site-nav__cta { justify-content: center; min-height: 52px; font-size: var(--step-0); }
}
.nav-open { overflow: hidden; }
.lang-switch { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin-left: 0.5rem; border-radius: 999px; border: 1px solid rgb(141 179 245 / 0.35); color: var(--white); font: 600 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.lang-switch:hover, .lang-switch:focus-visible { background: rgb(141 179 245 / 0.14); border-color: rgb(141 179 245 / 0.7); color: var(--white); }
@media (max-width: 1160px) { .lang-switch { order: 1; margin-left: auto; margin-right: 0.5rem; } .nav-toggle { order: 2; } }
.nav-open .site-header__inner { backdrop-filter: none; -webkit-backdrop-filter: none; } /* a filter would trap the fixed full-screen menu inside the capsule */


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080D24; padding-top: var(--space-5); margin-top: var(--space-6); }
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: var(--space-4);
}
.site-footer__brand img { width: 170px; margin-bottom: var(--space-2); }
.site-footer__tag { font-weight: 700; }
.site-footer__note { color: var(--mist); font-size: var(--step--1); max-width: 34ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a { color: var(--mist); text-decoration: none; font-size: var(--step--1); }
.site-footer a:hover { color: var(--white); }
.site-footer__h { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-2); }
.site-footer address { font-style: normal; font-size: var(--step--1); }
.site-footer__legal {
  width: min(100% - 2 * var(--gutter), var(--max)); margin: var(--space-4) auto 0; padding-block: var(--space-3);
  border-top: 1px solid var(--line); color: var(--mist); font-size: 0.8rem;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-2) 0; }
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Placeholders (visible on purpose) ---------- */
.placeholder-text {
  display: inline-block; font-family: var(--mono); font-size: 0.82em; color: #FFD166;
  background: rgb(255 209 102 / 0.08); border: 1px dashed rgb(255 209 102 / 0.55); border-radius: 6px; padding: 0.1em 0.45em;
}
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid var(--line); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media[data-pending]::after {
  content: attr(data-pending); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 500 0.78rem/1.3 var(--mono); color: var(--mist); text-align: center; padding: 0.6em 0.9em;
  border: 1px dashed var(--line); border-radius: 8px; background: rgb(11 18 48 / 0.6); max-width: 80%;
}
.media--wide { aspect-ratio: 1920 / 1072; margin-bottom: var(--space-4); }
.media figcaption, .caption { font: 500 0.75rem/1.3 var(--mono); color: var(--mist); margin-top: 0.6rem; letter-spacing: 0.05em; }
.media .badge-illustration, .film .badge-illustration, .cinema .badge-illustration {
  position: absolute; left: 1rem; bottom: 1rem; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgb(11 18 48 / 0.8); color: var(--mist); border: 1px solid var(--line); padding: 0.5em 0.8em; border-radius: 999px;
}

/* ---------- Cards, grids, stats ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card {
  background: linear-gradient(180deg, rgb(26 37 80 / 0.7), rgb(17 27 61 / 0.7));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color 0.2s, transform 0.2s var(--ease); }
.card--link:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-2); }
.stat { border-top: 2px solid var(--coral); padding-top: var(--space-2); }
.stat b { display: block; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.stat span { color: var(--mist); font-size: var(--step--1); }
.stat b.mono { font-size: var(--step-2); line-height: 1.5; }

.spec { width: 100%; font-size: var(--step--1); }
.spec th, .spec td { text-align: left; padding: 0.85em 0.6em; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--mist); font-weight: 500; width: 36%; }
.table-scroll { overflow-x: auto; }

.price { display: inline-flex; flex-direction: column; gap: 0.1rem; }
.price b { font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.price span { font-size: var(--step--1); color: var(--mist); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35em 0.9em; font-size: var(--step--1); color: var(--mist); }

/* ---------- Page hero ---------- */
.page-hero { padding-block: var(--space-5) var(--space-4); }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-4); align-items: center; }
.page-hero .media { aspect-ratio: 16 / 10; }
.media--round, .page-hero .media--round { aspect-ratio: 1; border-radius: 50%; max-width: 420px; margin-inline: auto; background: radial-gradient(circle at 50% 45%, #1E2A5A, var(--navy) 70%); }
/* Vegabit is a cut-out: keep its cable tips inside the circle. */
.media.media--round img { width: 86%; height: 86%; margin: 7%; object-fit: contain; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: var(--step--1); color: var(--mist); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7em 0.9em; border-radius: 12px; border: 1px solid var(--line);
  background: rgb(11 18 48 / 0.6); color: var(--white); font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--mist); }
.check input { width: 20px; height: 20px; margin-top: 0.2em; accent-color: var(--coral); }
.form-status { min-height: 1.6em; font-size: var(--step--1); }
.form-seller { margin: 0; font-size: var(--step--1); }
.form [hidden] { display: none; }
.form-status[data-state="ok"] { color: var(--laser); }
.form-status[data-state="error"] { color: var(--coral); }

/* ---------- Widgets ---------- */
.widget { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #070B1F; padding: var(--space-3); }
.widget canvas { touch-action: pan-y; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto var(--space-2); border-radius: 50%; background: #000; }
.widget input[type="range"] { width: 100%; accent-color: var(--laser); min-height: 44px; }
.widget output { display: block; font-family: var(--mono); color: var(--laser); text-align: center; margin-top: 0.4rem; }
.widget .gate-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.widget .gate-row button { min-width: 56px; }

.bloch-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.bloch-stage canvas { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 0; background: transparent; margin: 0; }
.bloch-fallback { margin: 0; display: grid; place-items: center; height: 100%; }
.bloch-fallback svg { width: 80%; }
.has-webgl .bloch-fallback { display: none; }
.bloch-label { position: absolute; left: 50%; transform: translateX(-50%); font: 500 0.85rem/1 var(--mono); color: var(--mist); display: none; }
.has-webgl .bloch-label { display: block; }
.bloch-label--top { top: 2%; }
.bloch-label--bottom { bottom: 2%; }
.bloch-state { text-align: center; color: var(--mist); margin: var(--space-2) 0; }
.bloch-state b { color: var(--coral); font-family: var(--mono); }
.steps { list-style: none; padding: 0; }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--line); margin-top: var(--space-3); }
.timeline li { position: relative; padding: var(--space-3) var(--space-2) 0 0; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px var(--coral); }
.timeline b { display: block; font-size: var(--step-2); }
.timeline span { color: var(--mist); }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); } .timeline li { padding: 0 0 var(--space-3) var(--space-3); } .timeline li::before { top: 6px; left: -8px; } }
.steps h3 { margin-top: 0.4rem; }

.ref-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.ref-list h2 { font-size: var(--step-2); }
.contact-list { font-style: normal; display: grid; gap: var(--space-1); }
.contact-list a { font-size: var(--step-1); font-weight: 600; text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: var(--space-2) 0; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid var(--blue); font-size: var(--step-1); line-height: 1.45; }
.prose blockquote p { margin: 0; }

/* ---------- Film frames: Higgsfield media shown full-bleed ---------- */
.film { position: relative; overflow: hidden; display: grid; align-items: end; min-height: min(92svh, 940px); padding-block: var(--space-6) var(--space-5); isolation: isolate; }
.film--band { min-height: min(86svh, 860px); }
.film__media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.film__media img, .film__media video { width: 100%; height: 100%; object-fit: cover; }
/* Copy on the right when the subject sits on the left of the frame. */
@media (min-width: 861px) {
  .film.film--text-right::before { background: linear-gradient(270deg, rgb(11 18 48 / 0.94) 0%, rgb(11 18 48 / 0.82) 36%, rgb(11 18 48 / 0.35) 54%, rgb(11 18 48 / 0) 68%), linear-gradient(180deg, rgb(11 18 48 / 0) 55%, var(--navy) 100%); }
  .film--text-right .film__inner > * { margin-left: auto; }
}
/* Scroll-scrubbed film: the stage pins while the clip plays through (story.js adds .is-live). */
/* Pin only where the whole stage fits on screen (wide and tall enough). */
@media (min-width: 861px) and (min-height: 700px) {
  .scrub.is-live { height: 240svh; }
  .scrub.is-live .scrub__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
/* Unboxing: a contained clip under a heading; on desktop the stage pins and the box opens as you scroll. */
.unbox { padding-block: var(--space-5); text-align: center; }
.unbox__media { aspect-ratio: 16 / 9; margin: var(--space-3) auto 0; }
@media (min-width: 861px) {
  .unbox.is-live { padding-block: 0; }
  .unbox.is-live .unbox__stage { display: grid; align-content: center; padding-top: 4.5rem; }
  .unbox__media { width: min(100%, calc((100svh - 16rem) * 16 / 9)); }
}
.film::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(11 18 48 / 0.88) 0%, rgb(11 18 48 / 0.55) 38%, rgb(11 18 48 / 0) 65%), linear-gradient(180deg, rgb(11 18 48 / 0) 55%, var(--navy) 100%); }
.film__inner { position: relative; z-index: 1; }
.film__inner > * { max-width: 36rem; }
.film .badge-illustration { left: auto; right: var(--gutter); bottom: 1.25rem; z-index: 2; }
/* Render padded on the left: keep the subject's right edge in frame while cropping and drifting. */
@media (min-width: 861px) { .film--subject-right .film__media img { object-position: right center; transform-origin: 75% 50%; } }
@media (max-width: 860px) {
  .film::before { background: linear-gradient(180deg, rgb(11 18 48 / 0.15) 0%, rgb(11 18 48 / 0.7) 45%, var(--navy) 85%); }
  .film { min-height: auto; padding-top: 62vw; }
  .film__media { bottom: auto; height: 78vw; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .film__media img { animation: film-drift linear both; animation-timeline: view(); }
  }
}
@keyframes film-drift { from { transform: scale(1.02); } to { transform: scale(1.14); } }

/* ---------- BB84 "Try to eavesdrop" (eavesdrop.js) ---------- */
.bb84 { display: grid; gap: var(--space-3); }
.bb84__stage { position: relative; }
.bb84 canvas { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 4.2; margin: 0; border-radius: var(--radius); background: #04071a; cursor: crosshair; touch-action: pan-y; }
.bb84__bit { position: absolute; left: 9%; top: 50%; width: 9%; max-width: 64px; height: auto; translate: -50% -125%; filter: drop-shadow(0 0 10px rgb(95 227 232 / 0.5)); pointer-events: none; }
.bb84.is-eve .bb84__bit { animation: bit-shake 0.35s linear infinite; }
@keyframes bit-shake { 25% { rotate: -9deg; } 75% { rotate: 9deg; } }
.bb84__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: 0; }
.bb84__stats div { border-top: 2px solid var(--line); padding-top: 0.5rem; }
.bb84__stats dt { font-size: 0.85rem; color: var(--mist); }
.bb84__stats dd { margin: 0; font: 600 var(--step-2)/1.1 var(--mono); }
.bb84[data-state="intercepted"] [data-stat="qber"] { color: var(--coral, #FF6B7D); }
.bb84__key { display: flex; flex-wrap: wrap; gap: 4px; min-height: 14px; }
.bb84__key i { width: 10px; height: 10px; border-radius: 2px; background: #3DFF8A; box-shadow: 0 0 6px rgb(61 255 138 / 0.6); }
.bb84__key i.is-err { background: #FF6B7D; box-shadow: 0 0 6px rgb(255 107 125 / 0.7); }
.bb84__verdict { margin: 0; padding: 0.7rem 1rem; border-radius: var(--radius); font-weight: 600; background: rgb(141 179 245 / 0.08); }
.bb84[data-state="secure"] .bb84__verdict { background: rgb(61 255 138 / 0.1); color: #3DFF8A; }
.bb84[data-state="intercepted"] .bb84__verdict { background: rgb(255 107 125 / 0.14); color: #FF8A98; }
@media (max-width: 700px) { .bb84 canvas { aspect-ratio: 16 / 8; } .bb84__stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bb84.is-eve .bb84__bit { animation: none; } }

/* ---------- Qubit Race as the game (race.js) ---------- */
/* Box-art gradient, reused for tiles and cards */
:root { --race: linear-gradient(135deg, #b15bd6 0%, #6a7cf0 45%, #2fd3b8 100%); }

.race-hud { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem 0.55rem 0.7rem; border-radius: 999px; background: rgb(11 18 48 / 0.85); border: 1px solid var(--line); backdrop-filter: blur(10px); font: 500 0.8rem/1 var(--mono); color: var(--mist); }
.race-hud svg { width: 18px; height: 24px; fill: var(--coral); filter: drop-shadow(0 0 6px rgb(255 107 125 / 0.6)); }
.race-hud.is-moving svg { animation: pawn-hop 0.35s var(--ease); }
.race-hud b { color: #fff; font-size: 1rem; }
.race-hud__track { width: 90px; height: 4px; border-radius: 4px; background: rgb(141 179 245 / 0.2); overflow: hidden; }
.race-hud__track i { display: block; height: 100%; width: 1%; background: var(--race); transition: width 0.3s var(--ease); }
.race-hud.is-won { border-color: #2fd3b8; box-shadow: 0 0 24px rgb(47 211 184 / 0.4); }
@keyframes pawn-hop { 50% { translate: 0 -6px; } }
@media (max-width: 700px) { .race-hud { right: 10px; bottom: 10px; padding: 0.4rem 0.7rem; } .race-hud__track, .race-hud__label span { display: none; } }

.tiles { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.tile { position: relative; padding: var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius-lg); background: linear-gradient(#0f1740, #0f1740) padding-box, var(--race) border-box; border: 1.5px solid transparent; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; background: var(--race); filter: blur(60px); opacity: 0.25; }
.tile__n { font: 700 3.2rem/1 var(--font); background: var(--race); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile h3 { margin: 0.8rem 0 0.4rem; }
.tile p { color: var(--mist); margin: 0; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.turn__row { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-5); align-items: center; margin-top: var(--space-5); }
.turn__row--flip .turn__steps { order: 2; }
.turn__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.turn__steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.turn__n { display: grid; place-items: center; width: 3.6rem; aspect-ratio: 1; border-radius: 14px; font: 700 1.8rem/1 var(--font); background: var(--race); color: #fff; box-shadow: 0 8px 30px rgb(106 124 240 / 0.35); }
.turn__steps h3 { margin: 0.2rem 0 0.3rem; font-size: var(--step-1); }
.turn__steps p { margin: 0; color: var(--mist); }
@media (max-width: 860px) { .turn__row { grid-template-columns: 1fr; } .turn__row--flip .turn__steps { order: 0; } }

.puzzle { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.puzzle__ends { display: flex; align-items: center; gap: var(--space-3); }
.puzzle__arrow { font-size: 2rem; color: var(--mist); }
.pcard { display: grid; place-items: center; align-content: center; gap: 0.2rem; width: 5.2rem; height: 7rem; border-radius: 12px; border: 1.5px solid var(--line); background: #121b48; color: #fff; font: 700 1.9rem/1 var(--font); }
.pcard small { font: 500 0.65rem/1 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--mist); }
.pcard--start, .pcard--target { background: linear-gradient(#121b48, #121b48) padding-box, var(--race) border-box; border-color: transparent; }
.puzzle__grid { display: grid; grid-template-columns: repeat(3, auto); gap: 0.7rem; }
button.pcard { cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
button.pcard:hover { transform: translateY(-4px); }
.pcard--top { color: #7cf0d6; }
.pcard--bottom { color: #ff9aa7; }
button.pcard[aria-pressed="true"] { transform: translateY(-8px); border-color: #fff; box-shadow: 0 10px 30px rgb(141 179 245 / 0.45); }
.puzzle__sum { min-height: 3em; margin: 0; font: 500 0.95rem/1.5 var(--mono); color: var(--mist); }
.puzzle.is-solved .puzzle__sum { color: #7cf0d6; }
.puzzle.is-solved .pcard--target { box-shadow: 0 0 40px rgb(47 211 184 / 0.6); }
@media (max-width: 420px) { .pcard { width: 4.3rem; height: 5.8rem; font-size: 1.6rem; } }

.dice-box { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.dice { display: flex; gap: var(--space-4); padding: var(--space-4) 0; perspective: 700px; }
.die { position: relative; width: 84px; height: 84px; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(30deg); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.die__face { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px; border-radius: 14px; background: #f3ecdc; box-shadow: inset 0 0 12px rgb(0 0 0 / 0.25); }
.die__face i { width: 13px; height: 13px; margin: auto; border-radius: 50%; }
.die__face i.on { background: #1b1b2e; }
.die__face--1 { transform: translateZ(42px); }
.die__face--6 { transform: rotateY(180deg) translateZ(42px); }
.die__face--2 { transform: rotateY(90deg) translateZ(42px); }
.die__face--5 { transform: rotateY(-90deg) translateZ(42px); }
.die__face--3 { transform: rotateX(90deg) translateZ(42px); }
.die__face--4 { transform: rotateX(-90deg) translateZ(42px); }
.dice__out { margin: 0; max-width: 40ch; color: var(--mist); min-height: 3em; }
@media (prefers-reduced-motion: reduce) { .die { transition: none; } }

.qtypes { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.qtype { padding: var(--space-4) var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, #1d2a6a 0%, #0d1438 70%); text-align: center; transition: transform 0.3s var(--ease), border-color 0.3s; }
.qtype:hover { transform: translateY(-6px); border-color: #6a7cf0; }
.qtype svg { display: block; margin: 0 auto; width: 64px; height: 64px; fill: none; stroke: #8db3f5; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 10px rgb(141 179 245 / 0.6)); }
.qtype circle { fill: rgb(141 179 245 / 0.15); }
.qtype h3 { margin: 0.9rem 0 0.35rem; font-size: var(--step-0, 1.05rem); }
.qtype p { margin: 0; color: var(--mist); font-size: 0.92rem; }
@media (max-width: 1000px) { .qtypes { grid-template-columns: repeat(2, 1fr); } }

.careers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.career { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-4); align-items: center; }
.career--academia { background: radial-gradient(120% 120% at 0% 0%, #23308a 0%, #0d1438 70%); }
.career--industry { background: radial-gradient(120% 120% at 0% 0%, #7a2440 0%, #1a0f2e 70%); }
.career h3 { margin: 0 0 0.4rem; font-size: var(--step-2); }
.career p { margin: 0; color: var(--mist); grid-column: 2; }
.career .timer { grid-row: span 2; }
.timer { --c: #8db3f5; position: relative; display: grid; place-items: center; align-content: center; width: 7.5rem; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--t, 1) * 360deg), rgb(255 255 255 / 0.08) 0); }
.career--industry .timer { --c: #ff6b7d; }
.timer::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0b1230; }
.timer b, .timer span { position: relative; }
.timer b { font: 700 2.4rem/1 var(--font); }
.timer span { font: 500 0.7rem/1 var(--mono); color: var(--mist); text-transform: uppercase; letter-spacing: 0.15em; }
@property --t { syntax: "<number>"; inherits: false; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) { .timer { animation: countdown calc(var(--s) * 1s) linear infinite; } }
@keyframes countdown { from { --t: 1; } to { --t: 0; } }
@media (max-width: 760px) { .careers { grid-template-columns: 1fr; } .career { grid-template-columns: 1fr; text-align: center; justify-items: center; } .career p { grid-column: auto; } .career .timer { grid-row: auto; margin-bottom: var(--space-3); } }

.glyphs { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.glyphs li { padding: var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #0d1438; }
.glyph { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border-radius: 12px; font: 700 1.9rem/1 var(--font); color: #0b1230; background: var(--race); box-shadow: 0 8px 26px rgb(106 124 240 / 0.35); }
.glyphs h3 { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; }
.glyphs p { margin: 0; color: var(--mist); font-size: 0.92rem; }
@media (max-width: 1000px) { .glyphs { grid-template-columns: repeat(2, 1fr); } }

.learn .film__inner > * { max-width: 46rem; }
.learn__list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.learn__list li { padding: 0.65rem 1rem; border-radius: 999px; background: rgb(11 18 48 / 0.7); border: 1px solid rgb(141 179 245 / 0.35); backdrop-filter: blur(8px); font-weight: 500; }

/* Chapters: text beside a framed picture or clip, never stretched past its own resolution. */
.split__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: center; }
.split--flip .split__text { order: 2; }
.split__text h2 { max-width: 14ch; }
.split__text .stats { list-style: none; padding: 0; margin: var(--space-3) 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split__text .stat b { font-size: var(--step-2); }
.split__media { margin: 0; max-width: 1280px; justify-self: center; width: 100%; }
.scrub.is-live .split__stage { display: grid; align-content: center; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgb(141 179 245 / 0.22); background: #05081a; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 70px rgb(106 124 240 / 0.16); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .badge-illustration { position: absolute; left: 1rem; bottom: 1rem; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: rgb(11 18 48 / 0.8); color: var(--mist); border: 1px solid var(--line); padding: 0.5em 0.8em; border-radius: 999px; }
.split { background: radial-gradient(50% 60% at 72% 50%, rgb(64 82 190 / 0.22), transparent 70%), var(--navy); }
.split--flip { background: radial-gradient(50% 60% at 28% 50%, rgb(47 211 184 / 0.14), transparent 70%), var(--navy); }
@media (max-width: 860px) {
  .split__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .split--flip .split__text { order: 0; }
  .split__media { order: -1; }
}

.split__stage { padding-block: var(--space-5); }
.hero-split .split__text h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); }

/* ===== Shared "colour worlds" system (variant A, chosen 2026-11-23) ===== */
/* QKD and PQC: two service cards, pictures at their own 16:9 */
.svcs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.svc { display: grid; gap: var(--space-3); color: inherit; text-decoration: none; }
.svc__media { aspect-ratio: 16 / 9; }
.svc__media img { transition: transform 1s var(--ease); }
.svc:hover .svc__media img, .svc:focus-visible .svc__media img { transform: scale(1.05); }
.svc__text { display: grid; gap: 0.5rem; }
.svc__title { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; }
.svc__cta { font-weight: 600; color: var(--coral); }
@media (max-width: 760px) { .svcs { grid-template-columns: 1fr; } }

/* Full-screen chapters on home */
.film.chapter { min-height: 100svh; padding-block: var(--space-6); }
.film__inner .stats { list-style: none; padding: 0; margin: var(--space-3) 0; }

/* The rail is a fibre: a photon pulse runs down it. */
.photon-rail__line::after { content: ""; position: absolute; left: -1px; width: 4px; height: 140px; border-radius: 2px; background: linear-gradient(180deg, transparent, #8db3f5, transparent); animation: fibre-pulse 11s linear infinite; }
@keyframes fibre-pulse { from { top: 0; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .photon-rail__line::after { display: none; } }

/* Vegabit travels with the scroll (vegabit.js) */
.vegabit { position: fixed; left: 0; top: 0; z-index: 30; width: 96px; height: auto; pointer-events: none; will-change: transform, width; opacity: 0; }
.vegabit__say { position: fixed; left: 0; top: 0; z-index: 31; margin: 0; width: max-content; max-width: 17rem; padding: 0.7rem 0.95rem; border-radius: 16px 16px 16px 4px; background: #f4f6ff; color: #0b1230; font: 600 0.92rem/1.35 var(--font); box-shadow: 0 12px 34px rgb(0 0 0 / 0.35); pointer-events: none; opacity: 0; transform: translate(0, -100%) scale(0.96); transform-origin: left bottom; transition: opacity 0.3s, transform 0.3s var(--ease); }
.vegabit__say.is-on { opacity: 1; transform: translate(0, -100%); }
.vegabit__say.says-left { border-radius: 16px 16px 4px 16px; transform-origin: right bottom; }
.vegabit__say.says-below { border-radius: 4px 16px 16px 16px; transform: translate(0, 0) scale(0.96); transform-origin: left top; }
.vegabit__say.says-below.is-on { transform: none; }
.vegabit__say.says-below.says-left { border-radius: 16px 4px 16px 16px; }
@media (max-width: 700px) { .vegabit__say { max-width: 12rem; font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .vegabit, .vegabit__say { display: none; } }
@keyframes bit-bob { 50% { translate: 0 -6px; } }

/* 05 · Lyra: a sky map of Vega's constellation, the references at its stars */
.lyra { overflow: hidden; background: radial-gradient(60% 70% at 70% 45%, rgb(64 82 190 / 0.35), transparent 70%), var(--navy); }
.lyra::before { content: ""; position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #cfd8ff, transparent), radial-gradient(1.5px 1.5px at 44% 34%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent), radial-gradient(1px 1px at 81% 64%, #cfd8ff, transparent), radial-gradient(1.5px 1.5px at 92% 28%, #fff, transparent), radial-gradient(1px 1px at 55% 88%, #fff, transparent), radial-gradient(1px 1px at 7% 52%, #cfd8ff, transparent), radial-gradient(1px 1px at 36% 8%, #fff, transparent), radial-gradient(1px 1px at 74% 82%, #fff, transparent);
  background-size: 420px 420px; }
.lyra__grid { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); align-items: center; }
.lyra__sky { margin: 0; }
.lyra__map { position: relative; aspect-ratio: 1; width: min(100%, 640px); margin-inline: auto; }
.lyra__map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lyra__lines line { stroke: rgb(170 196 255 / 0.7); stroke-width: 0.008; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lyra__star { fill: #fff; filter: drop-shadow(0 0 0.03px #fff) drop-shadow(0 0 0.06px #8db3f5); }
.lyra__star--vega { fill: #f3f8ff; filter: drop-shadow(0 0 0.06px #fff) drop-shadow(0 0 0.14px #8db3f5); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lyra__lines line { animation: lyra-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .lyra__star, .lyra__labels li { animation: lyra-in linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  }
}
@keyframes lyra-draw { from { stroke-dashoffset: 1; } }
@keyframes lyra-in { from { opacity: 0; } }
.lyra__labels { list-style: none; margin: 0; padding: 0; }
.lyra__labels li { position: absolute; left: var(--x); top: var(--y); width: 14rem; translate: 1.2rem -50%; font-size: 0.9rem; line-height: 1.3; }
.lyra__labels li:is([data-star="Vega"], [data-star="Delta Lyrae"], [data-star="Sulafat"]) { translate: calc(-100% - 1.2rem) -50%; text-align: right; }
.lyra__labels li[data-star="Zeta Lyrae"] { translate: 1.2rem -10%; }
.lyra__labels b { display: block; font-weight: 600; }
.lyra__labels span { color: var(--mist); font-size: 0.82rem; }
.lyra__sky .caption { text-align: center; }
@media (max-width: 960px) {
  .lyra__grid { grid-template-columns: 1fr; }
  .lyra__labels li { width: 8.5rem; font-size: 0.74rem; }
  .lyra__labels li span { display: none; }
}

/* 06 · Contact: Vegabit big, the call to action beside him */
.chapter--contact { background: radial-gradient(50% 60% at 25% 50%, rgb(47 211 210 / 0.16), transparent 70%), var(--navy); }
.contact-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; min-height: 80svh; }
.contact-hero__bit { width: min(100%, 420px); height: auto; justify-self: center; filter: drop-shadow(0 0 50px rgb(95 227 232 / 0.35)); animation: bit-bob 4s ease-in-out infinite; }
@media (max-width: 860px) { .contact-hero { grid-template-columns: 1fr; text-align: center; min-height: 0; } .contact-hero__bit { width: min(70vw, 320px); } }
.contact-hero__home { position: relative; justify-self: center; }
.contact-hero__say { position: absolute; right: 4%; top: 6%; margin: 0; padding: 0.8rem 1.05rem; border-radius: 18px 18px 4px 18px; background: #f4f6ff; color: #0b1230; font: 600 1rem/1.3 var(--font); box-shadow: 0 12px 34px rgb(0 0 0 / 0.35); opacity: 0; transform: translateY(8px) scale(0.95); transition: opacity 0.4s, transform 0.4s var(--ease); }
.is-greeting .contact-hero__say, .no-js .contact-hero__say { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .contact-hero__say { opacity: 1; transform: none; } }

/* ---------- Variant A · colour worlds (everything after the cinema) ---------- */
.world { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vh, 8rem); isolation: isolate; }
/* Big, but sized by the window's width AND height, so a short laptop window never gets a wall of type. */
.world h2 { margin: 0 0 1.1rem; max-width: 13ch; font-size: clamp(2.4rem, min(5.4vw, 9.5vh), 5.8rem); line-height: 0.95; letter-spacing: -0.045em; }
.world .eyebrow { margin-bottom: 1.2rem; }
.world .lede { max-width: 40ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); }
.world__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.world__grid--wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
.world__chips { list-style: none; margin: 1.4rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.world__chips li { padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; background: rgb(255 255 255 / 0.18); border: 1px solid rgb(255 255 255 / 0.25); backdrop-filter: blur(6px); }
.world__stats { list-style: none; margin: 1.6rem 0; padding: 0; display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); }
.world__stats b { display: block; font: 800 clamp(2.4rem, min(4.5vw, 8vh), 4.4rem)/0.9 var(--font); letter-spacing: -0.05em; }
.world__stats span { color: rgb(255 255 255 / 0.7); }
.world__media { margin: 0; }
.btn-ink { background: #0b1230; color: #fff; border: 0; box-shadow: 0 12px 30px rgb(11 18 48 / 0.45); }
.btn-ink:hover { background: #18225a; color: #fff; }
.btn-ink small { opacity: 0.7; margin-left: 0.3em; }
.btn-glass { background: rgb(255 255 255 / 0.14); color: #fff; border: 1px solid rgb(255 255 255 / 0.3); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / 0.24); color: #fff; }

/* 02 · Qubit Race lives inside its own box art */
.world--qr { background: linear-gradient(135deg, #8d3fc4 0%, #5a63e6 46%, #1fb9a2 100%); color: #fff; }
.world--qr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 78% 55%, rgb(255 255 255 / 0.22), transparent 70%); }
.world--qr .eyebrow { color: rgb(255 255 255 / 0.85); }
.world .lede { color: rgb(255 255 255 / 0.86); }
.world__float { position: relative; margin: 0 -8vw 0 0; }
.world__float img { display: block; width: 100%; height: auto; filter: drop-shadow(0 50px 50px rgb(28 8 70 / 0.45)); transform: rotate(-3deg); transition: transform 1.2s var(--ease); }
.world__float:hover img { transform: rotate(-1deg) scale(1.02); }
.world__float .badge-illustration { position: absolute; right: 12%; bottom: 0; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: rgb(11 18 48 / 0.6); color: #fff; border: 1px solid rgb(255 255 255 / 0.3); padding: 0.5em 0.8em; border-radius: 999px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .world__float img { animation: box-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes box-in { from { transform: translate(18%, 10%) rotate(-12deg) scale(0.85); opacity: 0.2; } }

/* 03 · the lab at night, with its red and green beams */
.world--lab { background: radial-gradient(50% 60% at 75% 50%, rgb(120 40 30 / 0.35), transparent 70%), #07060b; color: #fff; }
.world--lab::before, .world--lab::after { content: ""; position: absolute; left: 42%; right: -10%; height: 2px; z-index: -1; }
.world--lab::before { top: 22%; background: #3dff8a; box-shadow: 0 0 14px 3px rgb(61 255 138 / 0.6), 0 0 60px 14px rgb(61 255 138 / 0.18); transform: rotate(-3deg); }
.world--lab::after { bottom: 18%; background: #ff4d5e; box-shadow: 0 0 14px 3px rgb(255 77 94 / 0.6), 0 0 60px 14px rgb(255 77 94 / 0.18); transform: rotate(2deg); }
.world--lab .eyebrow { color: #ff8a98; }
.world--lab .world__media { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 100px rgb(0 0 0 / 0.8), 0 0 80px rgb(255 77 94 / 0.15); }

/* 04 · quantum security: deep blue, coral accents */
.world--key { background: radial-gradient(60% 50% at 80% 30%, rgb(47 90 220 / 0.35), transparent 70%), linear-gradient(180deg, #071036, #040719); color: #fff; }
.world--key h2 { color: #fff; }
.world--key .eyebrow { color: #8db3f5; }
.world__svcs { margin-top: clamp(3rem, 6vw, 5rem); }

/* 05 · Lyra and 06 · contact share the big type */
.world.lyra h2 { max-width: 12ch; }
.world--contact { background: radial-gradient(55% 70% at 25% 50%, rgb(47 211 210 / 0.3), transparent 70%), linear-gradient(135deg, #062a35, #0b1230 70%); }
.world--contact .contact-hero { min-height: 0; }

@media (max-width: 860px) {
  .world__grid, .world__grid--wide { grid-template-columns: 1fr; }
  .world__float { margin: 0 -10vw 0 0; order: -1; }
  .world h2 { max-width: none; }
}

/* 04 · the BB84 demo, compact, right in the chapter */
.world__demo { margin: 0; }
.world__demo .caption { margin-top: 0.7rem; color: rgb(255 255 255 / 0.6); }
.bb84--compact { gap: var(--space-2); background: rgb(4 7 26 / 0.75); border-color: rgb(141 179 245 / 0.25); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 60px rgb(64 82 190 / 0.25); }
.bb84--compact canvas { aspect-ratio: 16 / 5.2; }
.bb84--compact .bb84__stats { grid-template-columns: repeat(3, 1fr); }
.bb84--compact .bb84__stats dd { font-size: var(--step-1); }
.world--key .world__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
/* the two services as compact horizontal cards */
.world__svcs .svc { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; padding: 0.8rem; border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.04); border: 1px solid rgb(141 179 245 / 0.16); transition: background 0.3s, border-color 0.3s; }
.world__svcs .svc:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(141 179 245 / 0.35); }
.world__svcs .svc__title { font-size: var(--step-1); }
.world__svcs .svc__media { border-radius: 14px; }
.world--contact h2 { max-width: 16ch; font-size: clamp(2.2rem, min(4.4vw, 8vh), 4.6rem); }
@media (max-width: 860px) { .world--key .world__grid { grid-template-columns: 1fr; } .world__svcs .svc { grid-template-columns: 1fr; } }

/* Home ends on the contact chapter: it runs straight into the footer, its glow fading into the footer's colour. */
.home .site-footer { margin-top: 0; border-top: 0; }
.world--contact { padding-bottom: clamp(6rem, 14vh, 10rem); background: radial-gradient(55% 70% at 25% 45%, rgb(47 211 210 / 0.3), transparent 70%), linear-gradient(180deg, rgb(8 13 36 / 0) 70%, #080d24 100%), linear-gradient(135deg, #062a35, #0b1230 70%); }

/* ---------- Page accents: every page lives in its own colour world ---------- */
main[data-accent] { --acc: #8db3f5; --acc-2: #6a7cf0; --world: #0b1230; --band: #0d1640; }
main[data-accent="laser"] { --acc: #3dff8a; --acc-2: #1fb98a; --world: #030806; --band: #07120c; }
main[data-accent="race"] { --acc: #b98cff; --acc-2: #2fd3b8; --world: #110c33; --band: #16123f; }
main[data-accent="lab"] { --acc: #ff6b7d; --acc-2: #3dff8a; --world: #08060c; --band: #120b14; }
main[data-accent="teal"] { --acc: #5fe3e8; --acc-2: #2fd3b8; --world: #05202a; --band: #08283a; }
main[data-accent="key"] { --acc: #8db3f5; --acc-2: #ff6b7d; --world: #050b2a; --band: #0a1440; }
main[data-accent="lattice"] { --acc: #9fb6ff; --acc-2: #ff7ab6; --world: #070c30; --band: #0c1546; }
main[data-accent="sky"] { --acc: #c7d4ff; --acc-2: #8db3f5; --world: #070b22; --band: #0b1132; }

main[data-accent] .eyebrow { color: var(--acc); }
/* Hero: the page's world glows behind the picture */
main[data-accent] > section:first-child { background: radial-gradient(55% 75% at 78% 50%, color-mix(in srgb, var(--acc) 24%, transparent), transparent 70%), radial-gradient(40% 60% at 5% 100%, color-mix(in srgb, var(--acc-2) 14%, transparent), transparent 70%), var(--world); }
main[data-accent] .hero-split .split__media { box-shadow: 0 30px 90px rgb(0 0 0 / 0.55), 0 0 90px color-mix(in srgb, var(--acc) 22%, transparent); border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
/* Full-bleed alternating bands, so no page is one flat colour */
main[data-accent] > .section { position: relative; }
main[data-accent] > .section:nth-of-type(even) { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
main[data-accent] > .section:nth-of-type(odd) { background: var(--world); box-shadow: 0 0 0 100vmax var(--world); clip-path: inset(0 -100vmax); }
/* Big, proportional headings */
main[data-accent] .section h2, main[data-accent] .film h2 { font-size: clamp(2.1rem, min(4.4vw, 7.6vh), 4rem); line-height: 1; letter-spacing: -0.04em; max-width: 18ch; }
main[data-accent] h1 { letter-spacing: -0.045em; }
/* Cards with an accent edge and glow */
main[data-accent] .card { border-radius: 22px; border: 1px solid transparent; background: linear-gradient(160deg, #111a48, #0b1234) padding-box, linear-gradient(140deg, color-mix(in srgb, var(--acc) 60%, transparent), rgb(141 179 245 / 0.08) 55%) border-box; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
main[data-accent] .card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4), 0 0 40px color-mix(in srgb, var(--acc) 16%, transparent); }
main[data-accent] .card h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
main[data-accent] .steps .mono { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding-inline: 0.6rem; border-radius: 12px; font: 800 1.2rem/1 var(--font); color: #0b1230; background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 30%, transparent); }
main[data-accent] .spec { border-radius: 18px; overflow: hidden; background: rgb(255 255 255 / 0.03); }
main[data-accent] .spec th { color: var(--acc); }
main[data-accent] .chips li { border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
main[data-accent] .stat { border-top-color: var(--acc); }
main[data-accent] .stat b { font-size: clamp(2.4rem, min(4.6vw, 8vh), 4.2rem); }
main[data-accent] .widget { border-color: color-mix(in srgb, var(--acc) 30%, transparent); box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 60px color-mix(in srgb, var(--acc) 12%, transparent); }
/* Cards take their page's world, carry a big accent number, and four cards sit 2 × 2 (never 3 + 1). */
main[data-accent] .card { background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 9%, var(--band)), var(--world)) padding-box, linear-gradient(140deg, color-mix(in srgb, var(--acc) 60%, transparent), rgb(141 179 245 / 0.08) 55%) border-box; padding: clamp(1.4rem, 2.4vw, 2rem); }
main[data-accent] .grid { counter-reset: card; }
main[data-accent] .grid:not(.steps) > .card:not(:has(.mono, time))::before { counter-increment: card; content: counter(card, decimal-leading-zero); display: block; margin-bottom: 0.9rem; font: 800 2.2rem/1 var(--font); letter-spacing: -0.04em; background: linear-gradient(135deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
main[data-accent] :is(.grid-2, .grid-3):has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { main[data-accent] :is(.grid-2, .grid-3):has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
/* Text-only page heads (resources, references, articles): the world colour runs edge to edge. */
main[data-accent] > .wrap:first-child { position: relative; box-shadow: 0 0 0 100vmax var(--world); clip-path: inset(0 -100vmax); background: var(--world); }
main[data-accent] > .wrap:first-child::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: radial-gradient(45% 90% at 80% 20%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%); }
/* No empty band above the footer: the last world runs into it. */
main[data-accent] ~ .site-footer { margin-top: 0; border-top: 0; }
/* A section that is only big numbers: make them the show. */
main[data-accent] > .section:has(> .stats:only-child) { padding-block: clamp(3rem, 7vh, 5rem); }
main[data-accent] > .section > .stats:only-child { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
main[data-accent] > .section > .stats:only-child .stat b { font-size: clamp(3.4rem, min(8vw, 13vh), 7rem); background: linear-gradient(135deg, #fff, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
main[data-accent] > .section > .stats:only-child .stat span { font-size: var(--step-1); }
/* References: titles sized for a list, not a chapter */
main[data-accent] .ref-list h2 { font-size: clamp(1.5rem, min(2.6vw, 5vh), 2.3rem); max-width: none; }
.hero-split.lyra .lyra__map { width: min(100%, 560px); }
main[data-accent] .media--round { border: 0; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 68%); }

/* ---------- Clip stories: a clip scrubbed by scroll, its steps lighting up beside it ---------- */
.clip-story { background: radial-gradient(55% 70% at 72% 50%, color-mix(in srgb, var(--acc, #8db3f5) 20%, transparent), transparent 70%), var(--world, #0b1230); }
.clip-story__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.clip-story--flip .clip-story__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); }
.clip-story--flip .clip-story__text { order: 2; }
.clip-story__media { width: 100%; max-width: 1280px; justify-self: center; }
.clip-story h1 { font-size: clamp(2.6rem, min(5vw, 9vh), 5rem); line-height: 0.95; letter-spacing: -0.045em; }
.clip-story h2 { font-size: clamp(2.1rem, min(4.2vw, 7.5vh), 3.8rem); line-height: 1; letter-spacing: -0.04em; }
.clip-story__steps { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: 0.4rem; }
.clip-story__steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; padding: 0.7rem 0.9rem; border-radius: 14px; border-left: 3px solid rgb(255 255 255 / 0.1); opacity: 0.4; transition: opacity 0.4s, background 0.4s, border-color 0.4s; }
.clip-story__steps li.is-on { opacity: 1; background: color-mix(in srgb, var(--acc, #8db3f5) 10%, transparent); border-left-color: var(--acc, #8db3f5); }
.clip-story__steps b { font: 700 0.85rem/1.6 var(--mono); color: var(--acc, #8db3f5); }
.no-js .clip-story__steps li, .clip-story:not(.is-live) .clip-story__steps li { opacity: 1; }
@media (max-width: 860px) { .clip-story__grid, .clip-story--flip .clip-story__grid { grid-template-columns: 1fr; } .clip-story--flip .clip-story__text { order: 0; } .clip-story__media { order: -1; } }

/* Resources: headings arrive in superposition — two ghost copies collapse into one as they are "observed". */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main[data-accent="sky"] .section h2, .prose h2 { position: relative; animation: collapse linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  }
}
@keyframes collapse {
  from { text-shadow: -0.35em 0 6px color-mix(in srgb, var(--acc, #8db3f5) 70%, transparent), 0.35em 0 6px rgb(255 107 125 / 0.7); color: transparent; filter: blur(1.5px); }
  60% { text-shadow: -0.06em 0 2px color-mix(in srgb, var(--acc, #8db3f5) 50%, transparent), 0.06em 0 2px rgb(255 107 125 / 0.5); color: rgb(255 255 255 / 0.7); filter: none; }
  to { text-shadow: none; color: inherit; }
}

/* ---------- PQC "Break the code" (break.js) ---------- */
.break { display: grid; gap: var(--space-3); }
.break__locks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.lock { display: grid; justify-items: center; gap: 0.4rem; text-align: center; padding: var(--space-4) var(--space-3); border-radius: 22px; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(141 179 245 / 0.18); transition: border-color 0.5s, box-shadow 0.5s; }
.lock svg { width: 88px; height: 99px; fill: none; stroke: #cfe0ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lock rect { fill: rgb(141 179 245 / 0.12); }
.lock__grid { stroke-width: 1.5; opacity: 0.7; }
.lock__shackle { transition: transform 0.6s cubic-bezier(.3,1.6,.5,1); transform-origin: 46px 32px; }
.lock b { font-size: var(--step-1); } .lock small { color: var(--mist); max-width: 28ch; }
.lock__state { margin-top: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; font: 600 0.8rem/1.2 var(--mono); background: rgb(255 255 255 / 0.06); }
.is-attacked .lock--rsa { border-color: #ff6b7d; box-shadow: 0 0 50px rgb(255 107 125 / 0.3); }
.is-attacked .lock--rsa svg { stroke: #ff8a98; animation: lock-hit 0.5s; }
.is-attacked .lock--rsa .lock__shackle { transform: translateY(-10px) rotate(28deg); }
.is-attacked .lock--rsa .lock__state { background: rgb(255 107 125 / 0.18); color: #ff9aa7; }
.is-attacked .lock--lattice { border-color: #7cf0d6; box-shadow: 0 0 50px rgb(47 211 184 / 0.3); }
.is-attacked .lock--lattice svg { stroke: #7cf0d6; animation: lock-hold 0.6s; }
.is-attacked .lock--lattice .lock__state { background: rgb(47 211 184 / 0.16); color: #7cf0d6; }
.break__out { margin: 0; font-weight: 600; }
@keyframes lock-hit { 20% { transform: translateX(-6px) rotate(-4deg); } 40% { transform: translateX(6px) rotate(4deg); } 60% { transform: translateX(-4px); } }
@keyframes lock-hold { 30% { transform: scale(1.06); } }
@media (max-width: 600px) { .break__locks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lock svg, .lock__shackle { animation: none; transition: none; } }

/* ---------- Image hotspots (Quantum Lab) ---------- */
.hotspots { margin: var(--space-3) 0 0.6rem; overflow: visible; }
.hotspots img { border-radius: inherit; }
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; }
.hotspot__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #fff; background: var(--coral); color: #2a0710; font: 800 1rem/1 var(--font); cursor: pointer; box-shadow: 0 0 0 0 rgb(255 107 125 / 0.6); animation: spot-pulse 2.2s infinite; }
.hotspot__card { position: absolute; left: 50%; bottom: calc(100% + 30px); width: max-content; max-width: 16rem; translate: -50% 0; display: grid; gap: 0.25rem; padding: 0.8rem 1rem; border-radius: 14px; background: #f4f6ff; color: #0b1230; box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.hotspot__card span { font-size: 0.88rem; color: #3a4466; }
.hotspot.is-open .hotspot__card, .hotspot:hover .hotspot__card { opacity: 1; transform: none; pointer-events: auto; }
@keyframes spot-pulse { 70% { box-shadow: 0 0 0 16px rgb(255 107 125 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 107 125 / 0); } }
@media (prefers-reduced-motion: reduce) { .hotspot__dot { animation: none; } }

/* ---------- Vegabit greets on Contact; hides in the dark on 404 (greet.js) ---------- */
.greet { position: relative; overflow: visible; }
.greet__say { position: absolute; left: 70%; top: -0.5rem; width: max-content; max-width: 15rem; margin: 0; padding: 0.7rem 0.95rem; border-radius: 16px 16px 16px 4px; background: #f4f6ff; color: #0b1230; font: 600 0.9rem/1.35 var(--font); box-shadow: 0 12px 30px rgb(0 0 0 / 0.35); }
.greet.is-hop img { animation: greet-hop 0.5s var(--ease); }
@keyframes greet-hop { 40% { transform: translateY(-14px) rotate(-6deg); } }
.torch { position: relative; width: min(520px, 90vw); aspect-ratio: 16 / 10; margin: 0 auto var(--space-3); border-radius: 26px; overflow: hidden; cursor: none; background: #020309; border: 1px solid var(--line); --tx: 30%; --ty: 40%; }
.torch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 120px at var(--tx) var(--ty), transparent 0, rgb(2 3 9 / 0.97) 100%); pointer-events: none; transition: opacity 0.6s; }
.torch__bit { position: absolute; width: 22%; right: 12%; bottom: 14%; }
.torch__found { position: absolute; left: 50%; top: 12%; translate: -50% 0; margin: 0; padding: 0.6rem 1rem; border-radius: 999px; background: #f4f6ff; color: #0b1230; font-weight: 700; opacity: 0; transition: opacity 0.4s; }
.torch.is-found::after { opacity: 0; }
.torch.is-found .torch__found { opacity: 1; }
.torch.is-found .torch__bit { animation: greet-hop 0.6s var(--ease) 2; }
.torch:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .torch::after { display: none; } .torch__found { opacity: 1; } }

/* Keep hotspot cards and the contact bubble inside the screen on phones */
.hotspot__card { visibility: hidden; }
.hotspot.is-open .hotspot__card, .hotspot:hover .hotspot__card { visibility: visible; }
.hotspot--start .hotspot__card { left: -22px; translate: 0 0; }
.hotspot--end .hotspot__card { left: auto; right: -22px; translate: 0 0; }
@media (max-width: 700px) {
  .hotspot__card { max-width: min(14rem, 62vw); }
  .greet__say { left: 0; top: -3.6rem; max-width: min(15rem, 78vw); }
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0;
  width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: 20px; border: 1px solid rgb(141 179 245 / 0.25);
  background: rgb(10 16 44 / 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 300px; margin: 0; font-size: var(--step--1); color: var(--mist); }
.cookie-banner p b { color: var(--white); }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 44px; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ANPC SAL (OPANPC 270/2026): 250 × 50 badge linking the ANPC alternative dispute resolution platform */
.anpc-sal { display: inline-flex; align-items: center; gap: 0.6rem; width: 250px; height: 50px; padding: 0 0.75rem; margin: var(--space-1) 0; border-radius: 8px; background: #fff; color: #0b3a7a; text-decoration: none; box-sizing: border-box; }
.anpc-sal b { font: 800 1rem/1 var(--font); letter-spacing: 0.04em; color: #0b3a7a; }
.anpc-sal span { font: 600 0.68rem/1.2 var(--font); color: #333; }
.anpc-sal img { display: block; width: 250px; height: 50px; }
