@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1a1a1a;
  --border:    #2a2a2a;
  --text:      #e8e8e8;
  --muted:     #888;
  --accent:    #4a9eff;
  --accent2:   #2d7dd2;
  --green:     #3ecf8e;
  --yellow:    #f0b429;
  --purple:    #a78bfa;
  --radius:    8px;
  --max:       1400px;
}


html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 21px;
  line-height: 1.7;
}

h1, h2, h3, h4, .nav-name {
  font-family: 'Rajdhani', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.card-fullbleed:hover, a.card-fullbleed:hover * { text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
  border-bottom: 1px solid var(--border);
  height: 56px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}

nav ul a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.28) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-label {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.hero-content h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-sub {
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 36px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

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

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent2);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── Sections ── */
section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #fff;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.skills-pills {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}

.skill-group { display: flex; flex-direction: column; gap: 10px; }

.skill-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--bg2);
  transition: border-color 0.18s, color 0.18s;
  cursor: default;
  user-select: none;
}

.skill-tag:hover {
  border-color: rgba(74, 158, 255, 0.45);
  color: var(--accent);
}

.skill-tag.skill-primary {
  border-color: rgba(74, 158, 255, 0.5);
  color: var(--accent);
  background: rgba(74, 158, 255, 0.07);
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--bg2);
  border: 1px solid rgba(74,158,255,0.28);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 8px 20px rgba(0,0,0,0.35),
    0 0 0 1px rgba(74,158,255,0.04);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.35),
    0 16px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(74,158,255,0.14),
    0 0 30px rgba(74,158,255,0.07);
}


.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: relative;
  z-index: 2;
}

.card-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-status.live     { background: rgba(62,207,142,0.15);  color: var(--green);  }
.card-status.building { background: rgba(240,180,41,0.15);  color: var(--yellow); }
.card-status.planned  { background: rgba(167,139,250,0.15); color: var(--purple); }
.card-status.preview  { background: rgba(74,158,255,0.15);  color: var(--accent); }

.card-tag {
  font-size: 12px;
  color: var(--muted);
}

/* ── Card Visual Area ── */
.card-visual {
  position: relative;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RIGGS visual — neural node grid */
.riggs-visual {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
  flex-direction: column;
  gap: 12px;

  /* SVG CSS vars — dark mode */
  --svg-bg-center:  #0d1f3c;
  --svg-bg-edge:    #0a1628;
  --svg-grid:       rgba(74,158,255,0.08);
  --svg-accent:     rgba(74,158,255,0.9);
  --svg-ring:       rgba(74,158,255,0.2);
  --svg-line:       rgba(74,158,255,0.35);
  --svg-line-dim:   rgba(74,158,255,0.15);
  --svg-node:       rgba(13,31,60,0.8);
}

/* Site visual — purple */
.site-visual {
  background: linear-gradient(135deg, #130824 0%, #0b0118 100%);
  --svg-bg-center: #130824;
  --svg-bg-edge:   #0b0118;
  --svg-accent:    rgba(168,85,247,0.9);
  --site-rgb:      168, 85, 247;
}


/* Site card layout animations */
@keyframes site-3col {
  0%, 15%  { opacity: 1 }
  25%, 80% { opacity: 0 }
  90%, 100%{ opacity: 1 }
}
@keyframes site-2col {
  0%, 22%  { opacity: 0 }
  32%, 48% { opacity: 1 }
  58%, 100%{ opacity: 0 }
}
@keyframes site-1col {
  0%, 53%  { opacity: 0 }
  63%, 72% { opacity: 1 }
  82%, 100%{ opacity: 0 }
}
.site-layout {
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.site-layout-3col { animation-name: site-3col; }
.site-layout-2col { animation-name: site-2col; }
.site-layout-1col { animation-name: site-1col; }


.riggs-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.visual-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

.visual-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.4), transparent);
  animation: pulse-line 2.5s ease-in-out infinite;
}

.visual-lines span:nth-child(2) { animation-delay: 0.4s; }
.visual-lines span:nth-child(3) { animation-delay: 0.8s; }
.visual-lines span:nth-child(4) { animation-delay: 1.2s; }
.visual-lines span:nth-child(5) { animation-delay: 1.6s; }

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.8; }
}

.visual-nodes {
  display: flex;
  gap: 16px;
}

.node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(74,158,255,0.2);
  border: 1px solid rgba(74,158,255,0.3);
}

.node.active {
  background: rgba(74,158,255,0.7);
  border-color: rgba(74,158,255,0.9);
  box-shadow: 0 0 8px rgba(74,158,255,0.5);
  animation: node-pulse 1.8s ease-in-out infinite;
}

.node:nth-child(2) { animation-delay: 0.6s; }
.node:nth-child(4) { animation-delay: 1.2s; }

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(74,158,255,0.3); }
  50%       { box-shadow: 0 0 12px rgba(74,158,255,0.8); }
}

/* Log Analyzer visual — scrolling log lines */
.log-visual {
  background: linear-gradient(135deg, #0d1a0d 0%, #111f11 100%);
  padding: 12px 16px;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.log-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
}

.log-line {
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-line.normal { color: rgba(100,200,100,0.7); }
.log-line.warn   { color: rgba(240,180,41,0.9);  background: rgba(240,180,41,0.05); }
.log-line.error  { color: rgba(255,80,80,0.9);   background: rgba(255,80,80,0.08);  }

/* Job Search Bot visual — radar */
.bot-visual {
  background: linear-gradient(135deg, #0d0d1a 0%, #111128 100%);
  padding: 16px 20px;
  align-items: center;
  justify-content: center;
  --bot-rgb:    62,207,142;
  --bot-bg-c:   #0a1a0a;
  --bot-bg-e:   #060d06;
  --blip-glow:  rgba(62,207,142,0.9);
}


.news-visual {
  background: #0d0800;
  --svg-bg-center: #1a1000;
  --svg-bg-edge:   #0d0800;
  --svg-accent:    rgba(255,170,0,0.9);
}


.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
  position: relative;
  z-index: 1;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: var(--muted);
  min-width: 20px;
}

.rank-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(167,139,250,0.8), rgba(74,158,255,0.6));
  flex-shrink: 0;
}

.rank-score {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: var(--muted);
  min-width: 24px;
  text-align: right;
}

/* ── Full-bleed card ── */
.card-fullbleed {
  padding: 0;
}

.card-fullbleed .card-visual {
  height: 280px;
  width: 100%;
  position: relative;
}

.card-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  z-index: 4;
}

.card-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: none;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-title-overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}


.card-gh-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.card-gh-link:hover { text-decoration: underline; }

.card-fullbleed:hover .card-gh-link { opacity: 1; }

.card-hover-overlay {
  position: absolute;
  inset: 0;
  padding: 58px 16px 48px;
  background: rgba(8,16,32,0.90);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.card-hover-overlay p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.card-fullbleed:hover .card-hover-overlay { opacity: 1; }

.card-hover-overlay .card-stack span {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

/* ── Card Body + Hover ── */
.card-body {
  position: relative;
  padding: 16px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.25s;
}

.card-hover-desc {
  position: absolute;
  inset: 0;
  padding: 16px;
  background: var(--bg2);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover .card-hover-desc { opacity: 1; }
.card:hover .card-body h3    { opacity: 0; }

.card-hover-desc p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-stack span {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-links {
  margin-top: auto;
}

.card-links a {
  font-size: 13px;
  font-weight: 500;
}

.card-link-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.card-link-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.coming-soon {
  font-size: 13px;
  color: var(--muted);
}

/* ── RIGGS SVG Animations ── */

/* Outer ring slow rotation */
.riggs-ring {
  transform-box: view-box;
  transform-origin: 180px 140px;
  animation: ring-rotate 24s linear infinite;
}
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Broadcast rings pulse outward from center */
.riggs-broadcast {
  transform-box: view-box;
  transform-origin: 180px 140px;
  animation: broadcast 3s ease-out infinite;
}
.riggs-broadcast-1 { animation-delay: 0s; }
.riggs-broadcast-2 { animation-delay: 1s; }
.riggs-broadcast-3 { animation-delay: 2s; }
@keyframes broadcast {
  0%   { transform: scale(1);  opacity: 0.7; }
  100% { transform: scale(9);  opacity: 0;   }
}

/* Satellite nodes pulse in sequence */
.riggs-sat {
  animation: sat-glow 3.6s ease-in-out infinite;
}
.riggs-sat-1 { animation-delay: 0s;    }
.riggs-sat-2 { animation-delay: 0.6s;  }
.riggs-sat-3 { animation-delay: 1.2s;  }
.riggs-sat-4 { animation-delay: 1.8s;  }
.riggs-sat-5 { animation-delay: 2.4s;  }
.riggs-sat-6 { animation-delay: 3.0s;  }
@keyframes sat-glow {
  0%, 80%, 100% { opacity: 0.6; }
  10%            { opacity: 1;   filter: drop-shadow(0 0 4px var(--svg-accent)); }
}

/* Data flow along connection lines */
.riggs-flow {
  stroke-dasharray: 4 36;
  animation: data-flow 2.4s linear infinite;
}
.riggs-flow-1 { animation-delay: 0s;    }
.riggs-flow-2 { animation-delay: 0.4s;  }
.riggs-flow-3 { animation-delay: 0.8s;  }
.riggs-flow-4 { animation-delay: 1.2s;  }
.riggs-flow-5 { animation-delay: 1.6s;  }
.riggs-flow-6 { animation-delay: 2.0s;  }
@keyframes data-flow {
  from { stroke-dashoffset: 40; }
  to   { stroke-dashoffset: 0;  }
}

/* ── CPU Chip Animations ── */

.chip-body {
  animation: chip-glow 3s ease-in-out infinite;
}
@keyframes chip-glow {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 1; filter: drop-shadow(0 0 6px var(--svg-accent)); }
}

.chip-upload {
  animation: stream-flow 1.6s linear infinite;
}
.chip-upload-1 { animation-delay: 0s; }
.chip-upload-2 { animation-delay: 0.25s; }
.chip-upload-3 { animation-delay: 0.5s; }

.chip-download {
  animation: stream-flow 2s linear infinite;
}
.chip-download-1 { animation-delay: 0s; }
.chip-download-2 { animation-delay: 0.35s; }
.chip-download-3 { animation-delay: 0.7s; }

@keyframes stream-flow {
  from { stroke-dashoffset: 48; }
  to   { stroke-dashoffset: 0; }
}

/* ── Log Analyzer Animations ── */

.log-visual {
  position: relative;
}

/* Error line pulse */
.log-line.error {
  animation: error-pulse 2.5s ease-in-out infinite;
}
@keyframes error-pulse {
  0%, 100% { background: rgba(255,80,80,0.08); }
  50%       { background: rgba(255,80,80,0.22); }
}

/* Warn line subtle pulse */
.log-line.warn {
  animation: warn-pulse 3s ease-in-out infinite;
  animation-delay: 0.8s;
}
@keyframes warn-pulse {
  0%, 100% { background: transparent; }
  50%       { background: rgba(240,180,41,0.1); }
}

/* Radar blip pulse — synced to sweep rotation (4s cycle) */
.blip {
  animation: blip-hit 4s linear infinite;
  transform-box: fill-box;
  transform-origin: center center;
}
.blip-1 { animation-delay: -1.51s; } /* hits at 224° → 2.49s into cycle */
.blip-2 { animation-delay: -3.5s;  } /* hits at  45° → 0.5s  into cycle */
.blip-3 { animation-delay: -3.85s; } /* hits at  13° → 0.15s into cycle */

@keyframes blip-hit {
  0%   { filter: hue-rotate(-153deg) drop-shadow(0 0 10px rgba(255,80,80,0.9)); opacity: 1;    }
  6%   { filter: hue-rotate(-153deg) drop-shadow(0 0 4px  rgba(255,80,80,0.7)); opacity: 0.9;  }
  18%  { filter: hue-rotate(0deg);                                               opacity: 0.75; }
  100% { filter: none;                                                            opacity: 0.65; }
}

/* Radar sweep animation */
.radar-sweep-group {
  transform-box: view-box;
  transform-origin: 180px 140px;
  animation: radar-spin 4s linear infinite;
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Terminal cursor blink */
.terminal-cursor {
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.coming-soon-label {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.service-item {
  background: var(--bg2);
  border: 1px solid rgba(74,158,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.service-item:hover {
  border-color: rgba(74,158,255,0.35);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    0 0 20px rgba(74,158,255,0.06);
  transform: translateY(-2px);
}

.service-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-container {
  max-width: 640px;
}

.contact-container h2 { margin-bottom: 12px; }

.contact-container p {
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea { resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }

.contact-form .btn { align-self: flex-start; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

.footer-name {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Project Pages ── */
.project-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-hero-content {
  position: relative;
  z-index: 4;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.28) 35%,
    transparent 65%
  );
  z-index: 3;
  pointer-events: none;
}

#log-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.log-hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px
  );
  z-index: 2;
}

.log-hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 110% at 50% 50%,
    transparent 45%,
    rgba(4,9,4,0.45) 100%
  );
  z-index: 3;
}

#jsb-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.jsb-hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.14) 3px, rgba(0,0,0,0.14) 4px
  );
  z-index: 2;
}

.jsb-hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 110% at 50% 50%,
    transparent 45%,
    rgba(4,8,9,0.45) 100%
  );
  z-index: 3;
}

.project-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.8);
}

.project-hero .hero-label {
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.project-hero .hero-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}

.project-hero .hero-ctas {
  justify-content: flex-start;
  margin-top: 28px;
}

/* ── Topside News hero background ── */
#tsn-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.tsn-terminal {
  width: 88%;
  max-width: 960px;
  color: rgba(255,170,0,0.85);
  font-size: 15px;
  line-height: 1.75;
  padding: 24px 0;
}

.tsn-boot-line { white-space: pre; }
.tsn-boot-line.ok-text { color: rgba(100,255,100,0.9); }
.tsn-banner {
  color: rgba(255,170,0,0.65);
  white-space: pre;
}
.tsn-banner.online { color: rgba(100,255,100,0.8); }

.tsn-ascii {
  white-space: pre;
  font-size: clamp(5px, 1.05vw, 10px);
  line-height: 1.35;
  color: rgba(255,170,0,0.82);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.tsn-subtitle {
  color: rgba(255,170,0,0.45);
  font-size: 14px;
  margin-bottom: 10px;
}

.tsn-menu {
  color: rgba(255,170,0,0.6);
  font-size: 15px;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.tsn-cursor {
  display: inline-block;
  width: 10px;
  height: 15px;
  background: rgba(255,170,0,0.9);
  vertical-align: text-bottom;
  animation: tsn-blink 0.9s step-start infinite;
}

@keyframes tsn-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

#site-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.site-hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
  );
}

.site-hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    ellipse 120% 110% at 50% 50%,
    transparent 45%,
    rgba(8,5,16,0.45) 100%
  );
}

#riggs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.riggs-hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.09) 3px, rgba(0,0,0,0.09) 4px
  );
}

.riggs-hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    ellipse 120% 110% at 50% 50%,
    transparent 45%,
    rgba(4,6,10,0.45) 100%
  );
}


.tsn-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.14) 3px, rgba(0,0,0,0.14) 4px
  );
}

.tsn-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    ellipse 120% 110% at 50% 50%,
    transparent 45%,
    rgba(3,2,0,0.45) 100%
  );
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 4px;
}

.badge-inline.live     { background: rgba(62,207,142,0.15);  color: var(--green);  }
.badge-inline.building { background: rgba(240,180,41,0.15);  color: var(--yellow); }
.badge-inline.planned  { background: rgba(167,139,250,0.15); color: var(--purple); }

.project-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 80px;
  max-width: 760px;
}

.project-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.project-section p {
  color: var(--muted);
  margin-bottom: 14px;
}

.project-section p:last-child { margin-bottom: 0; }

.project-section a { color: var(--accent); }

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.project-list li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.project-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.stack-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.stack-item span:last-child {
  font-size: 14px;
  color: var(--muted);
}

code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: 'Courier New', Courier, monospace;
  color: var(--accent);
}


/* ── Responsive ── */
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  nav ul { gap: 16px; }
}
