/* Jan Loko — Developer Homepage */

:root {
  --bg: #07090d;
  --bg-soft: #0b0f15;
  --surface: #10151d;
  --surface-hover: #141b25;
  --surface-glass: rgba(16, 21, 29, 0.72);

  --text: #f3f7fb;
  --text-secondary: #98a6b7;
  --text-muted: #6b7a8d;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #00b8ff;
  --accent-light: #39d8ff;
  --accent-dim: rgba(0, 184, 255, 0.14);
  --accent-glow: rgba(0, 184, 255, 0.28);

  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 72px;
  --container: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #041018;
  font-weight: 600;
}

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

/* Background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(0, 184, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(57, 216, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 120, 180, 0.08), transparent 55%),
    linear-gradient(180deg, #080b11 0%, var(--bg) 40%, #05070a 100%);
}

.bg-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  opacity: 0.55;
}

.bg-glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  top: -12%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.16), transparent 68%);
  filter: blur(20px);
  animation: glowFloat 16s ease-in-out infinite alternate;
}

.bg-glow--secondary {
  top: auto;
  right: auto;
  bottom: 8%;
  left: -18%;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: radial-gradient(circle, rgba(57, 216, 255, 0.08), transparent 70%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 64px, 0); }
}

@keyframes glowFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

/* Layout */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.section-title {
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 13, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  --header-h: 60px;
  background: rgba(7, 9, 13, 0.82);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.logo span {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s ease, top 0.28s var(--ease);
}

.nav-toggle-bars span {
  top: 5px;
}

.nav-toggle-bars::before {
  content: "";
  top: 0;
}

.nav-toggle-bars::after {
  content: "";
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 10px 30px rgba(0, 184, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 184, 255, 0.32);
}

.btn-primary:visited {
  color: #041018;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 184, 255, 0.45);
  background: var(--accent-dim);
}

.btn-secondary:visited {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 1.15rem;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-title span {
  display: block;
  background: linear-gradient(120deg, #fff 20%, #c8d7e8 55%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 34rem;
  margin-bottom: 1.85rem;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 21, 29, 0.92), rgba(10, 14, 20, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(0, 184, 255, 0.35), transparent 40%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4554;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  margin-left: 0.45rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.terminal-body {
  padding: 1.2rem 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 12.5rem;
}

.terminal-line {
  opacity: 0;
  transform: translateY(6px);
}

.terminal-line.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.terminal-line .prompt {
  color: var(--accent-light);
}

.terminal-line .key {
  color: #7f91a8;
}

.terminal-line .val {
  color: var(--text);
}

.terminal-cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  opacity: 0;
}

.terminal-cursor.is-on {
  opacity: 1;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 7px rgba(0, 184, 255, 0.08); }
}

/* About / Team */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 21, 29, 0.95), rgba(12, 16, 23, 0.9));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 184, 255, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 184, 255, 0.08);
}

.about-copy {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: var(--text-secondary);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.profile-meta strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.profile-meta span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.team-card {
  padding: 0;
}

.team-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: #0a0e14;
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.team-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.92));
}

.team-body {
  padding: 1.35rem 1.5rem 1.6rem;
}

.team-kicker {
  margin-bottom: 0.85rem;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-person strong {
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.team-person span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 16px rgba(0, 184, 255, 0.55);
  will-change: height;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: none;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-item:nth-child(odd) {
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-meta {
  justify-content: flex-end;
}

.timeline-node {
  position: absolute;
  top: 1.55rem;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0d1219;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline-item.is-active .timeline-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}

.timeline-item.is-current .timeline-node {
  box-shadow: 0 0 0 6px var(--accent-dim), 0 0 22px rgba(0, 184, 255, 0.65);
  animation: nodePulse 2.2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--accent-dim), 0 0 18px rgba(0, 184, 255, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(0, 184, 255, 0.1), 0 0 28px rgba(0, 184, 255, 0.75); }
}

.timeline-card {
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.88);
  text-align: left;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 184, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 24px rgba(0, 184, 255, 0.08);
}

.timeline-item.is-current .timeline-card {
  border-color: rgba(0, 184, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(0, 184, 255, 0.08), transparent 42%),
    rgba(16, 21, 29, 0.95);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.timeline-date {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.timeline-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-tag.current {
  border-color: rgba(0, 184, 255, 0.4);
  background: var(--accent-dim);
}

.timeline-role {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Current Role */
.role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 184, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(16, 21, 29, 0.96), rgba(10, 14, 20, 0.96));
  box-shadow: var(--shadow);
}

.role-kicker {
  margin-bottom: 0.85rem;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.role-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.role-title em {
  display: block;
  font-style: normal;
  color: var(--accent-light);
}

.role-copy {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--text-secondary);
}

.role-stats {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: statusPulse 2.4s ease-in-out infinite;
}

/* Technical */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.tech-card {
  padding: clamp(1.35rem, 3vw, 1.75rem);
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.tech-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.tech-tags span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* Contact */
.contact {
  text-align: center;
}

.contact .section-head {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-views {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Fallback if JS is delayed or unavailable */
@media (scripting: none) {
  .reveal,
  .timeline-item,
  .terminal-line {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.legal-page {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.legal-page h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  max-width: 46rem;
}

.legal-page ul {
  margin: 0.75rem 0 0 1.1rem;
  list-style: disc;
}

.legal-page a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.legal-back:hover {
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .role-panel,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    left: 12px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 2.4rem;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-meta,
  .timeline-item:nth-child(even) .timeline-meta {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
  }

  .timeline-node {
    left: 12px;
  }

  .team-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
  }

  .nav-link::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .terminal-body {
    font-size: 0.74rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .bg-grid,
  .bg-glow {
    animation: none !important;
  }

  .reveal,
  .timeline-item,
  .terminal-line {
    opacity: 1 !important;
    transform: none !important;
  }

  .timeline-item.is-current .timeline-node,
  .hero-badge::before,
  .stat-dot,
  .terminal-cursor {
    animation: none !important;
  }

  .terminal-cursor.is-on {
    opacity: 1;
  }

  .card:hover,
  .timeline-card:hover,
  .btn:hover {
    transform: none;
  }
}
