/* NUKEY Group — public site */
:root {
  --bg: #080A0D;
  --fg: #FFFFFF;
  --pt: #C4CBD2;
  --ac: #7C5CFF;
  --panel: color-mix(in srgb, var(--bg) 92%, var(--pt));
  --panel-2: color-mix(in srgb, var(--bg) 86%, var(--pt));
  --line: color-mix(in srgb, var(--pt) 14%, transparent);
  --line-2: color-mix(in srgb, var(--pt) 26%, transparent);
  --muted: color-mix(in srgb, var(--pt) 72%, var(--bg));
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.55 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; padding-bottom: 40px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
::selection { background: var(--ac); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--pt);
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ac); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ac); color: var(--bg); }
.ticker-track { white-space: nowrap; display: inline-block; padding: 7px 0; animation: tick 28s linear infinite; }
.ticker-track span { padding: 0 32px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 28px; height: 28px; color: var(--fg); }
.wm { font-weight: 800; font-stretch: 125%; letter-spacing: .04em; font-size: 15px; }
.wm-sub { color: var(--muted); font-size: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); background: var(--line); }
.sys { display: flex; align-items: center; gap: 8px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 60%, transparent); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Boot / hero */
.boot { position: relative; min-height: calc(100svh - 60px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.boot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.boot::after {
  content: ''; position: absolute; width: 46vw; aspect-ratio: 1; right: -12vw; top: -14vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 22%, transparent), transparent 62%);
  pointer-events: none; filter: blur(10px);
}
.boot-inner { position: relative; z-index: 1; width: 100%; padding: 48px var(--pad) 40px; }
.eyebrow { color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.num::before { content: '[ ' attr(data-n) ' ]'; color: var(--ac); }
.eyebrow .num { margin-right: 4px; }
.draft-chip { border: 1px dashed var(--ac); color: var(--ac); padding: 3px 8px; border-radius: 4px; }
.mega { margin: 0; line-height: .8; font-weight: 900; font-stretch: 125%; letter-spacing: -.045em; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .12em; }
.mega-a { font-size: clamp(76px, 19.5vw, 340px); }
.mega-b {
  font-size: clamp(30px, 6.2vw, 108px); font-weight: 300; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--pt); padding-bottom: .12em;
}
.boot-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--line); }
.tagline { margin: 0; font-size: clamp(22px, 2.6vw, 38px); font-weight: 600; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.1; }
.caret { display: inline-block; width: .5em; height: .82em; margin-left: .12em; background: var(--ac); vertical-align: -.06em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.subline { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 34ch; justify-self: end; }
.boot-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 36px; }
.log { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 11px; min-height: 5.4em; }
.log li { opacity: 0; transform: translateY(4px); animation: in .4s var(--ease) forwards; }
.log li b { color: var(--ac); font-weight: 500; }
@keyframes in { to { opacity: 1; transform: none; } }

/* Buttons: one system for every call-to-action */
.launch, .start {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; color: var(--fg); text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.launch { width: 100%; }
.start { display: inline-flex; min-width: 260px; flex: none; }
.btn-arrow {
  width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--fg); color: var(--bg); transition: background .35s var(--ease), color .35s;
}
.btn-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.launch:not([aria-disabled="true"]):hover, .launch:not([aria-disabled="true"]):focus-visible,
.start:hover, .start:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.launch:not([aria-disabled="true"]):hover .btn-arrow, .launch:not([aria-disabled="true"]):focus-visible .btn-arrow,
.start:hover .btn-arrow, .start:focus-visible .btn-arrow { background: var(--ac); color: var(--fg); }
.launch:hover .btn-arrow svg, .launch:focus-visible .btn-arrow svg { transform: rotate(45deg); }
.start:hover .btn-arrow svg, .start:focus-visible .btn-arrow svg { transform: translateY(3px); }
.launch[aria-disabled="true"] { border-style: dashed; color: var(--muted); cursor: not-allowed; }
.launch[aria-disabled="true"] .btn-arrow { background: var(--line); color: var(--muted); }

/* Sections */
.sec { padding: clamp(56px, 8vw, 112px) var(--pad) 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.sec-head .hint { margin: 0 0 0 auto; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sec-head .hint kbd:last-of-type { margin-left: 8px; }

/* Launcher window */
.window { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 120px -40px #000; }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.win-path { color: var(--fg); }
.win-clock { justify-self: end; }
.win-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; }

.rail { list-style: none; margin: 0; padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: 720px; outline: none; }
.rail:focus-visible { box-shadow: inset 0 0 0 2px var(--ac); }
.rail-item {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; border-radius: 10px; cursor: pointer; transition: background .2s;
}
.rail-item:hover { background: var(--line); }
.rail-item[aria-selected="true"] { background: var(--panel-2); }
.rail-item[aria-selected="true"]::before { content: ''; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ac); }
.tile {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; font-stretch: 125%; font-size: 17px;
  background: color-mix(in srgb, var(--c) 18%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--fg);
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.rail-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.rail-cat { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-text { min-width: 0; }
.rail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.rail-dot.on { background: var(--ac); }
.rail-group { color: var(--muted); padding: 14px 12px 6px; font-size: 10px; }
.rail-group:first-child { padding-top: 6px; }

.stage { display: flex; flex-direction: column; min-width: 0; }
.cover { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #0B0E12; }
.cover svg, .cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--panel)); }
.stage-anim { animation: stageIn .55s var(--ease); }
@keyframes stageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-body { position: relative; z-index: 1; padding: 0 clamp(20px, 3vw, 40px) clamp(22px, 3vw, 36px); margin-top: -64px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
.stage-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pt); opacity: .6; }
.pill.live::before { background: var(--ac); opacity: 1; }
.stage-title { margin: 0; font-size: clamp(40px, 5.6vw, 88px); font-weight: 900; font-stretch: 122%; letter-spacing: -.04em; line-height: .92; overflow-wrap: anywhere; }
.stage-tagline { margin: 12px 0 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: var(--pt); }
.stage-desc { margin: 14px 0 0; color: var(--muted); max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; background: var(--line); color: var(--pt); }

.stage-side { align-self: end; display: flex; flex-direction: column; gap: 14px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.empty { padding: 60px 32px; color: var(--muted); text-align: center; }

/* Library */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.filters button { border: 1px solid var(--line-2); background: transparent; padding: 8px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: all .2s; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden;
  cursor: pointer; padding: 0; display: flex; flex-direction: column; transition: border-color .25s, transform .35s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-cover svg, .card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-cover svg, .card:hover .card-cover img { transform: scale(1.04); }
.card-body { padding: 16px 16px 18px; display: grid; gap: 6px; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.card-name { font-size: 22px; font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.1; }
.card-cat { color: var(--muted); font-size: 14px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.about-col { padding: 28px 0 0; }
.about-col + .about-col { padding-left: clamp(20px, 4vw, 56px); border-left: 1px solid var(--line); }
.about-col:first-child { padding-right: clamp(20px, 4vw, 56px); }
.label { color: var(--ac); margin: 0 0 14px; }
.about-text { margin: 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }

/* Founder */
.fdr { display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--panel); }
.fdr-media { position: relative; min-height: 340px; background: #0B0E12; border-right: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.fdr-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.fdr-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 60%); mix-blend-mode: screen; pointer-events: none; }
.fdr-mono { font-weight: 900; font-stretch: 125%; font-size: clamp(120px, 16vw, 220px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--pt); }
.fdr-body { padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.fdr-body .label { margin: 0 0 6px; }
.fdr-name { margin: 0; font-size: clamp(48px, 7vw, 112px); font-weight: 900; font-stretch: 125%; letter-spacing: -.045em; line-height: .9; }
.fdr-title { margin: 6px 0 0; color: var(--pt); font-size: 12px; }
.fdr-tag { margin: 14px 0 0; font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; color: var(--muted); max-width: 32ch; }
.fdr-btn { align-self: flex-start; margin-top: 22px; min-width: 260px; }
.fdr-host { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 860px) {
  .fdr { grid-template-columns: 1fr; }
  .fdr-media { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fdr-btn { align-self: stretch; min-width: 0; }
}

/* News */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { color: var(--muted); }
.news h3 { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
.news p { margin: 6px 0 0; color: var(--muted); }
.news a { color: var(--ac); }

/* Contact */
.contact { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.contact div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.contact dt { margin-bottom: 10px; color: var(--ac); }
.contact dd { margin: 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; overflow-wrap: anywhere; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact a:hover { border-color: var(--ac); }

main > .sec:last-of-type { padding-bottom: 96px; }
main { padding-bottom: 96px; }

/* Status bar */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 32px; display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad); font-size: 10px; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 90%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sb-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sb-right { margin-left: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .stage-body { grid-template-columns: 1fr; gap: 20px; }
  .stage-side { align-self: stretch; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .sys { margin-left: auto; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .rail { flex-direction: row; overflow-x: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); scroll-snap-type: x mandatory; }
  .rail-item { grid-template-columns: 40px auto; flex: none; scroll-snap-align: start; }
  .rail-item .rail-dot, .rail-group { display: none; }
  .rail-item[aria-selected="true"]::before { left: 12px; right: 12px; top: auto; bottom: -10px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .tile { width: 40px; height: 40px; }
  .cover { aspect-ratio: 16 / 9; }
  .stage-body { margin-top: -36px; }
  .boot-copy { grid-template-columns: 1fr; }
  .subline { justify-self: start; }
  .boot-foot { flex-direction: column; align-items: stretch; }
  .about { grid-template-columns: 1fr; }
  .about-col + .about-col { padding-left: 0; border-left: 0; margin-top: 28px; border-top: 1px solid var(--line); }
  .news li { grid-template-columns: 1fr; gap: 6px; }
  .sb-tag { display: none; }
  .sec-head .hint { display: none; }
  .win-bar { grid-template-columns: 1fr auto; }
  .win-path { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* uploaded logos */
.mark-img { object-fit: contain; }
/* Logo tiles: the image fills the rounded tile so corners are clipped cleanly,
   with a hairline ring and a soft accent glow instead of a heavy border. */
.tile.has-logo {
  position: relative; background: #0A0C0F; border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 38%, rgba(255,255,255,.08)), 0 6px 18px -8px color-mix(in srgb, var(--c) 70%, transparent);
}
.tile.has-logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.12); pointer-events: none; }
.tile img.logo { width: 100%; height: 100%; object-fit: cover; padding: 0; display: block; }
.rail-item[aria-selected="true"] .tile.has-logo { box-shadow: 0 0 0 1.5px var(--c), 0 8px 22px -8px var(--c); }
.stage-logo {
  display: block; width: 60px; height: 60px; object-fit: cover; margin-bottom: 16px;
  border-radius: 16px; background: #0A0C0F;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px -12px rgba(0,0,0,.8);
}
.card-id { display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 10px; }
.card-id-text { display: grid; gap: 4px; min-width: 0; }
.card-id-text .card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-id-text .card-cat { line-height: 1.35; }
.card-logo {
  flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 13px; background: #0A0C0F;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 20px -10px rgba(0,0,0,.9);
}

/* 3D key cover: gentle float on the launcher stage */
@keyframes keyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: no-preference) {
  .cover .key3d { animation: keyFloat 6s ease-in-out infinite; }
}

/* Launcher on phones: compact chip rail (no scrollbar), cover not overlapped */
@media (max-width: 860px) {
  .rail {
    gap: 8px; padding: 12px; scrollbar-width: none; scroll-padding-inline: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-item {
    grid-template-columns: 34px auto; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 12px;
    border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 55%, transparent);
  }
  .rail-item:last-child { margin-right: 28px; }
  .rail-item[aria-selected="true"] { border-color: color-mix(in srgb, var(--ac) 65%, transparent); background: var(--panel-2); }
  .rail-item[aria-selected="true"]::before { display: none; }
  .rail-cat { display: none; }
  .rail-name { font-size: 14px; white-space: nowrap; }
  .tile { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
  .cover { aspect-ratio: 16 / 9; }
  .stage-body { margin-top: 0; padding-top: 18px; }
  .stage-logo { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
  .stage-title { font-size: clamp(34px, 10vw, 56px); }
}

/* Phones: companies as a 2-column grid instead of a sideways scroller */
@media (max-width: 860px) {
  .rail {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none;
  }
  .rail-item { min-width: 0; padding: 8px 10px 8px 8px; }
  .rail-item:last-child { margin-right: 0; }
  .rail-text { min-width: 0; }
  .rail-name { display: block; overflow: hidden; text-overflow: ellipsis; }
}

/* Founder photo: show the whole uploaded photo, no crop, no tint overlay */
.fdr-media.has-photo { display: block; min-height: 0; align-self: stretch; }
.fdr-media.has-photo img { position: static; display: block; width: 100%; height: auto; object-fit: contain; filter: none; }
.fdr-media.has-photo::after { content: none; }

/* ---------- Light mode ---------- */
[data-theme="light"] { --bg: #F2F3F5; --fg: #0B0E12; --pt: #3A414B; color-scheme: light; }
[data-theme="light"] .window { box-shadow: 0 30px 80px -40px rgba(11,14,18,.35); }
[data-theme="light"] .boot::after { background: radial-gradient(circle, color-mix(in srgb, var(--ac) 28%, transparent), transparent 62%); }
[data-theme="light"] .rail-item[aria-selected="true"], [data-theme="light"] .rail-item:hover { background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.theme-btn {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin-left: 4px;
  border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.theme-btn:hover { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 10%, transparent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ic-moon { display: none; }
[data-theme="light"] .theme-btn .ic-sun { display: none; }
[data-theme="light"] .theme-btn .ic-moon { display: block; }

/* ---------- Hero video (16:9 card beside the tagline) ---------- */
.copy-col { display: contents; }
.boot-copy.has-video { grid-template-columns: minmax(0, 1fr) minmax(260px, 36%); align-items: end; gap: clamp(20px, 3vw, 44px); }
.boot-copy.has-video .copy-col { display: grid; gap: 16px; align-content: end; }
.boot-copy.has-video .subline { justify-self: start; }
.hero-video {
  position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #05070A;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ac) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--ac) 18%, transparent);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-tag {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  border-radius: 999px; font-size: 10px; color: #fff; background: rgba(5,7,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hv-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: blink 1.6s steps(1) infinite; }
.hv-sound {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(5,7,10,.55); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hv-sound svg { width: 18px; height: 18px; }
.hv-sound .ic-on { display: none; }
.hv-sound.on .ic-on { display: block; }
.hv-sound.on .ic-off { display: none; }

/* ---------- Hero key switcher ----------
   Every key of the group takes a turn beside the title. Each key is real 3D:
   a face plus stacked edge layers, so the thickness shows while it turns.
   Switching = the current key turns away edge-on, the next one turns in. */
.hero-keys { display: none; }
.mega { position: relative; }
.mega-key {
  position: absolute; right: -1vw; bottom: -8%; width: min(46%, 760px); z-index: 2;
  perspective: 1200px; perspective-origin: 40% 30%; pointer-events: none;
  font-size: 16px; line-height: 1.4; letter-spacing: 0; font-weight: 400; font-stretch: 100%;
}
.mega-key svg { display: block; width: 100%; height: auto; overflow: visible; }
.hk-stage { position: relative; transform-style: preserve-3d; aspect-ratio: 1280 / 310; }
.hk { position: absolute; inset: 0; visibility: hidden; }
.hk.is-active, .hk.is-leaving { visibility: visible; }
.hk-turn {
  opacity: 0; perspective: 1200px; perspective-origin: 40% 30%;
  transform: translate3d(0, 18px, 0) scale(.96);
  transition: transform .7s cubic-bezier(.2, .7, .1, 1), opacity .5s ease;
}
.hk.is-active .hk-turn { opacity: 1; transform: none; transition-delay: .3s, .3s; }
.hk.is-leaving .hk-turn { opacity: 0; transform: translate3d(0, -18px, 0) scale(.96); transition-delay: 0s, 0s; transition-duration: .45s, .35s; }
.hk-tilt { transform-style: preserve-3d; transform: rotateX(calc(var(--py, 0) * -10deg)) rotateY(calc(var(--px, 0) * 16deg)); transition: transform .8s var(--ease); }
.hk-float { transform-style: preserve-3d; animation: nkFloat 6s ease-in-out infinite alternate; }
.hk-in { position: relative; transform-style: preserve-3d; animation: nkTurn 9s ease-in-out infinite alternate; }
.hk-edge { position: absolute; inset: 0; transform: translateZ(calc(var(--i) * -2.6px)); filter: brightness(calc(1.05 - var(--i) * .045)); }
.hk-face { position: relative; transform: translateZ(1px); }
.hk-glow {
  position: absolute; left: 6%; right: 6%; top: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--kc, var(--ac)) 60%, transparent), transparent);
  filter: blur(28px); opacity: .55; transition: background .8s ease; animation: nkGlow 6s ease-in-out infinite alternate;
}
.hk-caption {
  position: absolute; right: 2%; top: calc(100% + 6px); display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.hk-caption b { color: var(--fg); font-weight: 500; }
.hk-caption .hk-bar { width: 22px; height: 2px; border-radius: 2px; background: var(--kc, var(--ac)); transition: background .6s; }
.hk-caption .hk-txt { transition: opacity .35s ease, transform .35s ease; }
.hk-caption.swap .hk-txt { opacity: 0; transform: translateY(4px); }
.hk-dots { display: flex; gap: 5px; }
.hk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: background .4s, transform .4s; }
.hk-dots i.on { background: var(--kc, var(--ac)); transform: scale(1.3); }

@keyframes nkFloat { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -14px, 40px); } }
@keyframes nkTurn {
  from { transform: rotateY(-34deg) rotateX(18deg) rotateZ(-8deg); }
  to { transform: rotateY(26deg) rotateX(-8deg) rotateZ(-3deg); }
}
@keyframes nkGlow { from { opacity: .4; transform: scaleX(.9); } to { opacity: .7; transform: scaleX(1.05); } }

@media (max-width: 860px) {
  .boot { min-height: 0; }
  .boot-inner { padding-top: 64px; }
  .mega-key { width: 54%; right: -2vw; bottom: -6%; }
  .hk-caption { font-size: 9px; gap: 6px; top: calc(100% + 2px); }
  .hk-caption .hk-bar { display: none; }
}

@media (max-width: 860px) {
  .boot-copy.has-video { grid-template-columns: 1fr; }
  .hero-keys { perspective: 700px; }
}
.sys { white-space: nowrap; }
@media (max-width: 420px) { .sys { display: none; } .theme-btn { margin-left: auto; } }

/* ---------- Social icons (contact section + footer) ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--fg);
  border: 1px solid var(--line-2); background: var(--panel); text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.socials a:hover, .socials a:focus-visible { color: var(--ac); border-color: var(--ac); }
.socials svg { width: 20px; height: 20px; }
.contact .socials-row { grid-column: 1 / -1; }
.contact .socials-row dd { font-size: inherit; }
.contact .socials a { border-bottom: 1px solid var(--line-2); }

/* ---------- Site footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px var(--pad) 40px; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.sf-brand { display: grid; gap: 10px; align-content: start; }
.sf-name { font-weight: 900; font-stretch: 118%; font-size: 26px; letter-spacing: -.02em; }
.sf-tag { color: var(--muted); max-width: 34ch; margin: 0; }
.sf-col h3 { margin: 0 0 12px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-links a { color: var(--fg); text-decoration: none; opacity: .82; }
.sf-links a:hover { opacity: 1; color: var(--ac); }
.sf-sister {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line-2); background: var(--panel); transition: border-color .2s;
}
.sf-sister:hover { border-color: var(--ac); }
.sf-sister small { display: block; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sf-sister b { font-weight: 800; }
.sf-sister i { margin-left: auto; font-style: normal; color: var(--ac); }
.sf-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.6 var(--mono); letter-spacing: .06em; }
@media (max-width: 860px) {
  .site-foot { grid-template-columns: 1fr 1fr; padding-top: 36px; }
  .sf-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile: app-style bottom navigation ---------- */
.appnav { display: none; }
@media (max-width: 860px) {
  .statusbar { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  main { padding-bottom: 0; }
  main > .sec:last-of-type { padding-bottom: 56px; }
  .appnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent); border-top: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  .appnav a {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 52px; border-radius: 12px;
    color: var(--muted); text-decoration: none; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent; transition: color .2s;
  }
  .appnav a[hidden] { display: none; }
  .appnav svg { width: 22px; height: 22px; }
  .appnav a.on { color: var(--fg); }
  .appnav a.on::before { content: ''; position: absolute; top: -6px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--ac); }
  .appnav a.on svg { color: var(--ac); }
  .appnav a:active { background: var(--line); }
  .appnav .an-sister svg { color: var(--ac); }
}

.sf-sister svg { flex: none; width: 28px; height: 28px; color: var(--ac); }

/* My NUKEY button */
.my-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--fg); text-decoration: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.my-btn:hover { border-color: var(--ac); }
.my-btn svg { width: 17px; height: 17px; }
@media (max-width: 520px) { .my-btn span { display: none; } .my-btn { padding: 0 10px; } }

/* ---------- Profile (NUKEY account) inside the site ---------- */
html.acct-open, html.acct-open body { overflow: hidden; }
.acct { position: fixed; left: 0; right: 0; bottom: 0; top: 60px; z-index: 35; overflow-y: auto; background: var(--bg); overscroll-behavior: contain; }
.acct[hidden] { display: none; }
.acct-in { position: relative; max-width: 760px; margin: 0 auto; padding: 28px var(--pad) 110px; display: grid; gap: 16px; }
.acct-x { position: absolute; right: var(--pad); top: 22px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; }
.acct-x:hover { border-color: var(--ac); }
.ac-card { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.ac-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.ac-auth { max-width: 440px; width: 100%; margin: 24px auto 0; display: grid; gap: 4px; }
.ac-auth h2, .ac-head h2 { margin: 0; font-size: clamp(24px, 4vw, 30px); font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.ac-eyebrow { margin: 0 0 4px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.ac-muted { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.ac-muted.small { margin: 12px 0 0; font-size: 12.5px; }
.ac-field { display: grid; gap: 6px; margin-bottom: 12px; }
.ac-field > span { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-field small { color: var(--muted); font-size: 12px; }
.ac-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 70%, var(--panel)); color: var(--fg); font: 15px/1.4 var(--display); }
.ac-input:focus { outline: none; border-color: var(--ac); }
.ac-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ac-pw { position: relative; display: block; }
.ac-pw .ac-input { padding-right: 46px; }
.ac-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.ac-eye svg { width: 20px; height: 20px; }
.ac-eye.on, .ac-eye:hover { color: var(--fg); }
.ac-eye.on svg path { stroke-dasharray: 2 2; }
.ac-err { min-height: 18px; margin: 2px 0 8px; color: #ef5a5a; font-size: 13.5px; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: 700 14px/1 var(--display); text-decoration: none; cursor: pointer; }
.ac-btn.primary { width: 100%; background: var(--ac); border-color: var(--ac); color: #fff; }
.ac-btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.ac-btn.wa { color: #25D366; border-color: color-mix(in srgb, #25D366 50%, transparent); }
.ac-btn:disabled { opacity: .5; cursor: progress; }
.ac-links { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.ac-links a { color: var(--ac); }
.ac-toast { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--ac); font-size: 14px; }
.ac-head { display: flex; align-items: center; gap: 14px; padding-right: 52px; }
.ac-head > div { flex: 1; min-width: 0; }
.ac-avatar { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--ac); color: #fff; font-weight: 900; font-size: 20px; }
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ac-stats > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.ac-stats span { font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-stats b { font-size: 22px; font-weight: 900; }
.ac-stats .hot { border-color: var(--ac); }
.ac-stats .hot b { color: var(--ac); }
.ac-dl { margin: 0; display: grid; }
.ac-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ac-dl > div:first-child { border-top: 0; padding-top: 0; }
.ac-dl dt { font: 500 10.5px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ac-rows { list-style: none; margin: 0; padding: 0; }
.ac-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-rows li:first-child { border-top: 0; padding-top: 0; }
.ac-rows li > div { flex: 1 1 220px; min-width: 0; display: grid; gap: 3px; }
.ac-rows li > div > span, .ac-small { color: var(--muted); font-size: 13px; }
.ac-co { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); font: 500 10px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ac-co i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ac-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--tc); background: color-mix(in srgb, var(--tc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); }
.ac-pill.t-blue { --tc: #5B8DEF; } .ac-pill.t-violet { --tc: #A78BFA; } .ac-pill.t-amber { --tc: #E9A23B; } .ac-pill.t-green { --tc: #34C38F; } .ac-pill.t-gray { --tc: #8C949E; } .ac-pill.t-red { --tc: #EF5A5A; }
.ac-proj { padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); border: 1px solid var(--line); display: grid; gap: 6px; margin-top: 10px; }
.ac-proj-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ac-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: var(--ac); }
.ac-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ac-steps li { display: flex; align-items: center; gap: 10px; }
.ac-steps li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.ac-steps li.done i { background: #34C38F; border-color: #34C38F; }
.ac-steps li.done span { color: var(--muted); }
.ac-steps a { margin-left: auto; color: var(--ac); font-size: 13px; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .acct-in { padding-bottom: calc(120px + env(safe-area-inset-bottom)); } }
@media (max-width: 520px) { .ac-stats b { font-size: 17px; } .ac-dl > div { grid-template-columns: 90px 1fr; } }

/* the top bar always shows while the profile is open */
html.acct-open .topbar { transform: none !important; visibility: visible !important; opacity: 1 !important; }

/* profile panel: Back link instead of a floating close button */
.acct-x { display: none; }
.ac-wrap { display: grid; gap: 16px; }
.ac-wrap.narrow { max-width: 440px; width: 100%; margin: 0 auto; }
.ac-wrap .ac-auth { margin: 0; max-width: none; }
.ac-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; margin-left: -8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .2s, background .2s; }
.ac-back svg { width: 16px; height: 16px; }
.ac-back:hover { color: var(--fg); background: var(--line); }
.ac-back:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.ac-head { padding-right: 0; }
.acct-in { padding-top: 20px; }

/* sign out: last thing on the profile */
.ac-signout { width: 100%; margin-top: 4px; color: #ef5a5a; border-color: color-mix(in srgb, #ef5a5a 35%, transparent); }
.ac-signout svg { width: 18px; height: 18px; }
.ac-signout:hover { background: color-mix(in srgb, #ef5a5a 10%, transparent); border-color: #ef5a5a; }

/* login link page */
.ac-login { margin: 0; padding: 11px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-weight: 700; overflow-wrap: anywhere; }
.ac-login small { color: var(--muted); font-weight: 400; }

/* profile open: pinned bar */
html.acct-open .topbar { position: fixed !important; top: 0; left: 0; right: 0; transform: none !important; visibility: visible !important; opacity: 1 !important; z-index: 60; }
html.acct-open .ticker { display: none !important; }
html.acct-open .acct { z-index: 55; }
