/* UjimaOS site — the shell's own tokens (desktop/launcher/qml/Theme.qml) */
@font-face { font-family: "Excalifont"; src: url("fonts/Excalifont-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #14171b;
  --bg-deep: #101317;
  --panel: #1b2027;
  --panel-hi: #1e242c;
  --brd: #282e38;
  --brd-hi: #343c48;
  --text: #e7eaef;
  --dim: #9aa4b2;
  --faint: #808898;
  --frost: #88c0d0;
  --frost-rgb: 136, 192, 208;
  --sel: #7e9ed6;
  --learn: 203, 168, 120;
  --explore: 126, 158, 214;
  --office: 181, 143, 201;
  --create: 206, 147, 166;
  --code: 176, 184, 119;
  --ok: #9cc58f;
  --warn: #d9a65a;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--frost); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: 500 0.88em/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--panel); border: 1px solid var(--brd); border-radius: 6px; padding: 0.12em 0.42em; color: var(--text); white-space: nowrap; }
@media (max-width: 560px) { code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; } }
::selection { background: rgba(var(--frost-rgb), 0.3); }
:focus-visible { outline: 2px solid rgba(var(--frost-rgb), 0.8); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── top bar ─────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.top.scrolled { background: rgba(16, 19, 23, 0.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--brd); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.mark:hover { text-decoration: none; }
.mark img { width: auto; height: 28px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--dim); font-size: 15px; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a.gh { color: var(--text); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--brd); }
.top nav a.gh svg { width: 17px; height: 17px; }
@media (max-width: 1080px) { .top nav { gap: 16px; } }
/* phones: the section links become a second row that scrolls sideways; GitHub stays top right */
@media (max-width: 880px) {
  html { scroll-padding-top: 108px; }
  .top .wrap { position: relative; flex-wrap: wrap; height: auto; gap: 0; }
  .mark { height: 56px; }
  .top nav { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a:not(.gh) { padding: 10px 0 12px; }
  .top nav a.gh { position: absolute; top: 9px; right: var(--gutter); }
  .top.scrolled { background: rgba(16, 19, 23, 0.97); backdrop-filter: none; }
}

/* ── buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--frost); color: #0f1418; box-shadow: 0 10px 30px -10px rgba(var(--frost-rgb), 0.55); }
.btn.primary:hover { background: #9dcddb; }
.btn.quiet { background: rgba(27, 32, 39, 0.75); color: var(--text); box-shadow: inset 0 0 0 1px var(--brd-hi); backdrop-filter: blur(6px); }
.btn.quiet:hover { background: var(--panel-hi); }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 132px 0 0;
  background: var(--bg) image-set(url("img/wall-1280.webp") 1x, url("img/wall.webp") 2x) center top / cover no-repeat;
}
@media (min-width: 1300px) { .hero { background-image: url("img/wall.webp"); } }
@media (max-width: 760px) { .hero { background-image: url("img/wall-1280.webp"); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 260px; background: linear-gradient(to bottom, rgba(20, 23, 27, 0), var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 800px; margin: 0 auto; text-align: center; }
.lockup { display: inline-flex; align-items: center; gap: 0.22em; font-size: clamp(56px, 9vw, 104px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.lockup img { display: block; height: 1.12em; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--frost); }
.hero .lede { margin: 26px auto 0; max-width: 760px; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; color: #c3cad4; text-wrap: balance; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--dim); padding: 6px 12px; border-radius: 999px; background: rgba(27, 32, 39, 0.6); box-shadow: inset 0 0 0 1px var(--brd); }
.pill i { width: 8px; height: 8px; border-radius: 3px; background: rgb(var(--c)); }

.stack { position: relative; margin: 64px auto 0; max-width: 1080px; padding-bottom: 7%; }
.stack .back { width: 88%; }
.stack .front { position: absolute; right: 0; bottom: 0; width: 46%; }
@media (max-width: 760px) {
  .stack { padding-bottom: 0; }
  .stack .back { width: 100%; }
  .stack .front { display: none; }
  .stack .back img { transform: scale(1.6); transform-origin: 50% 53%; }
}

/* ── screens ─────────────────────────────────────────────── */
.screen {
  position: relative; border-radius: 0; overflow: hidden; background: var(--bg-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 70px -28px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.screen img, .screen video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.screen.zoom { cursor: zoom-in; }
.screen .play {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(16, 19, 23, 0.72); box-shadow: inset 0 0 0 1px var(--brd-hi); opacity: 0; transition: opacity 0.2s ease;
}
.screen:hover .play, .screen .play:focus-visible, .screen.paused .play { opacity: 1; }
.screen .play svg { width: 16px; height: 16px; }
figure figcaption { margin-top: 14px; font-size: 14.5px; color: var(--faint); text-align: center; }
figure figcaption b { color: var(--dim); font-weight: 600; }

/* ── sections ────────────────────────────────────────────── */
section { padding: clamp(72px, 10vw, 128px) 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: rgb(var(--c)); }
.eyebrow::before { content: ""; width: 9px; height: 14px; border-radius: 3px; background: rgb(var(--c)); }
.head { max-width: 760px; }
.head.center { margin: 0 auto; text-align: center; }
.head h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.9px; font-weight: 700; }
.head p { margin-top: 16px; font-size: 18.5px; color: var(--dim); }
.head p strong { color: var(--text); font-weight: 600; }

/* places (photos) */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; margin-top: 44px; }
@media (max-width: 860px) { .photos { grid-template-columns: 1fr; } }
.factline { margin-top: 26px; text-align: center; color: var(--faint); font-size: 15px; }

/* field photos */
.screen.photo { border-radius: var(--radius); }
.screen.photo img, .screen.photo video { aspect-ratio: 4 / 3; object-fit: cover; }
.photos figure figcaption, .tphotos figcaption { text-align: left; margin-top: 10px; }

/* community */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.era .year { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.era .year b { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: rgb(var(--learn)); }
.era .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
  color: var(--faint); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--brd); }
.era.now .tag { color: var(--frost); background: rgba(var(--frost-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--frost-rgb), 0.35); }
.era h4 { margin-top: 8px; font-size: 17px; font-weight: 700; }
.era p { margin-top: 6px; color: var(--dim); font-size: 15px; }
.team { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
.tphotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tphotos .wide { grid-column: 1 / -1; }
.tphotos .wide .screen.photo img { aspect-ratio: 2 / 1; object-position: center 40%; }
@media (max-width: 560px) { .tphotos { grid-template-columns: 1fr; } .tphotos .wide .screen.photo img { aspect-ratio: 4 / 3; } }
.people { list-style: none; margin-top: 0; display: grid; gap: 12px; }
.people li { padding-left: 14px; border-left: 2px solid rgba(var(--create), 0.55); color: var(--dim); font-size: 15px; }
.people b { display: block; color: var(--text); font-size: 16px; }
.kbnote { margin-top: 36px; text-align: center; color: var(--faint); font-size: 14.5px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.feature.flip { grid-template-columns: 1.18fr 0.82fr; }
.feature.flip .copy { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .copy { order: 0; } }
.feature h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.5px; font-weight: 700; }
.feature .copy p { margin-top: 14px; color: var(--dim); font-size: 17px; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; color: var(--dim); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 15px; border-radius: 5px; background: rgba(var(--c, var(--frost-rgb)), 0.15); box-shadow: inset 0 0 0 1px rgba(var(--c, var(--frost-rgb)), 0.45); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 4px; height: 7px; border: solid rgb(var(--c, var(--frost-rgb))); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks li b { color: var(--text); font-weight: 600; }

.lead-media { margin-top: 48px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* apps */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 960px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .apps { grid-template-columns: 1fr; } }
.apps figure figcaption { text-align: left; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--brd); font-size: 14px; font-weight: 500; color: var(--dim); }
.chip i { width: 7px; height: 11px; border-radius: 2px; background: rgb(var(--c)); }

/* console */
.panes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 800px) { .panes { grid-template-columns: 1fr; } }
.pane { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 18px 16px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.pane svg { flex: none; width: 34px; height: 34px; stroke: var(--frost); }
.pane b { display: block; font-size: 16.5px; }
.pane span { display: block; margin-top: 3px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }

/* update steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step h4 { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 17px; font-weight: 700; }
.step h4::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13.5px; color: #15130e; background: rgb(var(--learn)); }
.step p { margin-top: 6px; color: var(--dim); font-size: 15px; }
.note {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 40px;
  padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
@media (max-width: 860px) { .note { grid-template-columns: 1fr; } }
.note h4 { font-size: 20px; letter-spacing: -0.2px; }
.note p { margin-top: 10px; color: var(--dim); font-size: 15.5px; }
.badge { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--warn); background: rgba(217, 166, 90, 0.12); }

/* under the hood */
.hood { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 40px; }
@media (max-width: 760px) { .hood { grid-template-columns: 1fr; } }
.hood div { padding-left: 18px; border-left: 2px solid rgba(var(--code), 0.45); }
.hood b { display: block; font-size: 17px; }
.hood p { margin-top: 5px; color: var(--dim); font-size: 15.5px; }
.disk { margin-top: 44px; padding: 26px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); overflow-x: auto; }
.disk svg { min-width: 720px; width: 100%; height: auto; }
.disk .tall { display: none; }
@media (max-width: 560px) {
  .disk { padding: 20px 16px; }
  .disk .wide { display: none; }
  .disk .tall { display: block; min-width: 0; max-width: 420px; margin: 0 auto; }
}
.disk svg text { font-family: "Public Sans", system-ui, sans-serif; }

/* under the hood: the top-level drawing */
.arch { margin-top: 44px; }
.arch-core > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.arch > * { padding: 22px 22px 24px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.arch h4 { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgb(var(--code)); margin-bottom: 16px; }
.tops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edge { padding: 12px 14px; border-radius: 12px; text-align: center; background: rgba(var(--c), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--c), 0.34); }
.edge b { display: block; font-size: 15.5px; }
.edge span { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }
.e-shell { --c: var(--explore); }
.e-console { --c: var(--learn); }
.e-os { --c: 154, 164, 178; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.links.one { grid-template-columns: 1fr; }
.link { position: relative; display: flex; justify-content: center; height: 34px; }
.link i { width: 2px; height: 100%; background: repeating-linear-gradient(to bottom, var(--sel) 0 5px, transparent 5px 9px); }
.link em { position: absolute; left: calc(50% + 10px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.core { padding: 14px; border-radius: 16px; background: rgba(var(--frost-rgb), 0.08); box-shadow: inset 0 0 0 1.5px rgba(var(--frost-rgb), 0.55); }
.core-title { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.core-title b { font-size: 21px; color: var(--frost); }
.core-title span { font-size: 12px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--dim); }
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.plane { padding: 10px 10px 11px; border-radius: 10px; text-align: center; background: rgba(16, 19, 23, 0.55); box-shadow: inset 0 0 0 1px var(--brd); }
.plane b { display: block; font-size: 14.5px; }
.plane span { display: block; margin-top: 3px; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.arch-core figcaption { margin-top: 16px; color: var(--dim); font-size: 15px; text-align: left; }
@media (max-width: 640px) { .planes { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 860px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.faq details[open] { background: var(--panel-hi); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--faint); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .a { padding: 0 22px 20px; color: var(--dim); font-size: 16px; }
.faq .a p + p { margin-top: 10px; }

/* team: the people, then the invitation */
#team { padding-bottom: clamp(72px, 10vw, 120px); }
.hackbox { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3.5vw, 40px); align-items: start; margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
@media (max-width: 640px) { .hackbox { grid-template-columns: 1fr; } }
.bigmark { display: block; height: 85px; width: auto; }
.hcopy h3 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.8px; }
.hcopy p { margin-top: 12px; max-width: 760px; color: var(--dim); font-size: 17px; }
.hcopy .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

footer { border-top: 1px solid var(--brd); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--dim); }

/* lightbox */
dialog.lightbox { margin: auto; max-width: min(96vw, 1920px); max-height: 94vh; border: 0; padding: 0; background: transparent; }
dialog.lightbox::backdrop { background: rgba(8, 10, 12, 0.88); backdrop-filter: blur(4px); }
dialog.lightbox img { max-width: min(96vw, 1920px); max-height: 94vh; width: auto; height: auto; border-radius: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); cursor: zoom-out; }
@media (max-width: 760px) {
  dialog.lightbox[open] { display: flex; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: auto; }
  dialog.lightbox img { margin: auto; width: 200vw; max-width: none; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .top { transition: none; }
}

/* manage: the drawn steps under the clip, numbered like the Updates steps; the one the clip is on is lit */
.howstep { cursor: pointer; border-radius: 16px; transition: opacity 0.35s ease; }
.howstep:focus-visible { outline: 2px solid rgba(var(--frost-rgb), 0.8); outline-offset: 6px; }
.howart { position: relative; border-radius: var(--radius); background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 70px -28px rgba(0, 0, 0, 0.85);
  transition: box-shadow 0.35s ease, background 0.35s ease, transform 0.35s ease; }
.howart svg { display: block; width: 100%; height: auto; }
.howplay { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(16, 19, 23, 0.78);
  box-shadow: inset 0 0 0 1px var(--brd-hi); opacity: 0; transition: opacity 0.2s ease; }
.howplay svg { width: 12px; height: 12px; }
.howstep:hover .howplay, .howstep:focus-visible .howplay { opacity: 1; }
.howstep:hover .howart { background: #181c21; }
.howstep.active .howart { background: #181d23; transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--frost), 0 18px 40px -20px rgba(var(--frost-rgb), 0.5); }
.howto.live .howstep:not(.active) { opacity: 0.5; }
.howto.live .howstep:not(.active):hover { opacity: 0.85; }
.howstep .c-stick { transform: translateX(-44px); }
.howstep .c-hub { opacity: 0; }
.howstep .packet { stroke-dasharray: 16 100; stroke-dashoffset: 16; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .howstep.c1.active .c-stick { animation: cIn 0.8s ease 0.2s both; }
  .howstep.c1.active .c-hub { animation: cOn 0.5s ease 1.05s both; }
  .howstep.c3.active .c-stick { animation: cOut 0.8s ease 0.75s both; }
  .howstep.c3.active .c-hub { animation: cOff 0.5s ease 0.45s both; }
  .howstep.c2.active .packet { animation: cPacket 0.7s ease-in both; animation-delay: calc(0.3s + var(--i) * 0.25s); }
  .howstep.c2.active .c-ok { animation: cOn 0.45s ease both; animation-delay: calc(1s + var(--i) * 0.25s); }
}
@keyframes cIn { from { transform: translateX(-44px); } to { transform: translateX(0); } }
@keyframes cOut { from { transform: translateX(0); } to { transform: translateX(-44px); } }
@keyframes cOn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cOff { from { opacity: 1; } to { opacity: 0; } }
@keyframes cPacket { 0% { opacity: 1; stroke-dashoffset: 16; } 85% { opacity: 1; stroke-dashoffset: -84; } 100% { opacity: 0; stroke-dashoffset: -84; } }

/* notes drawn over the clips by the page, timed to the video */
.screen .notes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.notes .note { opacity: 0; transition: opacity 0.35s ease; }
.notes .note.on { opacity: 1; }
.notes .nt { font-family: "Excalifont", "Public Sans", sans-serif; fill: #f4f7fa;
  stroke: rgba(12, 15, 18, 0.88); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke fill; }
.notes .ns { fill: none; stroke: #8fd3e3; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* touch: no hover, so the clip controls stay visible and the small links get a full-size tap area */
@media (hover: none) {
  .screen .play { opacity: 1; width: 44px; height: 44px; }
  .howplay { opacity: 1; }
  footer nav a { padding-block: 11px; }
}
