:root {
  --bg: #080808;
  --panel: rgba(8, 8, 8, .68);
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --red: #a70500;
  --line: rgba(255,255,255,.08);
}

.red{color: var(--red)}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
a { color: inherit; }

#skills-network { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(8,8,8,.42) 0 24%, rgba(8,8,8,.18) 48%, rgba(8,8,8,.42) 100%);
}

.topbar { position: fixed; z-index: 3; top: 0; left: 0; right: 0; padding: 28px 42px; display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand span { color: var(--red); }
.top-link { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.top-link:hover { color: var(--red); }

.hero { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 100px 24px; pointer-events: none; }
.intro { width: min(760px, 90vw); text-align: center; padding: 36px 28px; pointer-events: auto; }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .3em; }
h1 { margin: 0; color: #f1f1f1; font-size: clamp(48px, 8vw, 92px); line-height: .95; letter-spacing: -.02em; font-weight: 600; }
h2 { margin: 24px 0 0; font-size: clamp(17px, 2.2vw, 25px); font-weight: 500; color: #d3d3d3; letter-spacing: -.02em; }
.intro h1,
.intro h2 { transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.intro.network-mode h1,
.intro.network-mode h2 {
  opacity: .32;
  filter: blur(2px);
  transform: scale(.96);
}
.intro.network-mode h1 { opacity: .07; }
.summary { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; }
.actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; }
.button { min-width: 132px; padding: 13px 20px; border: 1px solid transparent; text-decoration: none; font-size: 13px; font-weight: 750; letter-spacing: .04em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--red); color: white; }
.primary:hover { background: #ff1710; }
.secondary { border-color: #3b3b3b; background: rgba(8,8,8,.7); }
.secondary:hover { border-color: var(--red); }
.hint { position: fixed; z-index: 3; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #555; font-size: 9px; font-weight: 700; letter-spacing: .25em; }
.hint-primary {
  color: #737373;
  background: linear-gradient(
    90deg,
    #737373 0%,
    #737373 38%,
    #ffffff 49.5%,
    #ffffff 50.5%,
    #737373 62%,
    #737373 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hint-shine 5s linear infinite;
}
.hint-separator { color: #555; }
.hint-action {
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  color: #3f3f3f;
  background-color: transparent;
  background: linear-gradient(
    90deg,
    #3f3f3f 0%,
    #3f3f3f 38%,
    var(--red) 49.5%,
    var(--red) 50.5%,
    #3f3f3f 62%,
    #3f3f3f 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hint-action-shine 5s linear infinite;
}
.hint-action:hover,
.hint-action:focus-visible { outline: none; filter: brightness(1.7); }
.hint-action:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.intro .eyebrow { max-height: 32px; }
.intro .summary { max-height: 100px; }
.intro .actions { max-height: 64px; }
.intro .eyebrow,
.intro .summary,
.intro .actions { transition: opacity .25s ease, visibility .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease; }
.intro.network-mode .eyebrow,
.intro.network-mode .summary,
.intro.network-mode .actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes hint-shine {
  0%, 70% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

@keyframes hint-action-shine {
  0%, 85% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@media (max-width: 700px) {
  .topbar { padding: 22px 20px; }
  .intro { padding: 24px 4px; }
  .summary { line-height: 1.6; }
  .hint { bottom: 20px; font-size: 8px; letter-spacing: .15em; }
  .actions { flex-direction: column; align-items: center; }
  .button { width: min(240px, 80vw); }
}

@media (prefers-reduced-motion: reduce) {
  .hint-primary,
  .hint-action,
  .intro .eyebrow,
  .intro .summary,
  .intro .actions,
  .intro h1,
  .intro h2 { animation: none; transition: none; }
}
