/* QTLE – design draft stylesheet (v0.7) */

/* Self-hosted fonts (SIL Open Font License 1.1, via Fontsource): latin + latin-ext subsets. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/sora-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/sora-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


:root {
  --midnight: #0A1020;
  --navy: #111A2E;
  --deep: #060A15;
  --line: #23304A;
  --line-2: #2E3D5C;
  --mist: #F4F7FB;
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-hover: #1D4FD8;
  --cyan: #22C3E6;
  --mint: #5EF2C0;
  --sky: #5B9BFF;
  --ink: #0F172A;
  --slate: #475569;
  --line-light: #CBD5E1;
  --snow: #F8FAFC;
  --fog: #94A3B8;
  --muted: #7C89A3;

  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --h1: clamp(2.3rem, min(1.2rem + 4vw, 8.2vh), 4.5rem);
  --h-statement: clamp(2.1rem, 1rem + 3.4vw, 3.9rem);
  --h2: clamp(1.8rem, 1.1rem + 2vw, 2.9rem);
  --h3: clamp(1.12rem, 1rem + 0.35vw, 1.35rem);
  --lead: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);

  --sec: clamp(64px, 7vw, 104px);
  --gutter: clamp(18px, 3vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--snow);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); }
a:hover { color: var(--cyan); }
.light a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 16px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }

.container { max-width: 1264px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.h1 { font-size: var(--h1); line-height: 1.07; }
.h2 { font-size: var(--h2); line-height: 1.12; margin-top: 14px; }
.h-statement { font-size: var(--h-statement); line-height: 1.05; letter-spacing: -0.025em; margin-top: 14px; max-width: 18ch; }
.h3 { font-size: var(--h3); line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow { margin: 0; font: 500 0.8125rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.light .eyebrow { color: var(--blue); }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--fog); margin: 16px 0 0; max-width: 60ch; }
.muted { color: var(--fog); }
.light .lead, .light .muted { color: var(--slate); }
.mono { font-family: var(--f-mono); }
.small { font-size: 0.875rem; }
p { margin: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--sec) 0; }
.bg-navy { background: var(--navy); }
.bg-midnight { background: var(--midnight); }
.light { background: var(--mist); color: var(--ink); }
.center { text-align: center; }
.center .lead, .center .h-statement { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 24px; border-radius: 10px; border: 1px solid transparent; text-align: center;
  font: 600 1rem/1.25 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary, .light .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 28px rgba(37, 99, 235, .4); }
.btn-primary:hover, .light .btn-primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 0 40px rgba(37, 99, 235, .55); }
.btn-ghost { border-color: var(--line-2); color: var(--snow); background: rgba(10, 16, 32, .5); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--snow); }
.light .btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.light .btn-ghost:hover { background: #EAF0FD; color: var(--blue); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(10, 16, 32, .92); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 32px; gap: 10px; color: var(--snow); text-decoration: none; font: 600 1.35rem/1 var(--f-head); letter-spacing: .06em; }
.logo img { display: block; height: auto; }
.logo:hover { color: var(--snow); }
.logo-mark { width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.current-page { display: none; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { position: relative; color: var(--fog); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 10px 0; transition: color .15s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover { color: var(--snow); }
.main-nav a:hover::after { transform: scaleX(.4); }
.main-nav a[aria-current="page"] { color: var(--snow); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-contact[aria-current="page"] { border-color: var(--cyan); background: rgba(34, 195, 230, .12); }
.header-tools { display: flex; align-items: center; gap: 18px; }
/* language menu: scales to any number of languages (native names, lang/hreflang) */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--snow); cursor: pointer; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; transition: border-color .15s ease, color .15s ease; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--line-2); }
.lang-btn .i-globe { width: 17px; height: 17px; color: var(--fog); }
.lang-btn .i-chev { width: 14px; height: 14px; color: var(--fog); transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.lang-opts { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; max-height: min(60vh, 440px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--navy); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.lang-opts.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 400px; }
.lang-opts[hidden] { display: none; }
.lang-opts a { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 12px 12px; border-radius: 10px; color: var(--snow); text-decoration: none; font-size: .9375rem; }
.lang-opts a:hover { background: rgba(34, 195, 230, .08); color: var(--snow); }
.lang-opts .code { flex: none; width: 2.4em; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.lang-opts a[aria-current="true"] { background: rgba(34, 195, 230, .1); }
.lang-opts a[aria-current="true"] .code { color: var(--cyan); }
.lang-opts a[aria-disabled="true"] { color: var(--fog); cursor: default; }
.lang-opts .soon { display: block; margin-top: 4px; font-size: .8125rem; color: var(--fog); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--snow); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.burger .i-close { display: none; }
.site-header.is-open .burger .i-open { display: none; }
.site-header.is-open .burger .i-close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 1079px) {
  .main-nav, .header-tools .btn { display: none; }
  .burger { display: inline-flex; }
  .site-header.is-open { background: var(--midnight); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-open .mobile-nav {
    display: block; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    overflow-y: auto; background: var(--midnight); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 32px;
  }
  .mobile-nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--snow); text-decoration: none; font: 600 1.2rem/1.3 var(--f-head); }
  .mobile-nav a[aria-current="page"] { color: var(--cyan); }
  .mobile-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 12px 3px 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); vertical-align: middle; }
  .current-page { display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line-2); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .current-page::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
  .mobile-nav .btn { margin-top: 24px; width: 100%; }
}

/* ---------- placeholders ---------- */
.ph {
  border: 1px dashed var(--line-2); border-radius: 16px; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px; text-align: center; color: var(--fog); font-size: 1rem; line-height: 1.5;
}
.light .ph { border-color: var(--fog); background: #fff; color: var(--slate); }
.ph .eyebrow { font-size: .75rem; }
.logo-ph { width: 44px; height: 44px; flex: none; border: 1px dashed var(--line-2); border-radius: 50%; font: 500 9px/1 var(--f-mono); color: var(--fog); display: flex; align-items: center; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
  min-height: min(100svh, var(--hero-max, 1200px));
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-glow { position: absolute; right: 6%; top: 18%; width: 520px; height: 520px; border-radius: 50%; background: var(--blue); opacity: .12; filter: blur(120px); pointer-events: none; }
.hero-lock { position: absolute; right: -1%; top: calc(50% - 36px); translate: 0 -50%; width: min(50%, 760px); max-width: none; height: auto; pointer-events: none; overflow: visible; }
.hero > .container { width: 100%; }
.hero-content { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: clamp(24px, 5vh, 72px); padding-bottom: clamp(16px, 3vh, 40px); }
.hero .h1 { margin-top: 22px; max-width: 14.5ch; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 14px; line-height: 1.35;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 16, 32, .7);
  font: 500 .75rem/1.35 var(--f-mono); letter-spacing: .08em; color: var(--cyan); transition: color .3s ease;
}
.status-pill .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-pill.is-open { color: var(--mint); }
.pillars-line { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 0; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.pillars-line span:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--line-2); }
@media (max-width: 600px) { .pillars-line { gap: 6px 22px; } .pillars-line span:not(:last-child)::after { content: none; } }



/* awards strip */
.awards { margin-top: clamp(28px, 4vh, 48px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr repeat(3, 1.1fr); background: rgba(10, 16, 32, .8); }
.awards-title { padding: 20px 24px 26px 0; font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.award { display: flex; gap: 14px; align-items: center; padding: 20px 24px 26px; border-left: 1px solid var(--line); font-size: .875rem; line-height: 1.4; }
.award strong { display: block; font-weight: 600; }
.award span { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--fog); text-transform: uppercase; }
.award-img { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.award-link { flex: none; display: block; border-radius: 8px; transition: transform .2s ease; }
.award-link:hover { transform: scale(1.06); }
.award-link .award-img { display: block; }
@media (max-width: 900px) {
  .awards { grid-template-columns: 1fr; }
  .awards-title { padding-bottom: 8px; }
  .award { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
}

/* ---------- problem ---------- */
.problem-intro { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.problem-intro .lead { margin-top: 0; }
.problem-art { width: 100%; max-width: 440px; justify-self: end; overflow: visible; }
.problem-art .pa-cap { font: 500 12px/1 var(--f-mono); letter-spacing: 1.2px; fill: var(--slate); }
.problem-art .pa-log-t { font: 500 13px/1 var(--f-mono); letter-spacing: 1px; fill: var(--blue); }
@media (max-width: 600px) { .problem-art { max-width: none; } .problem-art .pa-cap { font-size: 14px; letter-spacing: .6px; } .problem-art .pa-log-t { font-size: 14px; letter-spacing: .4px; } }
.problem-art .pa-key, .problem-art .pa-shk { transform-box: fill-box; }
.problem-art .pa-key { transform: translate(-86px, 30px); }
.problem-art .pa-shk { transform: translateY(-6px); }
.problem-art .pa-log { opacity: 0; }
.mo .problem-art .pa-key { animation: paKey 8s cubic-bezier(.45, 0, .3, 1) infinite; }
.mo .problem-art .pa-shk { animation: paShk 8s ease infinite; }
.mo .problem-art .pa-open { animation: paOpen 8s ease infinite; }
.mo .problem-art .pa-reach { animation: paReach 8s ease infinite; }
.mo .problem-art .pa-log { animation: paLog 8s ease infinite; }
@keyframes paKey { 0%, 16% { transform: translate(0, 0) } 32%, 74% { transform: translate(-86px, 30px) } 88%, 100% { transform: translate(0, 0) } }
@keyframes paShk { 0%, 34% { transform: translateY(0) } 40%, 72% { transform: translateY(-6px) } 78%, 100% { transform: translateY(0) } }
@keyframes paOpen { 0%, 36% { opacity: 0 } 42%, 72% { opacity: 1 } 78%, 100% { opacity: 0 } }
@keyframes paReach { 0%, 6% { opacity: 0 } 14%, 74% { opacity: 1 } 84%, 100% { opacity: 0 } }
@keyframes paLog { 0%, 48% { opacity: 0 } 52% { opacity: 1 } 58% { opacity: .2 } 62% { opacity: 1 } 70%, 100% { opacity: 0 } }
.risk-list { list-style: none; margin: 48px 0 0; padding: 0; }
.risk { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; padding: 26px 0; align-items: start; }
.risk:last-child { border-bottom: 1px solid var(--line-light); }
.risk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-light); transform-origin: left; }
.risk .icon { width: 44px; height: 44px; color: var(--blue); }
.risk h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); line-height: 1.25; }
.risk p { color: var(--slate); }
.quote { margin: 64px 0 0; }
.quote .mark { font: 600 6rem/.6 var(--f-head); color: var(--blue); }
.quote p { margin-top: 18px; max-width: 28ch; font: 600 clamp(1.6rem, 1rem + 2vw, 2.75rem)/1.18 var(--f-head); letter-spacing: -.02em; }
@media (max-width: 900px) {
  .problem-intro { grid-template-columns: 1fr; }
  .problem-art { justify-self: start; }
}
@media (max-width: 720px) {
  .risk { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 18px; }
  .risk .icon { width: 36px; height: 36px; }
  .risk p { grid-column: 2; }
}

/* ---------- solution ---------- */
.solution { overflow: hidden; }
.solution .glow { position: absolute; left: 50%; top: 60%; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: var(--cyan); opacity: .07; filter: blur(110px); pointer-events: none; }
.solution-grid { position: relative; margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) minmax(0, 1fr); gap: 64px 48px; align-items: center; }
.solution-grid .diagram { grid-column: 2; grid-row: 1 / span 2; width: 100%; }
.block .icon { width: 28px; height: 28px; color: var(--cyan); }
.block h3 { margin-top: 14px; }
.block p { margin-top: 8px; color: var(--fog); }
.solution-grid .block { align-self: start; }
.b1 { grid-column: 1; grid-row: 1; } .b3 { grid-column: 1; grid-row: 2; }
.b2 { grid-column: 3; grid-row: 1; } .b4 { grid-column: 3; grid-row: 2; }
@media (max-width: 980px) {
  .solution-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .solution-grid .diagram { grid-column: 1 / -1; grid-row: 1; width: min(100%, 300px); justify-self: center; }
  .b1, .b2, .b3, .b4 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------- phases (home: how it works teaser) ---------- */
.phases { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; }
.phase .marker { --hc: var(--cyan); --hbg: var(--midnight); }
.phase.wait .marker { --hc: var(--sky); }
.phase.open .marker { --hc: var(--mint); }
.phase.open .marker .hx { filter: drop-shadow(0 0 14px rgba(94, 242, 192, .35)); }
.phase .eyebrow { margin-top: 24px; }
.phase h3 { margin-top: 8px; }
.phase p { margin-top: 10px; color: var(--fog); }
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; gap: 32px; }
  .phase { display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; }
  .phase .marker { grid-row: 1 / span 3; }
  .phase .eyebrow { margin-top: 10px; }
}

/* ---------- use-case link list (home) ---------- */
.case-links { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.case-links a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 32px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--snow); text-decoration: none; transition: color .15s ease; }
.case-links .h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); }
.case-links p { color: var(--fog); }
.case-links .arrow { color: var(--fog); font-size: 1.4rem; transition: transform .2s ease, color .2s ease; }
.case-links a:hover { color: var(--cyan); }
.case-links a:hover .arrow { color: var(--cyan); transform: translateX(4px); }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tags .eyebrow { color: var(--fog); margin-right: 6px; }
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; }
.tag::before { content: ""; flex: none; width: 9px; height: 10px; background: var(--line-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .2s ease, transform .3s ease; }
.tag:hover { border-color: var(--cyan); background: rgba(34, 195, 230, .07); }
.tag:hover::before { background: var(--cyan); }
.mo .tag:hover { transform: translateY(-2px); }
.mo .tag:hover::before { transform: rotate(30deg); }
.js.mo .tags.reveal { opacity: 1; transform: none; }
.js.mo .tags.reveal .tag { opacity: 0; transform: translateY(10px) scale(.94); }
.js.mo .tags.reveal.is-in .tag { opacity: 1; transform: none; }
.js.mo .tags.reveal.is-in .tag:hover { transform: translateY(-2px); }
.tags .tag:nth-of-type(2) { transition-delay: 0s, 0s, 0s, .06s, .06s; } .tags .tag:nth-of-type(3) { transition-delay: 0s, 0s, 0s, .12s, .12s; }
.tags .tag:nth-of-type(4) { transition-delay: 0s, 0s, 0s, .18s, .18s; } .tags .tag:nth-of-type(5) { transition-delay: 0s, 0s, 0s, .24s, .24s; }
.tags .tag:nth-of-type(6) { transition-delay: 0s, 0s, 0s, .3s, .3s; }
@media (max-width: 760px) {
  .case-links a { grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 16px; }
  .case-links p { grid-column: 1; }
  .case-links .arrow { grid-row: 1; grid-column: 2; }
}

/* ---------- use cases page (interactive) ---------- */
.cases { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: stretch; }
.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-item { border-bottom: 1px solid var(--line); }
.case-btn {
  appearance: none; width: 100%; background: none; border: 0; padding: 26px 0; text-align: left; cursor: pointer;
  display: flex; gap: 20px; align-items: center; color: var(--muted);
  font: 600 clamp(1.25rem, 1rem + .9vw, 1.85rem)/1.2 var(--f-head); letter-spacing: -.015em; transition: color .2s ease;
}
.case-btn .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .2s ease; }
.case-btn:hover { color: var(--snow); }
.case-item.is-active .case-btn { color: var(--snow); }
.case-item.is-active .case-btn .dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.case-panel { padding: 0 0 28px 34px; color: var(--fog); max-width: 54ch; }
.case-panel .link-arrow { margin-top: 12px; }
.case-img { min-height: 480px; }
@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .case-img { min-height: 280px; order: -1; }
  .case-art { order: -1; }
}
/* use-case illustrations: four stacked scenes, the active one fades in */
.case-art { position: relative; margin: 0; align-self: center; width: 100%; aspect-ratio: 560 / 440; }
.case-art .ca { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; overflow: visible; }
.case-art .ca.is-on { opacity: 1; }
.case-art .ca-a { font: 600 15px var(--f-mono); letter-spacing: 1.6px; fill: var(--snow); }
.case-art .ca-b { font: 500 11px var(--f-mono); letter-spacing: 1.3px; fill: var(--fog); }
.case-art .ca-stamp-t { font: 600 17px var(--f-mono); letter-spacing: 3px; fill: #F97316; }
.case-art .ca-ring { transform-box: fill-box; transform-origin: center; }
.mo .case-art .ca-hand { animation: caSpin 12s linear infinite; }
.mo .case-art .ca-spin { animation: caSpin 48s linear infinite; }
.mo .case-art .ca-ring { animation: caSpin 30s linear infinite; }
.mo .case-art .ca-rise { animation: caRise 6s ease-in-out infinite alternate; }
.mo .case-art .ca-d1 { animation-delay: -1.5s; } .mo .case-art .ca-d2 { animation-delay: -3s; } .mo .case-art .ca-d3 { animation-delay: -4.5s; }
.mo .case-art .ca-beam { animation: caBeam 4s ease-in-out infinite alternate; }
.mo .case-art .ca-glow { animation: caGlow 3s ease-in-out infinite alternate; }
.mo .case-art .ca-gavel { animation: caTap 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes caSpin { to { transform: rotate(360deg); } }
@keyframes caRise { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes caBeam { from { opacity: .45; } to { opacity: 1; } }
@keyframes caGlow { from { opacity: .7; } to { opacity: 1; } }
@keyframes caTap { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-9deg); } 88% { transform: rotate(2deg); } }

/* ---------- embedded app ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". app" "head app" "rest app" ". app"; column-gap: 72px; align-items: start; }
.try-head { grid-area: head; }
.try-grid > :is(.app-card, qtle-app) { grid-area: app; align-self: center; }
/* <qtle-app> shows once its script has defined it; there is no fallback */
qtle-app { display: block; min-width: 0; }
qtle-app:not(:defined) { display: none; }
.try-rest { grid-area: rest; margin-top: 28px; }
.steps-num { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps-num li { display: flex; gap: 12px; align-items: center; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
.steps-num .n { flex: none; display: grid; place-items: center; width: 22px; height: 25px; font: 600 .75rem/1 var(--f-mono); color: #fff; background: var(--blue); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.try-note { margin-top: 16px; font-size: .9375rem; color: var(--slate); max-width: 46ch; }
.try-rest .btn-row, .try-rest .section-link { margin-top: 24px; }
@media (max-width: 980px) {
  .try-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "app" "rest"; }
  .try-grid > :is(.app-card, qtle-app) { margin-top: 32px; }
}

.app-card { background: #fff; color: var(--ink); border: 1px solid #DCE3EE; border-radius: 20px; box-shadow: 0 40px 100px rgba(15, 23, 42, .14); overflow: hidden; }
.app-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #E5EAF2; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; color: var(--slate); }
.app-bar a { display: inline-block; padding: 6px 0; color: var(--blue); text-decoration: none; }
.app-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 8px; }
.app-tabs { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid #E5EAF2; }
.app-tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 0; min-height: 44px; cursor: pointer; font: 600 .9375rem/1 var(--f-body); color: var(--slate); }
.app-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.app-panel { padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.app-panel[hidden] { display: none; }
.drop { border: 1.5px dashed var(--fog); border-radius: 14px; background: var(--mist); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.drop svg { width: 32px; height: 32px; color: var(--blue); }
.file-name { font: 500 .8125rem/1.4 var(--f-mono); color: var(--slate); word-break: break-all; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }
.switch { appearance: none; position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #CBD5E1; transition: background-color .15s ease; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: left .15s ease; }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] span { left: 25px; }
.fields { display: flex; flex-wrap: wrap; gap: 14px; }
.field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--slate); }
.field input { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-light); background: #fff; color: var(--ink); font: 400 .9375rem/1 var(--f-body); }
.field input[type="date"], .field input[type="time"] { font-family: var(--f-mono); }
.field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.utc { flex-basis: 100%; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--slate); }
.seg { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff; color: var(--ink); font: 500 .9375rem/1 var(--f-body); transition: background-color .15s ease, color .15s ease; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.file-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.app-note { padding: 12px 14px; border-radius: 10px; background: #EAF0FD; color: var(--ink); font-size: .9375rem; }
.app-note[hidden] { display: none; }

/* ---------- live ---------- */
.live-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); margin-right: 10px; vertical-align: middle; }
.live-frame { margin-top: 48px; min-height: clamp(360px, 48vw, 620px); background: var(--deep); }
/* Live stage: no frame; the globe and its star field fill the whole section, text sits in the clear areas above and below */
.live-stage { overflow: hidden; background: #000; }
.live-stage > .container > .live-head, .live-stage .replay { position: relative; z-index: 1; }
.live-stage .live-head .lead { margin: 0; }
.live-stage .live-globe { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.live-space { height: clamp(380px, 56vw, 640px); pointer-events: none; }
.live-stage .live-head .eyebrow, .live-stage .live-head .h2, .live-stage .live-head .lead, .live-stage .replay label { text-shadow: 0 1px 3px #000, 0 0 12px rgba(0, 0, 0, .85); }
@media (max-width: 600px) { .live-space { height: min(112vw, 520px); } }
.replay { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.replay label { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.replay input { min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--navy); color: var(--snow); font: 400 .875rem/1 var(--f-mono); }
.replay-note { flex-basis: 100%; color: var(--fog); font-size: .9375rem; }
.replay-note[hidden] { display: none; }
@media (max-width: 860px) { .live-head { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust-row { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-item { padding: 0 36px 8px; border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; border-left: 0; }
.trust-item .big { font: 600 clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem)/1.1 var(--f-head); letter-spacing: -.02em; color: var(--cyan); }
.trust-item p { margin-top: 14px; color: var(--fog); }
@media (max-width: 860px) {
  .trust-row { grid-template-columns: 1fr; gap: 32px; }
  .trust-item { padding: 0; border-left: 0; }
}

/* ---------- closing / CTA ---------- */
.closing { overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; }
.closing .rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .55; pointer-events: none; }
.closing .container { position: relative; max-width: 900px; }
.closing .h-statement { max-width: 16ch; }
.closing .sub { margin-top: 22px; font: 500 .875rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }
.dots { display: flex; flex-wrap: wrap; row-gap: 4px; }
.center .dots, .closing.center .dots { justify-content: center; }
.dots > span:not(:last-child)::after { content: "·"; margin: 0 .7em; }
@media (max-width: 520px) { .dots { column-gap: 1.1em; } .dots > span:not(:last-child)::after { content: none; } }
.closing .mail { display: inline-block; margin-top: 28px; padding: 6px 2px; font: 500 1rem/1 var(--f-mono); letter-spacing: .04em; }
.cta-band { border-top: 1px solid var(--line); }
.cta-band .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding: 64px 0 40px; text-align: center; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.site-footer .tagline { max-width: 560px; color: var(--fog); font-size: .9375rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .875rem; }
.footer-nav a { display: inline-block; padding: 3px 0; color: var(--snow); text-decoration: none; }
.footer-nav a:hover { color: var(--cyan); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 24px; font-size: .8125rem; color: var(--fog); }
.footer-legal a { display: inline-block; padding: 3px 0; color: var(--fog); }

/* ---------- subpage hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero .rings { position: absolute; right: -180px; top: 50%; width: 620px; height: 620px; margin-top: -310px; opacity: .5; pointer-events: none; }
.page-hero .h1 { margin-top: 16px; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); max-width: 18ch; }
.crumbs { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.crumbs a { color: var(--fog); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
@media (max-width: 760px) { .page-hero .rings { right: -340px; opacity: .3; } }

/* ---------- story (technology page) ---------- */
.story { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.story-figure { position: sticky; top: calc(var(--header-h) + 24px); background: var(--midnight); }
.story-counter { margin-top: 14px; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.story-counter b { color: var(--snow); font-weight: 500; }
.steps-label { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--cyan); }
.steps-label.dec { margin-top: 56px; color: var(--mint); }
.step-list { list-style: none; margin: 0; padding: 0; }
.step {
  appearance: none; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 18px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 26px 0; min-height: clamp(104px, 17vh, 168px);
  color: var(--muted); font: 600 clamp(1.1rem, 1rem + .45vw, 1.35rem)/1.35 var(--f-head); letter-spacing: -.01em;
  transition: color .3s ease;
}
.step .dot { flex: none; margin-top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .3s ease; }
.step .num { display: block; margin-bottom: 6px; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.step:hover { color: var(--fog); }
.step.is-done { color: var(--fog); }
.step.is-done .dot { border-color: var(--cyan); }
.step.is-active { color: var(--snow); }
.step.is-active .dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.step-list.dec .step.is-done .dot { border-color: var(--mint); }
.step-list.dec .step.is-active .dot { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 14px var(--mint); }
@media (max-width: 1079px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-figure { top: var(--header-h); z-index: 5; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
  .story-figure .fig { max-height: 34vh; width: auto; margin: 0 auto; }
  .story-counter { text-align: center; margin-top: 6px; }
  .story-steps { padding-top: 24px; }
}

/* figure states (How it works) */
.fig text { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.2px; fill: var(--fog); }
@media (max-width: 860px) { .fig text { font-size: 16px; letter-spacing: .5px; } }
.fig .f-ring, .fig .f-node, .fig .f-core, .fig .f-rcp, .fig .f-lock, .fig .f-file, .fig .f-hash-s, .fig .f-hash-r, .fig .f-keys, .fig .kl, .fig .f-lane, .fig .f-req, .fig .f-req-label, .fig .f-pq { transition: opacity .45s ease, stroke .45s ease, fill .45s ease, color .45s ease; }
.fig .f-ring { stroke: var(--line-2); }
.fig .kl { stroke: var(--line); opacity: .7; }
.fig .f-pq { opacity: 0; fill: var(--cyan); }
.fig .kp { stroke-dasharray: 3 97; stroke-dashoffset: 3; opacity: 0; filter: drop-shadow(0 0 4px #22C3E6); }
.fig .f-core { color: var(--line-2); }
.fig .f-node { color: var(--line-2); }
.fig .f-node-shackle { transform-box: fill-box; transition: transform .45s ease; }
.fig .f-lane { stroke: var(--line); }
.fig .f-lanepk { stroke-dasharray: 3 97; stroke-dashoffset: 3; opacity: 0; filter: drop-shadow(0 0 4px #2563EB); }
.fig .f-req { stroke: var(--mint); opacity: 0; }
.fig .f-req-label { opacity: 0; fill: var(--mint); }
.fig .f-reqpk { stroke-dasharray: 4 96; opacity: 0; filter: drop-shadow(0 0 4px #5EF2C0); }
.fig .f-rcp { color: var(--fog); }
.fig .f-lock { color: var(--fog); }
.fig .f-shackle { transform-box: fill-box; transform: translateY(-4px); transition: transform .45s ease; }
.fig .f-file-b { opacity: 0; }
.fig .f-hash-s, .fig .f-hash-r { opacity: 0; }

.fig.s-hash .f-hash-s { opacity: 1; }
.fig.s-locked .f-lock { color: var(--cyan); }
.fig.s-locked .f-shackle { transform: none; }
.fig.s-dist .f-keys { opacity: 0; }
.fig.s-dist .kl { stroke: var(--cyan); opacity: .55; }
.fig.s-dist .f-pq { opacity: 1; }
.fig.s-dist .f-ring { stroke: var(--cyan); }
.fig.s-dist .f-node { color: var(--cyan); }
.mo .fig.s-dist .kp { animation: figPk 1s ease-out forwards; }
.fig .kp.i2 { animation-delay: .15s; } .fig .kp.i3 { animation-delay: .3s; } .fig .kp.i4 { animation-delay: .45s; } .fig .kp.i5 { animation-delay: .6s; } .fig .kp.i6 { animation-delay: .75s; }
@keyframes figPk { 0% { stroke-dashoffset: 3; opacity: 1 } 95% { stroke-dashoffset: -97; opacity: 1 } 100% { stroke-dashoffset: -97; opacity: 0 } }
.fig.s-sent .f-file-a { opacity: 0; }
.fig.s-sent .f-file-b { opacity: 1; }
.fig.s-sent .f-lane { stroke: var(--blue); }
.mo .fig.s-sent .f-lanepk { animation: figPk 1.3s ease-in-out forwards; }
.fig.s-trig .f-core { color: var(--mint); }
.fig.s-nodes .f-node { color: var(--mint); }
.fig.s-nodes .f-node-shackle { transform: translateY(-3px); }
.fig .f-node.n2 { transition-delay: .1s; } .fig .f-node.n3 { transition-delay: .2s; } .fig .f-node.n4 { transition-delay: .3s; } .fig .f-node.n5 { transition-delay: .4s; } .fig .f-node.n6 { transition-delay: .5s; }
.fig.s-ready .f-ring { stroke: var(--mint); }
.fig.s-release .f-req, .fig.s-release .f-req-label { opacity: 1; }
.fig.s-release .f-reqpk { opacity: 1; stroke-dashoffset: -40; }
.mo .fig.s-release .f-reqpk { animation: figReq 1.6s ease-in-out infinite alternate; }
@keyframes figReq { from { stroke-dashoffset: 4; opacity: 1 } to { stroke-dashoffset: -96; opacity: 1 } }
.fig.s-release .f-rcp { color: var(--mint); }
.fig.s-unlocked .f-lock { color: var(--mint); }
.fig.s-unlocked .f-shackle { transform: translateY(-4px); }
.fig.s-done .f-hash-r { opacity: 1; }

/* guarantees */
.guarantees { margin-top: 96px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.guarantee { padding: 32px 32px 0; border-left: 1px solid var(--line); }
.guarantee:first-child { padding-left: 0; border-left: 0; }
.guarantee svg { width: 28px; height: 28px; color: var(--cyan); }
.guarantee p { margin-top: 12px; font: 600 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.3 var(--f-head); }
@media (max-width: 860px) {
  .guarantees { grid-template-columns: 1fr; }
  .guarantee { padding: 24px 0 0; border-left: 0; }
}

/* ---------- triggers ---------- */
.tabs { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 0 36px; border-bottom: 1px solid var(--line); }
.tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 0; min-height: 44px; cursor: pointer; font: 600 1rem/1 var(--f-body); color: var(--fog); }
.tabs button:hover { color: var(--snow); }
.tabs button[aria-selected="true"] { color: var(--snow); border-bottom-color: var(--cyan); }
.trigger-body { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.trigger-body[hidden] { display: none; }
.trigger-sentence { font: 600 clamp(1.8rem, 1rem + 2.6vw, 3.4rem)/1.12 var(--f-head); letter-spacing: -.02em; }
.trigger-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; color: var(--fog); }
.btn-event { appearance: none; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--cyan); background: transparent; color: var(--snow); cursor: pointer; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; }
.btn-event:hover { background: rgba(34, 195, 230, .08); }
.rule { font: 500 .875rem/1.8 var(--f-mono); color: var(--snow); }
.rule em { font-style: normal; color: var(--cyan); }
.rule .ex { color: var(--fog); }
.timeline { margin-top: 64px; position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.timeline::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 1px; background: var(--line); }
.tl-end { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-end.right { align-items: flex-end; }
.tl-ring { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--blue); background: var(--navy); display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.tl-ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transition: background-color .3s ease; }
.tl-end.right .tl-ring { border-color: var(--line-2); }
.tl-end.right .tl-ring::after { background: var(--line-2); }
.tl-label { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.tl-node { position: relative; width: 22px; height: 22px; margin-top: 9px; border-radius: 50%; border: 1.5px solid var(--cyan); background: var(--navy); transition: border-color .3s ease; }
.timeline.is-open .tl-node { border-color: var(--mint); }
.tl-node { width: 21px; height: 24px; margin-top: 8px; border: 0; border-radius: 0; background: var(--cyan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .3s ease; }
.tl-node::after { content: ""; position: absolute; inset: 1.6px; background: var(--navy); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.timeline.is-open .tl-node { background: var(--mint); }
.timeline.is-open .tl-end.right .tl-ring { border-color: var(--mint); box-shadow: 0 0 24px rgba(94, 242, 192, .4); }
.timeline.is-open .tl-end.right .tl-ring::after { background: var(--mint); }
.timeline.is-open .tl-status { color: var(--mint); }
@media (max-width: 860px) {
  .trigger-body { grid-template-columns: 1fr; }
  .tl-node:nth-of-type(n+5) { display: none; }
}

/* ---------- comparison ---------- */
.table-wrap { margin-top: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table-wrap:focus-visible { outline-offset: 6px; }
.compare td { font-size: .9375rem; }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 18px 16px; }
.compare thead th { font-weight: 600; color: var(--fog); }
.compare thead th:first-child { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; padding-left: 0; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 500; padding-left: 0; }
.compare td { color: var(--fog); }
.compare tbody tr { transition: background-color .2s ease; }
.compare tbody th, .compare tbody td { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.compare tbody tr:hover { background: rgba(34, 195, 230, .05); }
.compare tbody tr:hover th { color: var(--cyan); }
.compare tbody tr:hover td:not(.q) { color: var(--snow); }
.compare tbody tr:hover td.q { background: #16264A; color: var(--mint); box-shadow: inset 3px 0 0 var(--mint), 0 0 28px rgba(94, 242, 192, .14); }
.compare .q { background: var(--navy); color: var(--cyan); font-weight: 600; padding-left: 24px; padding-right: 24px; }
.compare thead .q { color: var(--snow); font: 600 1.2rem/1 var(--f-head); border-top: 2px solid var(--cyan); border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .q { border-radius: 0 0 12px 12px; }

/* ---------- developers ---------- */
.does { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.does .marker { --hc: var(--cyan); --hbg: var(--midnight); }
.does li:last-child .marker { --hc: var(--mint); }
.does li:last-child .marker .hx { filter: drop-shadow(0 0 14px rgba(94, 242, 192, .35)); }
.does h3 { margin-top: 22px; }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.split2 > div { padding: 28px 32px 0 0; }
.split2 > div + div { padding: 28px 0 0 32px; border-left: 1px solid var(--line); }
.split2 .big { margin-top: 12px; font: 600 clamp(1.3rem, 1rem + .8vw, 1.7rem)/1.25 var(--f-head); }
@media (max-width: 980px) {
  .does { grid-template-columns: 1fr; gap: 28px; }
  .does li { display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; align-items: center; }
  .does h3 { margin-top: 0; }
}
@media (max-width: 640px) {
  .split2 { grid-template-columns: 1fr; }
  .split2 > div, .split2 > div + div { padding: 24px 0 0; border-left: 0; }
}

/* ---------- procurement subpage ---------- */
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.flow li { position: relative; }
.flow .n { --hc: var(--blue); --hbg: var(--mist); font: 600 1.15rem/1 var(--f-head); }
.flow li:last-child .n { --hc: #047857; }
.flow h3 { margin-top: 20px; }
.flow p { margin-top: 8px; color: var(--slate); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; }
  .flow .n { grid-row: 1 / span 2; }
  .flow h3 { margin-top: 10px; }
}

/* ---------- contact ---------- */
.paths { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.path { padding: 32px 32px 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.path:first-child { padding-left: 0; border-left: 0; }
.path .big { font: 600 clamp(1.5rem, 1rem + 1.4vw, 2.2rem)/1.1 var(--f-head); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path, .path:first-child { padding: 28px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- generic two-col ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* =====================================================================
   MOTION (v0.7)
   Default = still frame. Animations run only under html.mo (set in <head>
   unless reduced motion or the visitor paused it). Off-screen sections get
   data-vis="0" and pause. Animated properties: transform and opacity.
   ===================================================================== */

/* ---------- hexagon pattern + sawtooth section edges ---------- */
.hero, .page-hero, .closing, .solution {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M21 0V12.13L42 24.25V48.5L21 60.63V72.75M21 60.63L0 48.5V24.25L21 12.13' fill='none' stroke='%235B9BFF' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 42px 72.75px;
}
.hero { background-color: var(--midnight); background-image: radial-gradient(ellipse 60% 70% at 78% 45%, rgba(10, 16, 32, 0) 0%, var(--midnight) 72%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M21 0V12.13L42 24.25V48.5L21 60.63V72.75M21 60.63L0 48.5V24.25L21 12.13' fill='none' stroke='%235B9BFF' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E"); background-size: auto, 42px 72.75px; }
.light {
  background-color: var(--mist);
  background-image: linear-gradient(180deg, var(--mist) 0%, rgba(244, 247, 251, .55) 40%, var(--mist) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M21 0V12.13L42 24.25V48.5L21 60.63V72.75M21 60.63L0 48.5V24.25L21 12.13' fill='none' stroke='%232563EB' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 42px 72.75px;
}
/* sawtooth: small teeth on the light sections' top and bottom edges */
.section.light::before, .section.light::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 1; pointer-events: none; }
.section.light::before { top: -12px; background: conic-gradient(from 135deg at 50% 0, var(--mist) 90deg, transparent 0) 50% 0 / 24px 12px repeat-x; }
.section.light::after { bottom: -12px; background: conic-gradient(from -45deg at 50% 100%, var(--mist) 90deg, transparent 0) 50% 0 / 24px 12px repeat-x; }

/* ---------- shared spinning hexagon rings ---------- */
.sp { transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }
.mo .sp-a { animation: spin 140s linear infinite; }
.mo .sp-b { animation: spinR 100s linear infinite; }
.mo .sp-c { animation: spin 46s linear infinite; }
.mo .sp-d { animation: spinR 30s linear infinite; }
.mo .sp-e { animation: spin 18s linear infinite; }
.mo .sp-r1 { animation: spin 120s linear infinite; }
.mo .sp-r2 { animation: spinR 84s linear infinite; }
.mo .sp-r3 { animation: spin 60s linear infinite; }
.mo .sp-r4 { animation: spinR 36s linear infinite; }
.mo .sp-s1 { animation: spinR 44s linear infinite; }
.mo .sp-s2 { animation: spin 28s linear infinite; }
.mo .sp-s3 { animation: spinR 16s linear infinite; }
.mo .sp-f1 { animation: spin 80s linear infinite; }
.mo .sp-f2 { animation: spinR 26s linear infinite; }
.mo .sp-nf { animation: spin 30s linear infinite; }

/* off-screen sections pause */
.mo [data-vis="0"] *, .mo [data-vis="0"] *::before, .mo [data-vis="0"] *::after { animation-play-state: paused !important; }

/* ---------- reveal on scroll (only when motion is on) ---------- */
.js.mo .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js.mo .reveal.is-in { opacity: 1; transform: none; }
.solution-grid .b2 { transition-delay: .08s; } .solution-grid .b3 { transition-delay: .16s; } .solution-grid .b4 { transition-delay: .24s; }
.phases .phase:nth-child(2) { transition-delay: .12s; } .phases .phase:nth-child(3) { transition-delay: .24s; }

/* hero text: staggered entrance */
.mo .hero-content > * { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.mo .hero-content > :nth-child(2) { animation-delay: .08s; }
.mo .hero-content > :nth-child(3) { animation-delay: .18s; }
.mo .hero-content > :nth-child(4) { animation-delay: .28s; }
.mo .hero-content > :nth-child(5) { animation-delay: .38s; }
.mo .awards { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   HERO · TIME-LOCK CLOCKWORK (14 s cycle, in sync with the status caption)
   0–2 s encrypt · 2–4.5 s keys to the nodes · 4.5–9.8 s locked, countdown
   9.8–11.5 s trigger met, nodes decrypt in turn · 11.5–14 s block opens
   Still frame: locked, keys on the nodes, countdown hand at two thirds.
   ===================================================================== */
.hero-lock .hand, .hero-lock .kp, .hero-lock .rp, .hero-lock .nd-w, .hero-lock .cw, .hero-lock .core, .hero-lock .half, .hero-lock .bk-pulse, .hero-lock .scan { transform-box: fill-box; transform-origin: center; }
.hero-lock .hand { transform: rotate(240deg); }
.hero-lock .kll { opacity: .45; }
.hero-lock .tk { opacity: .16; }
.hero-lock .tk:nth-child(-n+8) { opacity: 1; }
.hero-lock .kp, .hero-lock .rp, .hero-lock .nd-w, .hero-lock .cw, .hero-lock .core, .hero-lock .bk-pulse, .hero-lock .scan, .hero-lock .nd-0, .hero-lock .nd-m { opacity: 0; }

.mo .hero-lock .hand { animation: hlHand 14s infinite; }
@keyframes hlHand { 0%, 32% { transform: rotate(0deg); animation-timing-function: steps(12, end); } 70%, 100% { transform: rotate(360deg); } }
.mo .hero-lock .tk { opacity: .16; animation-duration: 14s; animation-timing-function: linear; animation-iteration-count: infinite; }
.hero-lock .k0 { --x: 0.0px; --y: -262.0px; }
.hero-lock .k1 { --x: 226.9px; --y: -131.0px; }
.hero-lock .k2 { --x: 226.9px; --y: 131.0px; }
.hero-lock .k3 { --x: 0.0px; --y: 262.0px; }
.hero-lock .k4 { --x: -226.9px; --y: 131.0px; }
.hero-lock .k5 { --x: -226.9px; --y: -131.0px; }
.mo .hero-lock .t0 { animation-name: tk0; }
@keyframes tk0 { 0%, 34.97% { opacity: .16 } 35.17%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t1 { animation-name: tk1; }
@keyframes tk1 { 0%, 38.13% { opacity: .16 } 38.33%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t2 { animation-name: tk2; }
@keyframes tk2 { 0%, 41.30% { opacity: .16 } 41.50%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t3 { animation-name: tk3; }
@keyframes tk3 { 0%, 44.47% { opacity: .16 } 44.67%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t4 { animation-name: tk4; }
@keyframes tk4 { 0%, 47.63% { opacity: .16 } 47.83%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t5 { animation-name: tk5; }
@keyframes tk5 { 0%, 50.80% { opacity: .16 } 51.00%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t6 { animation-name: tk6; }
@keyframes tk6 { 0%, 53.97% { opacity: .16 } 54.17%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t7 { animation-name: tk7; }
@keyframes tk7 { 0%, 57.13% { opacity: .16 } 57.33%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t8 { animation-name: tk8; }
@keyframes tk8 { 0%, 60.30% { opacity: .16 } 60.50%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t9 { animation-name: tk9; }
@keyframes tk9 { 0%, 63.47% { opacity: .16 } 63.67%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t10 { animation-name: tk10; }
@keyframes tk10 { 0%, 66.63% { opacity: .16 } 66.83%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .t11 { animation-name: tk11; }
@keyframes tk11 { 0%, 69.80% { opacity: .16 } 70.00%, 82% { opacity: 1 } 88%, 100% { opacity: .16 } }
.mo .hero-lock .kll { animation: hlKll 14s linear infinite; }
@keyframes hlKll { 0%, 15% { opacity: 0 } 30%, 84% { opacity: .5 } 95%, 100% { opacity: 0 } }
.mo .hero-lock .kp { animation: hlKp 14s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes hlKp { 0%, 14% { transform: translate(0, 0); opacity: 0 } 15% { opacity: 1 } 23% { transform: translate(var(--x), var(--y)); opacity: 1 } 24.5%, 100% { transform: translate(var(--x), var(--y)); opacity: 0 } }
.mo .hero-lock .rp { animation: hlRp 14s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes hlRp { 0%, 71% { transform: translate(var(--x), var(--y)); opacity: 0 } 71.5% { opacity: 1 } 75% { transform: translate(0, 0); opacity: 1 } 76%, 100% { transform: translate(0, 0); opacity: 0 } }
.mo .hero-lock .nd-0 { animation: hlN0 14s linear infinite; }
@keyframes hlN0 { 0%, 23% { opacity: 1 } 24.5%, 97% { opacity: 0 } 100% { opacity: 1 } }
.mo .hero-lock .nd-c { animation: hlNc 14s linear infinite; }
@keyframes hlNc { 0%, 23% { opacity: 0 } 24.5%, 70% { opacity: 1 } 71.5%, 100% { opacity: 0 } }
.mo .hero-lock .nd-m { animation: hlNm 14s linear infinite; }
@keyframes hlNm { 0%, 70% { opacity: 0 } 71.5%, 96% { opacity: 1 } 99%, 100% { opacity: 0 } }
.mo .hero-lock .nd-w { animation: hlNw 14s ease-out infinite; }
@keyframes hlNw { 0%, 70.5% { transform: scale(1); opacity: 0 } 71% { transform: scale(1); opacity: .9 } 79%, 100% { transform: scale(2.4); opacity: 0 } }
/* stagger the six nodes by 1.6 % of the cycle; negative delays keep every loop in phase */
.mo .hero-lock .k1, .mo .hero-lock .k1 > * { animation-delay: -13.776s; }
.mo .hero-lock .k2, .mo .hero-lock .k2 > * { animation-delay: -13.552s; }
.mo .hero-lock .k3, .mo .hero-lock .k3 > * { animation-delay: -13.328s; }
.mo .hero-lock .k4, .mo .hero-lock .k4 > * { animation-delay: -13.104s; }
.mo .hero-lock .k5, .mo .hero-lock .k5 > * { animation-delay: -12.88s; }
.mo .hero-lock .scan { animation: hlScan 14s linear infinite; }
@keyframes hlScan { 0% { transform: translateY(0); opacity: 0 } 1% { opacity: .85 } 12% { transform: translateY(184px); opacity: .85 } 13%, 100% { transform: translateY(184px); opacity: 0 } }
.mo .hero-lock .bk-pulse { animation: hlPulse 14s ease-out infinite; }
@keyframes hlPulse { 0% { transform: scale(1); opacity: .8 } 6% { transform: scale(1.35); opacity: 0 } 6.1% { transform: scale(1); opacity: .8 } 12% { transform: scale(1.35); opacity: 0 } 12.1%, 100% { transform: scale(1); opacity: 0 } }
.mo .hero-lock .half.top { animation: hlTop 14s cubic-bezier(.3, 0, .2, 1) infinite; }
.mo .hero-lock .half.bot { animation: hlBot 14s cubic-bezier(.3, 0, .2, 1) infinite; }
@keyframes hlTop { 0%, 83.5% { transform: translateY(0) } 87%, 95% { transform: translateY(-26px) } 99%, 100% { transform: translateY(0) } }
@keyframes hlBot { 0%, 83.5% { transform: translateY(0) } 87%, 95% { transform: translateY(26px) } 99%, 100% { transform: translateY(0) } }
.mo .hero-lock .core { animation: hlCore 14s cubic-bezier(.3, 0, .2, 1) infinite; }
@keyframes hlCore { 0%, 84% { transform: scale(.5); opacity: 0 } 88%, 95% { transform: scale(1); opacity: 1 } 98.5%, 100% { transform: scale(.5); opacity: 0 } }
.mo .hero-lock .cw { animation: hlWave 14s ease-out infinite; }
.mo .hero-lock .cw.w2 { animation-delay: -13.4s; }
@keyframes hlWave { 0%, 84% { transform: scale(1); opacity: 0 } 84.5% { transform: scale(1); opacity: .9 } 97%, 100% { transform: scale(3.4); opacity: 0 } }

/* =====================================================================
   NETWORK LOOP (Home · How it works): the former hero animation.
   Keys travel from the sender to the nodes, the nodes lock, open one by
   one, the data is released to the recipient. Same 14 s story as the hero.
   Still frame: keys delivered, nodes locked.
   ===================================================================== */
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px 56px; align-items: center; }
.how-head + .chain .phases { margin-top: 24px; }
.how-status { margin-top: 24px; }
.how-stage { position: relative; width: 100%; max-width: 360px; justify-self: end; }
.flow-net { width: 100%; height: auto; overflow: visible; }
.flow-net text { font-family: var(--f-mono); font-size: 22px; letter-spacing: 1px; }
@media (max-width: 860px) {
  .how-head { grid-template-columns: 1fr; }
  .how-stage { max-width: 300px; justify-self: center; }
  .flow-net text { display: none; }
}
.flow-net .d0 { --d: 0s; } .flow-net .d1 { --d: .1s; } .flow-net .d2 { --d: .2s; } .flow-net .d3 { --d: .3s; } .flow-net .d4 { --d: .4s; }
.flow-net .d5 { --d: .5s; } .flow-net .d6 { --d: .6s; } .flow-net .d7 { --d: .7s; } .flow-net .d8 { --d: .8s; }
.flow-net .ln { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: .6; }
.flow-net .pk { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 98; stroke-dashoffset: 2; opacity: 0; filter: drop-shadow(0 0 4px #22C3E6); }
.flow-net .nd { color: var(--cyan); }
.flow-net .sh, .flow-net .burst, .flow-net .pulse { transform-box: fill-box; transform-origin: center; }
.flow-net .burst { opacity: 0; }
.flow-net .rl { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.flow-net .rpk { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 97; stroke-dashoffset: 3; opacity: 0; filter: drop-shadow(0 0 5px #5EF2C0); }
.flow-net .rc { color: var(--fog); }

.mo .flow-net .net { animation: qFloat 9s ease-in-out infinite alternate; }
@keyframes qFloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.mo .flow-net .drift { animation: qD 18s ease-in-out infinite alternate; }
@keyframes qD { from { transform: translate(0, 0) } to { transform: translate(-14px, 10px) } }
.mo .flow-net .ln { stroke-dashoffset: 100; animation: qL 14s linear infinite; }
@keyframes qL { 0%, 14% { stroke-dashoffset: 100; opacity: 0 } 15% { opacity: .75 } 32%, 90% { stroke-dashoffset: 0; opacity: .75 } 100% { stroke-dashoffset: 0; opacity: 0 } }
.mo .flow-net .pk { animation: qPk 14s linear infinite; }
@keyframes qPk { 0%, 15% { stroke-dashoffset: 2; opacity: 0 } 16% { opacity: 1 } 31% { stroke-dashoffset: -98; opacity: 1 } 32%, 100% { stroke-dashoffset: -98; opacity: 0 } }
.mo .flow-net .p1 { animation-delay: .15s } .mo .flow-net .p2 { animation-delay: .3s } .mo .flow-net .p3 { animation-delay: .45s } .mo .flow-net .p4 { animation-delay: .1s }
.mo .flow-net .p5 { animation-delay: .25s } .mo .flow-net .p6 { animation-delay: .4s } .mo .flow-net .p7 { animation-delay: .2s } .mo .flow-net .p8 { animation-delay: .35s }
.mo .flow-net .nd { animation: qN 14s linear infinite; animation-delay: var(--d); }
@keyframes qN { 0%, 28% { color: #2E3D5C } 32%, 68% { color: #22C3E6 } 70%, 95% { color: #5EF2C0 } 100% { color: #2E3D5C } }
.mo .flow-net .sh { animation: qS 14s linear infinite; animation-delay: var(--d); }
@keyframes qS { 0%, 69% { transform: translateY(0) } 71%, 95% { transform: translateY(-3px) } 100% { transform: translateY(0) } }
.mo .flow-net .burst { animation: qB 14s ease-out infinite; animation-delay: var(--d); }
@keyframes qB { 0%, 69% { transform: scale(1); opacity: 0 } 70% { transform: scale(1); opacity: .9 } 78%, 100% { transform: scale(2.6); opacity: 0 } }
.mo .flow-net .pulse { animation: qP 14s ease-out infinite; }
@keyframes qP { 0% { transform: scale(1); opacity: 1 } 6% { transform: scale(1.8); opacity: 0 } 6.1% { transform: scale(1); opacity: 1 } 13% { transform: scale(1.8); opacity: 0 } 13.1%, 100% { transform: scale(1); opacity: .9 } }
.mo .flow-net .rl { animation: qR 14s linear infinite; }
@keyframes qR { 0%, 80% { stroke-dashoffset: 100; opacity: 0 } 81% { opacity: 1 } 88%, 95% { stroke-dashoffset: 0; opacity: 1 } 100% { stroke-dashoffset: 0; opacity: 0 } }
.mo .flow-net .rpk { animation: qRpk 14s linear infinite; }
@keyframes qRpk { 0%, 81% { stroke-dashoffset: 3; opacity: 0 } 82% { opacity: 1 } 88% { stroke-dashoffset: -97; opacity: 1 } 89%, 100% { stroke-dashoffset: -97; opacity: 0 } }
.mo .flow-net .rc { animation: qRc 14s linear infinite; }
@keyframes qRc { 0%, 87% { color: #94A3B8 } 89%, 96% { color: #5EF2C0 } 100% { color: #94A3B8 } }

/* ---------- problem: drawn icons, growing rules, sliding text ---------- */
.mo .q-scan { animation: qScan 4.5s ease-in-out infinite alternate; }
@keyframes qScan { from { transform: translateX(0); } to { transform: translateX(354px); } }
.js.mo .risk::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.js.mo .risk.is-in::before { transform: scaleX(1); }
.js.mo .risk .icon [pathLength] { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s ease .1s; }
.js.mo .risk.is-in .icon [pathLength] { stroke-dashoffset: 0; }
.js.mo .risk h3, .js.mo .risk p { opacity: 0; transform: translateX(-18px); transition: opacity .6s ease .25s, transform .6s cubic-bezier(.2, .7, .2, 1) .25s; }
.js.mo .risk p { transition-delay: .4s; }
.js.mo .risk.is-in h3, .js.mo .risk.is-in p { opacity: 1; transform: none; }
.risk .icon { transition: transform .3s ease, color .3s ease; }
.mo .risk:hover .icon { transform: scale(1.12); }
.risk:hover h3 { color: var(--blue); }
.mo .icon-eye .pupil { animation: qLook 5s ease-in-out infinite; }
@keyframes qLook { 0%, 30%, 100% { transform: translateX(0) } 40%, 55% { transform: translateX(-5px) } 65%, 80% { transform: translateX(5px) } }

/* quote: words light up as it scrolls into view */
.quote .mark { display: inline-block; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
.js.mo .quote .mark { transform: scale(.4) rotate(-12deg); opacity: 0; }
.js.mo .quote.is-in .mark { transform: none; opacity: 1; }
.js.mo .quote .w { color: #7E8AA0; transition: color .35s ease; }
.js.mo .quote .w.on { color: var(--ink); }
.quote .w.hl, .js.mo .quote .w.hl.on { color: var(--blue); }
.js.mo .quote .w.hl:not(.on) { color: #7E8AA0; }
.quote .w.hl { position: relative; }

/* ---------- solution: hex clockwork, energy flows to the lock ---------- */
.diagram .flow path { opacity: 0; }
.mo .diagram .flow path { stroke-dasharray: 8 92; stroke-dashoffset: 100; animation: qFlow 2.8s linear infinite; opacity: .9; }
.mo .diagram .flow .f2 { animation-delay: .7s } .mo .diagram .flow .f3 { animation-delay: 1.4s } .mo .diagram .flow .f4 { animation-delay: 2.1s }
@keyframes qFlow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.diagram .breath { transform-box: fill-box; transform-origin: center; opacity: 0; }
.mo .diagram .breath { animation: qBreath 3.2s ease-out infinite; }
@keyframes qBreath { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.7); opacity: 0 } }
.diagram .conn path { transition: stroke .25s ease, stroke-width .25s ease; }
.diagram.hl-1 .c1, .diagram.hl-2 .c2, .diagram.hl-3 .c3, .diagram.hl-4 .c4 { stroke: var(--cyan); stroke-width: 2; }
.block { transition: transform .3s ease; }
.mo .block:hover { transform: translateY(-3px); }
.block:hover h3 { color: var(--cyan); }

/* =====================================================================
   HEX BLOCKS + STEP CHAINS (Home: Lock → Wait → Unlock; Use cases: 4 steps)
   A dashed chain line flows, a signal runs along it, each block flashes as
   it passes and the last one sends a green wave. Hover: the block grows,
   turns and glows, the others go grey. Mobile: vertical, the block in the
   middle of the screen is highlighted.
   ===================================================================== */
.hexb { --hc: var(--cyan); --hbg: var(--midnight); position: relative; z-index: 0; flex: none; width: 64px; height: 74px; display: flex; align-items: center; justify-content: center; color: var(--hc); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, filter .35s ease; }
.hexb > svg:not(.hx) { width: 24px; height: 24px; }
.hexb .hx { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.hx-b { fill: var(--hbg); stroke: var(--hc); stroke-width: 1.5; transition: stroke .35s ease; }
.hx-f { fill: var(--hc); opacity: 0; }
.hx-w { fill: none; stroke: var(--mint); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.chain-light .hx-w { stroke: #047857; }

.chain { position: relative; --T: 6.5s; --dlw: calc(var(--T) * -.25); }
.chain > ol { position: relative; }
.chain-track { position: absolute; left: 32px; top: 83px; width: calc((100% + 40px) * 2 / 3); height: 20px; pointer-events: none; }
.chain-light .chain-track { width: calc((100% + 32px) * 3 / 4); }
.chain-dash { position: absolute; left: 0; right: 0; top: 9px; height: 2px; overflow: hidden; }
.chain-dash::before { content: ""; position: absolute; top: 0; bottom: 0; left: -20px; right: 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 20px); }
.chain-light .chain-dash::before { background-image: repeating-linear-gradient(90deg, #94A3B8 0 10px, transparent 10px 20px); }
.chain-sig { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; }
.chain-sig i { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 26px rgba(34, 195, 230, .55); }
.chain-light .chain-sig i { background: var(--blue); box-shadow: 0 0 12px rgba(37, 99, 235, .8), 0 0 26px rgba(37, 99, 235, .4); }
.chain.is-v .chain-dash { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
.chain.is-v .chain-dash::before { left: 0; right: 0; top: -20px; bottom: 0; background-image: repeating-linear-gradient(180deg, var(--line-2) 0 10px, transparent 10px 20px); }
.chain-light.is-v .chain-dash::before { background-image: repeating-linear-gradient(180deg, #94A3B8 0 10px, transparent 10px 20px); }
.chain.is-v .chain-sig i { left: 50%; top: 0; margin: -6px 0 0 -6px; }

.mo .chain-dash::before { animation: dashFlow 1.1s linear infinite; }
.mo .chain.is-v .chain-dash::before { animation-name: dashFlowV; }
@keyframes dashFlow { to { transform: translateX(20px); } }
@keyframes dashFlowV { to { transform: translateY(20px); } }
.mo .chain-sig { animation: chainSig var(--T) linear infinite; }
.mo .chain.is-v .chain-sig { animation-name: chainSigV; }
@keyframes chainSig { 0% { transform: translateX(0); opacity: 0 } 3% { opacity: 1 } 75% { transform: translateX(100%); opacity: 1 } 79%, 100% { transform: translateX(100%); opacity: 0 } }
@keyframes chainSigV { 0% { transform: translateY(0); opacity: 0 } 3% { opacity: 1 } 75% { transform: translateY(100%); opacity: 1 } 79%, 100% { transform: translateY(100%); opacity: 0 } }
.mo .chain .hx-f { animation: hxFlash var(--T) ease-out infinite; animation-delay: var(--dl, 0s); }
@keyframes hxFlash { 0% { opacity: .55 } 12%, 100% { opacity: 0 } }
.mo .chain li:last-child .hx-w { animation: hxWave var(--T) ease-out infinite; animation-delay: var(--dlw); }
@keyframes hxWave { 0% { transform: scale(1); opacity: .9 } 30%, 100% { transform: scale(2.3); opacity: 0 } }
@keyframes hxWaveS { 0% { transform: scale(1); opacity: .9 } 30%, 100% { transform: scale(1.35); opacity: 0 } }
@media (max-width: 860px) { .mo .chain li:last-child .hx-w { animation-name: hxWaveS; } }
/* fallbacks until the script measures the chain */
.phases > li:nth-child(2) { --dl: calc(var(--T) * -.625); } .phases > li:nth-child(3) { --dl: calc(var(--T) * -.25); }
.flow > li:nth-child(2) { --dl: calc(var(--T) * -.75); } .flow > li:nth-child(3) { --dl: calc(var(--T) * -.5); } .flow > li:nth-child(4) { --dl: calc(var(--T) * -.25); }

/* hover (pointer devices) */
@media (hover: hover) {
  .chain:hover > ol > li:not(:hover) .hexb { --hc: var(--line-2); color: var(--muted); }
  .chain-light:hover > ol > li:not(:hover) .hexb { --hc: #CBD5E1; color: #5B6B82; }
  .chain > ol > li:hover .hx { filter: drop-shadow(0 0 14px var(--hc)); }
  .chain > ol > li:hover .hx-f { opacity: .18; }
  .mo .chain > ol > li:hover .hexb { transform: scale(1.14); }
  .mo .chain > ol > li:hover .hx { transform: rotate(30deg); }
  .chain > ol > li:hover h3 { color: var(--hc-t, var(--cyan)); }
  .chain-light > ol > li:hover h3 { color: var(--blue); }
}
/* mobile: the block passing the middle of the screen */
.mo .chain.has-center > ol > li:not(.is-center) .hexb { --hc: var(--line-2); color: var(--muted); }
.mo .chain-light.has-center > ol > li:not(.is-center) .hexb { --hc: #CBD5E1; color: #5B6B82; }
.mo .chain > ol > li.is-center .hexb { transform: scale(1.14); }
.mo .chain > ol > li.is-center .hx { transform: rotate(30deg); filter: drop-shadow(0 0 14px var(--hc)); }

/* =====================================================================
   LIVE LEDGER (How it works): confirmed blocks, the latest with a tick,
   a pulsing dashed block that is still missing and then arrives.
   ===================================================================== */
.ledger { margin-top: 80px; --slot: 140px; }
.ledger-label { display: flex; align-items: center; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .08em; color: var(--fog); }
.ledger-view { position: relative; margin-top: 18px; padding: 26px 0 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.ledger-track { position: relative; display: flex; justify-content: flex-end; }
.ledger-track::before { content: ""; position: absolute; left: -2000px; right: calc(var(--slot) / 2); top: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 20px); }
.lb { position: relative; flex: none; width: var(--slot); display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .5s ease; }
.lb .hexb { --hbg: var(--midnight); color: var(--snow); font: 500 .875rem/1 var(--f-mono); letter-spacing: .04em; }
.lb .hexb b { font-weight: 500; }
.lb-t { font: 500 .6875rem/1.35 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fog); text-align: center; max-width: 13ch; }
.lb-ok { display: none; width: 26px; height: 26px; fill: none; stroke: var(--midnight); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb.latest .hexb { --hc: var(--mint); }
.lb.latest .hx-f { opacity: 1; }
.lb.latest .hx { filter: drop-shadow(0 0 16px rgba(94, 242, 192, .45)); }
.lb.latest b { display: none; }
.lb.latest .lb-ok { display: block; }
.lb.latest .lb-t { color: var(--mint); }
.lb.pend .hexb { --hc: var(--line-2); }
.lb.pend .hx-b { fill: none; stroke-dasharray: 5 5; }
.lb.pend .lb-t { color: var(--muted); }
.lb.leave { opacity: 0; }
.mo .lb.pend .hexb { animation: lbPend 1.6s ease-in-out infinite; }
@keyframes lbPend { 50% { opacity: .35; } }
.mo .lb.arrive .hexb { animation: lbArrive .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes lbArrive { from { transform: scale(.6) rotate(-30deg); opacity: .3; } to { transform: none; opacity: 1; } }
.mo .lb.arrive .hx-w { animation: lbWave 1.1s ease-out; }
@keyframes lbWave { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.mo .lb.enter { animation: lbIn .6s ease both; }
@keyframes lbIn { from { opacity: 0; } }
.ledger-sig { position: absolute; left: 0; top: 57px; width: 12px; height: 12px; opacity: 0; pointer-events: none; }
.ledger-sig i { position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 26px rgba(34, 195, 230, .55); }
.mo .ledger.run .ledger-sig { animation: lbSig 1.3s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes lbSig { 0% { transform: translateX(var(--sx0, 0px)); opacity: 0 } 10%, 90% { opacity: 1 } 100% { transform: translateX(var(--sx, 0px)); opacity: 0 } }
.mo .ledger.run .lb:not(.latest) .hx-f { animation: lbFlash .6s ease-out var(--fd, 0s); }
@keyframes lbFlash { 0% { opacity: .6 } 100% { opacity: 0 } }
@media (max-width: 760px) { .ledger { --slot: 108px; margin-top: 64px; } }

/* small helpers */
.section-link { margin-top: 40px; }
.case-links .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.case-links .row:hover .h3 { color: var(--cyan); }
@media (max-width: 760px) { .case-links .row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- comparison: stacked cards on small screens ---------- */
.cmp-cards { display: none; list-style: none; margin: 36px 0 0; padding: 0; }
.cmp-cards li { padding: 22px 0; border-top: 1px solid var(--line); }
.cmp-cards li:last-child { border-bottom: 1px solid var(--line); }
.cmp-q { font: 600 1.125rem/1.35 var(--f-head); letter-spacing: -.01em; }
.cmp-cards dl { margin: 14px 0 0; display: grid; gap: 10px; }
.cmp-cards dl > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 4px 14px; padding: 10px 14px; border-radius: 10px; }
.cmp-cards dl > .q { background: var(--navy); border-left: 2px solid var(--cyan); }
.cmp-cards dt { font: 500 .75rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
.cmp-cards dd { margin: 0; color: var(--fog); font-size: .9375rem; }
.cmp-cards .q dt { color: var(--snow); }
.cmp-cards .q dd { color: var(--cyan); font-weight: 600; }
@media (max-width: 640px) {
  .table-wrap { display: none; }
  .cmp-cards { display: block; }
}
@media (max-width: 400px) { .cmp-cards dl > div { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ---------- v0.5: accessibility additions ---------- */
.case-h { margin: 0; font: inherit; letter-spacing: inherit; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fog); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.motion-toggle:hover { color: var(--snow); border-color: var(--cyan); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
html:not(.mo) .motion-toggle .i-play { display: block; }
html:not(.mo) .motion-toggle .i-pause { display: none; }
.mobile-motion { display: none; }
.lang-menu-m { display: none; }
.motion-toggle { flex: none; }
@media (max-width: 1079px) {
  .header-tools { gap: 10px; }
  .header-tools .lang-menu { display: none; }
  .lang-menu-m { display: block; border-bottom: 1px solid var(--line); }
  .lang-menu-m .lang-btn { width: 100%; min-height: 56px; padding: 0; border: 0; border-radius: 0; color: var(--fog); text-transform: uppercase; justify-content: flex-start; }
  .lang-menu-m .lang-btn .i-chev { margin-left: auto; }
  .lang-menu-m .lang-opts { position: static; min-width: 0; max-height: none; margin: 0 0 12px; padding: 0; background: none; border: 0; box-shadow: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lang-menu-m .lang-opts[hidden] { display: none; }
  .mobile-nav .lang-opts a { display: flex; padding: 12px 8px; border: 0; font: 500 1rem/1.3 var(--f-body); color: var(--snow); }
  .mobile-nav .lang-opts a[aria-current="true"]::before { content: none; }
  .mobile-nav .lang-opts a[aria-disabled="true"] { color: var(--fog); }
  .mobile-motion { display: block; width: 100%; margin-top: 8px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fog); text-align: left; cursor: pointer; font: 500 .8125rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
}
.nf-lock { width: 120px; height: 120px; margin: 0 auto 24px; }
.field:focus-within input { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Try it page: app and Live side by side on wide screens ---------- */
@media (min-width: 1180px) {
  .try-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .try-live > .section { padding: clamp(72px, 6vw, 104px) 0; }
  .try-live > .section > .container { max-width: none; margin: 0; height: 100%; }
  .try-live > .try-pane > .container { padding: 0 48px 0 max(var(--gutter), calc((100vw - 1264px) / 2 + var(--gutter))); }
  .try-live > .live-pane > .container { padding: 0 max(var(--gutter), calc((100vw - 1264px) / 2 + var(--gutter))) 0 48px; display: flex; flex-direction: column; }
  .try-live .try-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "app" "rest"; }
  .try-live .try-grid > :is(.app-card, qtle-app) { margin-top: 32px; }
  /* the row keeps its height when the app gets shorter (main.js); the content stays at the top of the pane */
  .try-live:has(qtle-app) .try-grid { align-content: start; }
  .try-live .live-head { grid-template-columns: 1fr; gap: 16px; }
  .try-live .live-head .lead { font-size: 1.0625rem; }
  .try-live .live-frame { flex: 1 1 auto; min-height: 380px; margin-top: 36px; }
  .try-live .live-space { flex: 1 1 auto; height: auto; min-height: 420px; }
  .try-live > .light::before, .try-live > .light::after { display: none; }
}

/* ---------- very narrow screens (≤ 360 px) ---------- */
@media (max-width: 360px) {
  .status-pill { font-size: .6875rem; letter-spacing: .05em; gap: 8px; padding: 6px 12px; }
  .current-page { padding-left: 10px; letter-spacing: .04em; font-size: .6875rem; }
  .brand { gap: 10px; }
}
/* the page label is decorative; below 360 px it no longer fits next to the header controls */
@media (max-width: 359px) { .current-page { display: none; } }
.nw { white-space: nowrap; }

/* ---------- hero: clockwork sits beside the text on wide screens, below it on narrow ones ---------- */
@media (min-width: 861px) { .hero .lead { max-width: min(60ch, 54%); } }
@media (min-width: 861px) and (max-width: 1279px) { .hero-lock { width: 48%; right: -8%; } }
@media (max-width: 860px) {
  .hero-lock { position: relative; order: 1; right: auto; top: auto; translate: none; opacity: 1; width: min(84%, 420px); margin: 0 auto clamp(8px, 3vh, 24px); }
  .hero > .container:last-child { order: 2; }
  .hero-content { flex: 0 0 auto; padding-bottom: 8px; }
}
/* alternative home (home-globe.html): hero without the awards strip, clockwork centred on the text */
.hero-solo .hero-lock { top: calc(50% + var(--header-h) / 2); max-width: calc((min(100svh, var(--hero-max, 1200px)) - var(--header-h) - 24px) / .75); }
@media (max-width: 860px) { .hero-solo .hero-lock { max-width: none; } .hero-solo > .container:last-child { order: 0; } }

/* ---------- Integration: quick start with the real SDK samples ---------- */
.qs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 20px 56px; align-items: end; margin-bottom: 48px; }
.qs-head .lead { color: var(--fog); }
.qs-head .lead a { color: var(--snow); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.qs-head .lead a:hover { color: var(--cyan); }
.qs { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.qs-side { position: sticky; top: calc(var(--header-h) + 24px); }
.qs-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qs-tabs button { appearance: none; position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 16px 36px 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fog); font: 500 .9375rem/1.3 var(--f-mono); letter-spacing: .03em; text-align: left; cursor: pointer; transition: color .2s ease; }
.qs-tabs button:hover { color: var(--snow); }
.qs-tabs button[aria-selected="true"] { color: var(--snow); }
.qs-tabs button::after { content: "\2192"; position: absolute; right: 4px; top: 50%; color: var(--cyan); opacity: 0; transform: translate(-8px, -50%); transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.qs-tabs button[aria-selected="true"]::after { opacity: 1; transform: translate(0, -50%); }
.t-hex { flex: none; width: 12px; height: 14px; background: var(--line-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .2s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.qs-tabs button:hover .t-hex { background: var(--fog); }
.qs-tabs button[aria-selected="true"] .t-hex { background: var(--cyan); }
.mo .qs-tabs button[aria-selected="true"] .t-hex { transform: rotate(90deg); }
.t-short { display: none; }

.code-win { border-radius: 16px; background: var(--midnight); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(34, 195, 230, .12); overflow: hidden; }
.qs-win { position: relative; }
.qs-bar { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); background: rgba(17, 26, 46, .6); }
.qs-dots { display: flex; gap: 6px; flex: none; }
.qs-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.qs-file { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .03em; color: var(--fog); }
.qs-copy, .qs-play { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .03em; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.qs-copy { background: none; border: 1px solid var(--line-2); color: var(--snow); }
.qs-copy:hover { border-color: var(--cyan); color: var(--cyan); }
.qs-copy svg { width: 16px; height: 16px; }
.qs-copy.is-done { border-color: var(--mint); color: var(--mint); }

.qs-panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.qs-code { --iw: 4ch; position: relative; z-index: 0; margin: 0; padding: 24px 24px 26px 56px; font: 500 .84375rem/1.8 var(--f-mono); color: #CBD5E1; white-space: normal; tab-size: 4; counter-reset: none; }
.qs-code.lang-js { --iw: 2ch; }
.qs-code code { font: inherit; }
.qs-code .cl { display: block; position: relative; min-height: 1.8em; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc(var(--n, 0) * var(--iw) + 2ch); text-indent: calc(-1 * (var(--n, 0) * var(--iw) + 2ch)); }
.qs-code .ind { display: inline-block; vertical-align: top; width: calc(var(--n, 0) * var(--iw)); overflow: hidden; white-space: pre; text-indent: 0; }
.qs-code .cl::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -56px; right: -24px; background: transparent; box-shadow: inset 2px 0 0 transparent; transition: background-color .3s ease, box-shadow .3s ease; }
.qs-code .cl[data-b]::before { content: attr(data-b); position: absolute; left: -42px; top: calc(.9em - 12px); width: 21px; height: 24px; display: grid; place-items: center; text-indent: 0; font: 600 .6875rem/1 var(--f-mono); color: var(--snow); background: var(--line-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .3s ease, color .3s ease; }
.qs-code .cm-l { color: #8FA1C0; font-style: italic; }
.qs-code .cm { color: #8FA1C0; }
.qs-code .kw { color: var(--sky); }
.qs-code .ty { color: var(--cyan); }
.qs-code .fn { color: var(--snow); }
.qs-code .st { color: var(--mint); }
.qs-code .nu { color: #F5B76B; }
.qs-code .ns { color: #CBD5E1; }
.qs-code .bi { color: var(--cyan); }
.qs-code .op, .qs-code .pu { color: var(--fog); }
.qs-code .nm { color: #CBD5E1; }
[data-qs][data-step="1"] .qs-panel:not([hidden]) .cl[data-s="1"]::after,
[data-qs][data-step="2"] .qs-panel:not([hidden]) .cl[data-s="2"]::after,
[data-qs][data-step="3"] .qs-panel:not([hidden]) .cl[data-s="3"]::after { background: rgba(34, 195, 230, .08); box-shadow: inset 2px 0 0 var(--cyan); }
[data-qs][data-step="1"] .cl[data-b="1"]::before, [data-qs][data-step="2"] .cl[data-b="2"]::before, [data-qs][data-step="3"] .cl[data-b="3"]::before { background: var(--cyan); color: var(--midnight); }

.qs-run { border-top: 1px solid var(--line); background: var(--deep); padding: 16px 20px 18px; }
.qs-run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.qs-run-t { font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.qs-play { background: none; border: 1px solid var(--cyan); color: var(--cyan); }
.qs-play:hover { background: var(--cyan); color: var(--midnight); }
.qs-play svg { width: 14px; height: 14px; }
.qs-play[aria-disabled="true"] { cursor: default; border-color: var(--line-2); color: var(--fog); background: none; }
.qs-log { list-style: none; margin: 12px 0 0; padding: 0; font: 500 .8125rem/1.45 var(--f-mono); }
.qs-log li { display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 4px 0; color: var(--fog); transition: color .25s ease; }
.qs-log .k { flex: none; width: 19px; height: 22px; display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: var(--snow); background: var(--line-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color .25s ease, color .25s ease; }
.qs-log li[data-l="3"] { color: var(--mint); }
.qs-log li[data-l="3"] .k { background: var(--mint); color: var(--midnight); }
.qs-bar-p { flex: 0 0 72px; height: 4px; margin-left: auto; border-radius: 2px; background: var(--line); overflow: hidden; }
.qs-bar-p i { display: block; height: 100%; background: var(--mint); transform-origin: left center; transform: scaleX(1); }
.qs-note { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
/* running */
[data-qs][data-run] .qs-log li { color: var(--muted); }
[data-qs][data-run] .qs-log li .k { background: var(--line); color: var(--fog); }
[data-qs][data-run] .qs-log li.is-on { color: var(--snow); }
[data-qs][data-run] .qs-log li.is-on .k { background: var(--cyan); color: var(--midnight); }
[data-qs][data-run] .qs-log li.is-ok { color: var(--fog); }
[data-qs][data-run] .qs-log li.is-ok .k { background: var(--line-2); color: var(--snow); }
[data-qs][data-run] .qs-log li[data-l="3"].is-ok { color: var(--mint); }
[data-qs][data-run] .qs-log li[data-l="3"].is-ok .k { background: var(--mint); color: var(--midnight); }
[data-qs][data-run] .qs-bar-p i { background: var(--cyan); }
.mo [data-qs][data-run] .qs-log li.is-on .k { animation: qsPulse 1.2s ease-in-out infinite; }
@keyframes qsPulse { 50% { transform: scale(1.12); } }

@media (max-width: 980px) {
  .qs-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .qs { grid-template-columns: 1fr; gap: 20px; }
  .qs-side { position: static; }
  .qs-tabs { flex-direction: row; border-top: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .qs-tabs button { flex: 1 1 0; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .8125rem; text-align: center; }
  .qs-tabs button[aria-selected="true"] { border-bottom-color: var(--cyan); }
  .qs-tabs button::after { display: none; }
  .t-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .t-short { display: inline; }
}
@media (max-width: 1279px) { .qs-code { --iw: 3ch; } .qs-code.lang-js { --iw: 2ch; } }
@media (max-width: 600px) {
  .qs-code { --iw: 2ch; padding: 18px 14px 20px 42px; font-size: .78125rem; }
  .qs-code.lang-js { --iw: 1.5ch; }
  .qs-code .cl::after { left: -42px; right: -14px; }
  .qs-code .cl[data-b]::before { left: -34px; width: 19px; height: 22px; top: calc(.9em - 11px); }
  .qs-bar { padding: 8px 8px 8px 14px; gap: 10px; }
  .qs-run { padding: 14px 14px 16px; }
  .qs-log { font-size: .78125rem; }
  .qs-bar-p { flex-basis: 48px; }
}
@media (max-width: 420px) {
  .qs-tabs .t-hex { display: none; }
  .qs-tabs button { padding: 12px 2px; white-space: nowrap; letter-spacing: 0; }
  .qs-bar-p { flex-basis: 32px; }
  .qs-dots { display: none; }
}

/* ---------- Live globe (qtle-globe) ---------- */
qtle-globe { display: block; }
.bg-deep { background: var(--deep); }
.glab .h3 { margin-top: 10px; max-width: 46ch; }
.glab-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.glab-split .muted, .glab-split p:not(.eyebrow) { margin-top: 14px; }
.glab-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.glab-cards figure { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--midnight); }
.glab-s { aspect-ratio: 1; min-height: 0; }
.glab-cards figcaption { margin-top: 10px; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--fog); }
.glab-code { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 10, 21, .6); font: 500 .8125rem/1.6 var(--f-mono); color: #CBD5E1; white-space: pre-wrap; overflow-wrap: anywhere; }
.glab-stage .glab-code { position: relative; z-index: 1; margin: 0; background: rgba(0, 0, 0, .55); }
.glab-stage .glab-head { position: relative; z-index: 1; }
.glab-stage .glab-head .h3 { margin-top: 10px; max-width: 46ch; }
.glab-stage .live-space { height: clamp(380px, 52vw, 640px); }
.glab-note { margin-top: 24px; }
.light .glab-code { background: #fff; border-color: var(--line-light); color: var(--ink); }
@media (max-width: 860px) { .glab-split { grid-template-columns: 1fr; } }

/* ---------- Try it page: dark, one star field behind the app and QTLE Live (v0.16) ---------- */
.try-stars { background-color: #000; background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) calc(100% - 140px), var(--midnight)), var(--stars, url(globe/stars-tile.png)); background-size: 100% 100%, 2048px 512px; background-repeat: no-repeat, repeat; background-position: 0 0, 50% 0; }
.try-stars > .section, .try-stars .live-stage { background: transparent; }
.try-stars .try-head .eyebrow, .try-stars .try-head .h2, .try-stars .steps-num li, .try-stars .try-note { text-shadow: 0 1px 3px #000, 0 0 12px rgba(0, 0, 0, .85); }
.try-pane:not(.light) .steps-num li { color: var(--snow); }
.try-pane:not(.light) .try-note { color: #B6C2D6; }

/* ---------- the embedded app preview: dark theme in dark sections (or inside .app-dark); light sections keep the light app ---------- */
:is(.section:not(.light), .app-dark) .app-card { position: relative; background: linear-gradient(180deg, #121C33 0%, #0C1427 100%); color: var(--snow); border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(91, 155, 255, .06), 0 30px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(37, 99, 235, .16); color-scheme: dark; }
:is(.section:not(.light), .app-dark) .app-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 195, 230, .7), transparent); pointer-events: none; }
:is(.section:not(.light), .app-dark) .app-card .app-bar { border-bottom-color: var(--line); color: var(--fog); }
:is(.section:not(.light), .app-dark) .app-card .app-bar a { color: var(--sky); }
:is(.section:not(.light), .app-dark) .app-card .app-dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
:is(.section:not(.light), .app-dark) .app-card .app-tabs { border-bottom-color: var(--line); }
:is(.section:not(.light), .app-dark) .app-card .app-tabs button { color: var(--fog); }
:is(.section:not(.light), .app-dark) .app-card .app-tabs button:hover { color: var(--snow); }
:is(.section:not(.light), .app-dark) .app-card .app-tabs button[aria-selected="true"] { color: var(--snow); border-bottom-color: var(--cyan); }
:is(.section:not(.light), .app-dark) .app-card .drop { border-color: #3A4B6E; background: rgba(6, 10, 21, .55); }
:is(.section:not(.light), .app-dark) .app-card .drop svg { color: var(--sky); }
:is(.section:not(.light), .app-dark) .app-card .file-name { color: var(--fog); }
:is(.section:not(.light), .app-dark) .app-card .switch { background: #33425F; }
:is(.section:not(.light), .app-dark) .app-card .switch[aria-checked="true"] { background: var(--blue); }
:is(.section:not(.light), .app-dark) .app-card .field { color: #B6C2D6; }
:is(.section:not(.light), .app-dark) .app-card .field input { background: var(--deep); border-color: var(--line-2); color: var(--snow); }
:is(.section:not(.light), .app-dark) .app-card .field input::placeholder { color: var(--muted); }
:is(.section:not(.light), .app-dark) .app-card .utc { color: var(--fog); }
:is(.section:not(.light), .app-dark) .app-card .seg span { background: rgba(6, 10, 21, .55); border-color: var(--line-2); color: var(--snow); }
:is(.section:not(.light), .app-dark) .app-card .seg label:hover span { border-color: var(--sky); }
:is(.section:not(.light), .app-dark) .app-card .seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
:is(.section:not(.light), .app-dark) .app-card .muted { color: #B6C2D6; }
:is(.section:not(.light), .app-dark) .app-card .btn-ghost { border-color: var(--line-2); color: var(--snow); background: rgba(10, 16, 32, .6); }
:is(.section:not(.light), .app-dark) .app-card .btn-ghost:hover { border-color: var(--cyan); color: var(--snow); background: rgba(10, 16, 32, .8); }
:is(.section:not(.light), .app-dark) .app-card .app-note { background: rgba(37, 99, 235, .14); border: 1px solid rgba(91, 155, 255, .32); color: var(--snow); }
:is(.section:not(.light), .app-dark) .app-card .app-note a { color: var(--sky); }
:is(.section:not(.light), .app-dark) .app-card .ph { background: rgba(6, 10, 21, .5); border-color: var(--line-2); color: var(--fog); }
:is(.section:not(.light), .app-dark) .app-card :focus-visible { outline-color: var(--sky); }
:is(.section:not(.light), .app-dark) .app-card .field input:focus, :is(.section:not(.light), .app-dark) .app-card .field input:focus-visible, :is(.section:not(.light), .app-dark) .app-card .field:focus-within input, :is(.section:not(.light), .app-dark) .app-card .seg input:focus-visible + span, :is(.section:not(.light), .app-dark) .app-card .file-btn:focus-within { outline-color: var(--sky); }

/* ---------- alternative home: light Try it + Live block with the daytime globe (preview page) ---------- */
.light.live-stage { background: var(--mist); }
/* one background for the whole light Try it + Live block: the wrapper carries it, the two sections are transparent */
.try-live-light > .section.light, .try-live-light .light.live-stage { background: transparent; }
.try-live-light > .section:first-child::after, .try-live-light > .section:last-child::before { display: none; }
.light.live-stage .live-head .eyebrow, .light.live-stage .live-head .h2, .light.live-stage .live-head .lead, .light.live-stage .replay label { text-shadow: 0 0 6px var(--mist), 0 0 14px var(--mist); }
.light .replay label { color: var(--slate); }
.light .replay input { background: #fff; border-color: var(--line-light); color: var(--ink); }
.light .replay input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.light .replay-note { color: var(--slate); }
.light .live-dot { background: var(--blue); box-shadow: 0 0 10px rgba(37, 99, 235, .6); }

/* ---------- home: awards section ---------- */
.awards-sec { border-top: 1px solid var(--line); }
.awards-head { max-width: 720px; margin-bottom: 48px; }
.awards-head .lead { color: var(--fog); }
.awards-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.award-tile { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(17, 26, 46, .6); }
.award-tile .badge-ph { width: 132px; height: 132px; margin-bottom: 28px; border-radius: 20px; }
.award-badge { flex: none; width: 160px; height: 160px; margin-bottom: 28px; object-fit: contain; object-position: left center; border-radius: 16px; }
.award-meta { margin: 0; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.award-tile .h3 { margin: 10px 0 0; }
.award-txt { margin: 12px 0 24px; color: var(--fog); }
.award-tile .link-arrow { margin-top: auto; }
.award-badge-link { display: block; border-radius: 16px; transition: transform .25s ease; }
.award-badge-link:hover { transform: translateY(-3px); }
.award-badge-link .award-badge { display: block; }
.badge-ph { flex: none; display: grid; place-items: center; border: 1px dashed var(--line-2); font: 500 .6875rem/1 var(--f-mono); color: var(--fog); }
@media (max-width: 1023px) { .awards-grid { grid-template-columns: 1fr; gap: 16px; } .award-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; } .award-tile .badge-ph { grid-row: 1 / span 4; width: 104px; height: 104px; margin: 0; } .award-badge { grid-row: 1 / span 4; width: 120px; height: 120px; margin: 0; } .award-badge-link { grid-row: 1 / span 4; align-self: start; } .award-tile .link-arrow { margin-top: 0; } }
@media (max-width: 520px) { .award-tile { display: flex; } .award-tile .badge-ph { width: 96px; height: 96px; margin-bottom: 20px; } .award-badge { width: 120px; height: 120px; margin-bottom: 20px; } }

/* ---------- home: post-quantum cryptography ---------- */
.pqc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.pqc .lead { margin-top: 18px; max-width: 54ch; }
.pqc-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.pqc-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.pqc-list .alg { display: inline-flex; justify-content: center; padding: 7px 8px; border-radius: 8px; background: var(--midnight); color: var(--cyan); font: 500 .8125rem/1.2 var(--f-mono); letter-spacing: .04em; white-space: nowrap; }
.pqc-list .h3 { font-size: 1.0625rem; }
.pqc-list p { margin-top: 4px; color: var(--slate); font-size: .9375rem; }
.pqc-art { margin: 0; }
.pqc-svg { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 40px 100px rgba(15, 23, 42, .18); }
.pqc-svg .pq-a { font: 600 17px var(--f-mono); fill: #F8FAFC; letter-spacing: 1px; }
.pqc-svg .pq-b { font: 500 10px var(--f-mono); fill: #94A3B8; letter-spacing: 1.5px; }
.pqc-svg .tw { transform-box: fill-box; transform-origin: center; }
.pqc-svg .pqc-ring { transform-box: view-box; transform-origin: 260px 214px; }
.mo .pqc-svg .tw { animation: pqTw 3.2s ease-in-out infinite; }
.mo .pqc-svg .t1 { animation-delay: .5s; } .mo .pqc-svg .t2 { animation-delay: 1s; } .mo .pqc-svg .t3 { animation-delay: 1.5s; } .mo .pqc-svg .t4 { animation-delay: 2s; } .mo .pqc-svg .t5 { animation-delay: 2.5s; }
.mo .pqc-svg .pqc-ring { animation: pqSpin 40s linear infinite; }
@keyframes pqTw { 50% { opacity: .35; transform: scale(.7); } }
@keyframes pqSpin { to { transform: rotate(360deg); } }
/* home (main line): soft colour blends between neighbouring dark sections */
.fade-to-deep::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgba(6, 10, 21, 0) 0%, var(--deep) 100%); pointer-events: none; }
.fade-to-deep > .container { position: relative; z-index: 1; }
.fade-from-midnight { background: linear-gradient(180deg, var(--midnight) 0, var(--navy) 260px, var(--navy) 100%); }
.fade-to-midnight { border-top: 0; background: linear-gradient(180deg, var(--deep) 0, var(--deep) calc(100% - 260px), var(--midnight) 100%); }
/* home (main line): dark PQC section; the alternative page keeps the light one */
.pqc-dark { overflow: hidden; background: linear-gradient(180deg, var(--deep) 0, var(--deep) calc(100% - 260px), var(--midnight) 100%); }
.pqc-dark::before { content: ""; position: absolute; right: -12%; top: 50%; width: 720px; height: 720px; translate: 0 -50%; border-radius: 50%; background: var(--blue); opacity: .1; filter: blur(140px); pointer-events: none; }
.pqc-dark > .container { position: relative; }
.pqc-dark .lead { color: var(--fog); }
.pqc-dark .pqc-list li { padding-top: 20px; border-top: 1px solid var(--line); }
.pqc-dark .pqc-list .alg { background: var(--navy); border: 1px solid var(--line-2); }
.pqc-dark .pqc-list p { color: var(--fog); }
.pqc-dark .pqc-svg { border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(37, 99, 235, .16); }
@media (max-width: 960px) { .pqc-grid { grid-template-columns: 1fr; } .pqc-art { max-width: 560px; } }
@media (max-width: 420px) { .pqc-list li { grid-template-columns: 1fr; gap: 8px; } .pqc-list .alg { justify-self: start; } }

/* ---------- Try it + Live side by side: the globe's glow runs on under the Try it column instead of stopping at the column edge ---------- */
@media (min-width: 1180px) {
  .try-live { position: relative; overflow: hidden; }
  .try-live > .try-pane { z-index: 2; }
  .try-live > .live-pane { z-index: 1; overflow: visible; }
  .try-live .live-globe { left: -240px; --qg-inset-left: 240px; }
}

/* ---------- alternative home: the globe in the How it works teaser (preview page) ---------- */
.how-globe-sec { overflow-x: clip; }
.how-globe-sec .how-head { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.how-stage-globe { max-width: 460px; aspect-ratio: 1; }
.how-globe { position: absolute; inset: -120px; min-height: 0; pointer-events: none; --qg-inset-top: 120px; --qg-inset-right: 120px; --qg-inset-bottom: 120px; --qg-inset-left: 120px; }
@media (max-width: 860px) { .how-globe-sec .how-head { grid-template-columns: 1fr; } .how-stage-globe { max-width: 340px; } }

/* keyboard focus on the interactive Live globe */
.live-globe:focus-visible { outline: 2px solid var(--cyan); outline-offset: -6px; border-radius: 12px; }

/* header on phones: smaller logo and page label so both fit beside the controls */
@media (max-width: 420px) { .site-header .logo img { width: 81px; } .current-page { padding-left: 10px; letter-spacing: .04em; font-size: .6875rem; } }
