/* IT-simulators hub — dark terminal / control room.
   Self-contained: system fonts, CSS art, no external requests. */

:root {
  --bg: #05090d;
  --bg-2: #071016;
  --panel: #0a141b;
  --panel-2: #0d1a22;
  --ink: #e9f6f1;
  --ink-2: #c3d8d2;
  --muted: #839d99;
  --muted-2: #5d7874;
  --line: rgba(124, 231, 198, .13);
  --line-2: rgba(124, 231, 198, .28);
  --mint: #5cf2c0;
  --cyan: #61c8ff;
  --coral: #ff8270;
  --amber: #ffc861;
  --lime: #c9f56e;
  --violet: #aa9bff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(920px 620px at 82% -12%, rgba(92, 242, 192, .10), transparent 62%),
    radial-gradient(760px 520px at 4% 22%, rgba(97, 200, 255, .07), transparent 58%),
    radial-gradient(680px 480px at 54% 110%, rgba(170, 155, 255, .06), transparent 62%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 231, 198, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 231, 198, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ol, ul {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

svg {
  max-width: 100%;
}

::selection {
  background: rgba(92, 242, 192, .26);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: #04100c;
  font-size: 13px;
  font-weight: 800;
  transition: top .18s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 13, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(92, 242, 192, .13), rgba(97, 200, 255, .04)),
    #081117;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 22px rgba(92, 242, 192, .08);
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hub-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.hub-nav a:hover {
  color: var(--mint);
  background: rgba(92, 242, 192, .07);
}

.hub-nav .nav-portal {
  margin-left: 4px;
  border-color: var(--line-2);
  color: var(--mint);
}

.hub-nav .nav-portal .icon {
  width: 15px;
  height: 15px;
}

.hub-nav .nav-short {
  display: none;
}

/* ---------- shared ---------- */

.section-kicker {
  margin-bottom: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.section-note {
  max-width: 380px;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: right;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--mint);
  color: #04100c;
  box-shadow: 0 12px 30px rgba(92, 242, 192, .18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #78f7ce;
  box-shadow: 0 16px 38px rgba(92, 242, 192, .24);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(92, 242, 192, .035);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 231, 198, .48);
  background: rgba(92, 242, 192, .08);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(38px, 6vw, 78px) 0 clamp(42px, 6vw, 78px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(30px, 4.4vw, 62px);
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.065em;
}

.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: 34px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.hero-stats b {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

/* terminal */

.terminal {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(92, 242, 192, .08), transparent 70%),
    linear-gradient(180deg, rgba(13, 26, 34, .97), rgba(6, 13, 18, .99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}

.terminal-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.terminal-dots {
  display: flex;
  flex: none;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24363a;
}

.terminal-dots i:nth-child(1) { background: rgba(255, 130, 112, .8); }
.terminal-dots i:nth-child(2) { background: rgba(255, 200, 97, .8); }
.terminal-dots i:nth-child(3) { background: rgba(92, 242, 192, .8); }

.terminal-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.terminal-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terminal-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}

.terminal-body {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
}

.terminal-cmd {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.terminal-prompt {
  margin-right: 6px;
  color: var(--mint);
}

.terminal-log {
  margin-top: 12px;
}

.terminal-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(124, 231, 198, .12);
}

.terminal-row:last-child {
  border-bottom: 0;
}

.terminal-step {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-role {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.terminal-role small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.terminal-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.terminal-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(92, 242, 192, .24);
  border-radius: 5px;
  background: rgba(92, 242, 192, .07);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-state::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.terminal-state.is-soon {
  border-color: rgba(255, 200, 97, .3);
  background: rgba(255, 200, 97, .07);
  color: var(--amber);
}

.terminal-state.is-ready {
  border-color: rgba(92, 242, 192, .24);
  background: rgba(92, 242, 192, .07);
  color: var(--mint);
}

.terminal-cmd-last {
  margin-top: 12px;
}

.terminal-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  vertical-align: -2px;
  background: var(--mint);
  animation: caret 1.1s step-end infinite;
}

.terminal-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* ---------- career ---------- */

.career,
.games {
  padding: clamp(44px, 5.4vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.career-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
}

.career-track::before {
  display: none;
}

.career-step {
  --accent: var(--mint);
  --accent-soft: rgba(92, 242, 192, .1);
  --accent-line: rgba(92, 242, 192, .32);
  position: relative;
  min-width: 0;
  padding-top: 60px;
}

.career-step--infra {
  --accent: var(--cyan);
  --accent-soft: rgba(97, 200, 255, .1);
  --accent-line: rgba(97, 200, 255, .32);
}

.career-step--oncall {
  --accent: var(--coral);
  --accent-soft: rgba(255, 130, 112, .1);
  --accent-line: rgba(255, 130, 112, .32);
}

.career-step--pentest {
  --accent: var(--amber);
  --accent-soft: rgba(255, 200, 97, .1);
  --accent-line: rgba(255, 200, 97, .32);
}

.career-step--ctf {
  --accent: var(--lime);
  --accent-soft: rgba(201, 245, 110, .1);
  --accent-line: rgba(201, 245, 110, .32);
}

.career-step--lead {
  --accent: var(--violet);
  --accent-soft: rgba(170, 155, 255, .1);
  --accent-line: rgba(170, 155, 255, .32);
}

.career-node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: #071117;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg), 0 0 24px -7px var(--accent);
}

.career-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 17px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(240px 150px at 100% 0%, var(--accent-soft), transparent 72%),
    linear-gradient(180deg, rgba(13, 25, 33, .82), rgba(7, 14, 19, .94));
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.career-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .8;
}

.career-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.career-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.career-role {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.career-game {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.4;
}

.career-game b {
  color: var(--ink);
  font-weight: 750;
}

.career-game span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.career-desc {
  flex: 1;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.career-inside-label {
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.career-inside {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.career-inside li {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, .018);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.35;
}

.career-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 36px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .01em;
}

.career-link .icon {
  width: 14px;
  height: 14px;
  transition: transform .16s ease;
}

.career-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- games ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  --accent: var(--mint);
  --accent-soft: rgba(92, 242, 192, .12);
  --accent-line: rgba(92, 242, 192, .34);
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(380px 220px at 100% 100%, var(--accent-soft), transparent 75%),
    linear-gradient(180deg, rgba(12, 23, 31, .92), rgba(6, 13, 18, .98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card--infra {
  --accent: var(--cyan);
  --accent-soft: rgba(97, 200, 255, .12);
  --accent-line: rgba(97, 200, 255, .34);
}

.game-card--oncall {
  --accent: var(--coral);
  --accent-soft: rgba(255, 130, 112, .12);
  --accent-line: rgba(255, 130, 112, .34);
}

.game-card--pentest {
  --accent: var(--amber);
  --accent-soft: rgba(255, 200, 97, .12);
  --accent-line: rgba(255, 200, 97, .34);
}

.game-card--ctf {
  --accent: var(--lime);
  --accent-soft: rgba(201, 245, 110, .12);
  --accent-line: rgba(201, 245, 110, .34);
}

.game-card--lead {
  --accent: var(--violet);
  --accent-soft: rgba(170, 155, 255, .12);
  --accent-line: rgba(170, 155, 255, .34);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.game-card:has(.game-hit:focus-visible) {
  border-color: var(--accent-line);
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081117;
}

.cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.game-card:hover .cover-img {
  transform: scale(1.035);
}

.cover-img--sprint {
  opacity: 0;
  transition: opacity .4s ease, transform .5s ease;
}

.cover-img--sprint.is-loaded {
  opacity: 1;
  animation: sprint-in .4s ease both;
}

.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 9, 13, .22) 0%, rgba(5, 9, 13, .02) 38%, rgba(5, 9, 13, .78) 100%),
    linear-gradient(90deg, rgba(5, 9, 13, .22), transparent 38%);
}

.cover-index,
.cover-level {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cover-index {
  left: 14px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(5, 9, 13, .55);
  color: rgba(255, 255, 255, .72);
}

.cover-level {
  right: 14px;
  padding: 0 9px;
  border: 1px solid var(--accent-line);
  background: rgba(5, 9, 13, .62);
  color: var(--accent);
}

.cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(124, 231, 198, .05) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(124, 231, 198, .05) 39px 40px),
    linear-gradient(135deg, #0a1a20, #071016);
}

.cover-fallback::before {
  content: "";
  position: absolute;
  right: -52px;
  top: -64px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(92, 242, 192, .025), 0 0 0 56px rgba(92, 242, 192, .018);
}

.cover-fallback-code {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cover-fallback-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.05em;
}

/* sprint placeholder: a tiny kanban board */

.cover-kanban {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 48px 16px 14px;
  background:
    radial-gradient(90% 100% at 90% 0%, rgba(170, 155, 255, .17), transparent 62%),
    linear-gradient(145deg, #0b131d, #0a1118 58%, #081016);
}

.cover-kanban::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170, 155, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 155, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.kanban-head,
.kanban-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kanban-head span:last-child {
  color: var(--violet);
}

.kanban-board {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  min-height: 0;
}

.kanban-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(170, 155, 255, .14);
  border-radius: 7px;
  background: rgba(8, 16, 24, .72);
}

.kanban-col b {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kanban-ticket {
  display: block;
  flex: none;
  height: clamp(13px, 1.7vw, 21px);
  border: 1px solid rgba(255, 255, 255, .07);
  border-left: 2px solid var(--amber);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 200, 97, .12), rgba(255, 255, 255, .025));
}

.kanban-ticket.is-doing {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(97, 200, 255, .13), rgba(255, 255, 255, .025));
}

.kanban-ticket.is-done {
  border-left-color: var(--mint);
  background: linear-gradient(90deg, rgba(92, 242, 192, .12), rgba(255, 255, 255, .02));
}

.kanban-foot {
  margin-top: 9px;
}

.kanban-avatars {
  display: flex;
  align-items: center;
}

.kanban-avatars i {
  width: 14px;
  height: 14px;
  margin-left: -3px;
  border: 1px solid #0a1118;
  border-radius: 50%;
  background: #2a3f4a;
}

.kanban-avatars i:nth-child(1) { background: #3b6a63; margin-left: 0; }
.kanban-avatars i:nth-child(2) { background: #4f5a86; }
.kanban-avatars i:nth-child(3) { background: #7a5f4d; }
.kanban-avatars i:nth-child(4) { background: #5c4f7d; }

.kanban-burndown {
  display: block;
  width: 76px;
  height: 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(170, 155, 255, .2);
}

.kanban-burndown i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 42%, rgba(170, 155, 255, .65) 43% 46%, transparent 47%);
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 19px 20px 18px;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-role {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.game-badge {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.game-badge--soon {
  border-color: rgba(255, 200, 97, .3);
  background: rgba(255, 200, 97, .07);
  color: var(--amber);
}

.game-title {
  margin-top: 7px;
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.game-desc {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  text-wrap: pretty;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.game-tags li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, .018);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.3;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.game-meta {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.game-cta .icon {
  width: 14px;
  height: 14px;
  transition: transform .16s ease;
}

.game-card:hover .game-cta .icon {
  transform: translateX(3px);
}

.game-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: var(--r-lg);
}

.game-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- final cta ---------- */

.hub-cta {
  padding: clamp(40px, 5vw, 68px) 0;
  border-top: 1px solid var(--line);
}

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(620px 320px at 92% -20%, rgba(92, 242, 192, .13), transparent 66%),
    radial-gradient(460px 280px at 4% 120%, rgba(97, 200, 255, .09), transparent 64%),
    linear-gradient(135deg, #0a151c, #071016 62%, #0a1219);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 231, 198, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 231, 198, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-copy h2 {
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.cta-copy p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 8px;
  min-width: 214px;
}

/* ---------- footer ---------- */

.hub-footer {
  padding: 38px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 11, .5);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.hub-brand--footer .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}

.hub-brand--footer .brand-name {
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-top: 6px;
}

.footer-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  transition: color .16s ease;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- motion ---------- */

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--mint); }
  50% { opacity: .4; box-shadow: 0 0 4px var(--mint); }
}

@keyframes sprint-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .terminal {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  .career-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .career-track::before {
    display: none;
  }

  .career-step {
    padding-top: 58px;
  }
}

@media (max-width: 820px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-note {
    max-width: 560px;
    text-align: left;
    padding-bottom: 0;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .hub-container {
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }

  html {
    scroll-padding-top: 118px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-sub {
    display: none;
  }

  .hub-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .hub-nav a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .hub-nav .nav-portal {
    flex: none;
    margin-left: auto;
  }

  .nav-long { display: none; }
  .hub-nav .nav-short { display: inline; }

  .hero {
    padding-top: 32px;
  }

  .hero-title {
    font-size: clamp(39px, 11vw, 54px);
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 14.5px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    gap: 14px 24px;
    margin-top: 26px;
  }

  .terminal-body {
    padding: 15px 14px 13px;
  }

  .terminal-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
  }

  .terminal-count {
    display: none;
  }

  .terminal-foot {
    padding: 9px 14px;
  }

  .career-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .career-track::before {
    display: none;
  }

  .career-step {
    padding: 0 0 0 66px;
  }

  .career-step::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 23px;
    width: 1px;
    height: calc(100% + 12px);
    background: linear-gradient(180deg, var(--accent), var(--accent-line));
    opacity: .55;
  }

  .career-step:last-child::before {
    display: none;
  }

  .career-node {
    top: 18px;
  }

  .career-card {
    padding: 17px 16px 15px;
  }

  .career-desc {
    flex: none;
  }

  .game-cover {
    aspect-ratio: 16 / 9;
  }

  .game-body {
    padding: 17px 16px 16px;
  }

  .game-meta {
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-nav {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(36px, 11.4vw, 46px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .terminal-path {
    font-size: 9.5px;
  }

  .terminal-role {
    font-size: 12.5px;
  }

  .section-head h2 {
    font-size: clamp(27px, 8.4vw, 34px);
  }

  .section-kicker {
    font-size: 10px;
  }

  .career-role {
    font-size: 19px;
  }

  .career-step {
    padding-left: 58px;
  }

  .career-step::before {
    top: 38px;
    left: 19px;
  }

  .career-node {
    width: 40px;
    height: 40px;
    font-size: 10.5px;
    box-shadow: 0 0 0 5px var(--bg), 0 0 20px -8px var(--accent);
  }

  .cover-index,
  .cover-level {
    top: 11px;
    min-height: 25px;
    font-size: 8.5px;
  }

  .cover-index { left: 11px; }
  .cover-level { right: 11px; }

  .cover-fallback {
    padding: 13px;
  }

  .cover-kanban {
    padding: 40px 12px 11px;
  }

  .kanban-board {
    gap: 6px;
    margin-top: 7px;
  }

  .kanban-col {
    padding: 5px;
    gap: 4px;
  }

  .kanban-burndown {
    width: 48px;
  }

  .game-head {
    align-items: flex-start;
  }

  .game-role {
    font-size: 8.5px;
  }

  .game-foot {
    gap: 8px;
  }

  .game-meta {
    font-size: 9px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-meta {
    font-size: 8px;
    line-height: 1.6;
  }
}

@media (max-width: 370px) {
  .hub-nav a {
    font-size: 9.5px;
  }

  .hero-stats b {
    font-size: 20px;
  }

  .terminal-state {
    padding: 3px 5px;
    font-size: 7.5px;
  }

  .career-step {
    padding-left: 54px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .game-card:hover,
  .career-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .game-card:hover .cover-img,
  .game-card:hover .game-cta .icon,
  .career-link:hover .icon {
    transform: none;
  }
}
