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

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:           #0c0f1a;
  --bg-alt:       #111525;
  --surface:      #161d30;
  --surface2:     #1d2540;
  --text:         #dde3f0;
  --text-muted:   #6b7592;
  --accent:       #f5c842;
  --accent-dim:   rgba(245,200,66,0.12);
  --green:        #4ade80;
  --green-dim:    rgba(74,222,128,0.12);
  --indigo:       #818cf8;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(245,200,66,0.35);
  --radius:       10px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Dot-grid background — graph paper feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,200,66,0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

header, .hero, .section, footer { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,15,26,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.logo-accent { color: var(--accent); }

nav { display: flex; gap: 0.25rem; }

nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav a:hover, nav a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-num {
  color: var(--accent);
  font-size: 0.68rem;
  opacity: 0.8;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  background: #0d0d0f;
}

.hero-bg-eq {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: rgba(245,200,66,0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
  user-select: none;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s ease forwards;
}

/* ── Bebas Neue stacked name ─────────────────────────────────── */
.hero-name-block {
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.88;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}

.hero-name-first {
  font-size: clamp(5.5rem, 15vw, 12rem);
  color: var(--text);
  display: block;
}

.hero-name-second {
  display: flex;
  align-items: flex-end;
  gap: 0.8em;
}

.hero-name-last {
  font-size: clamp(5.5rem, 15vw, 12rem);
  color: var(--accent);
}

.hero-slash {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--text);
  opacity: 0.4;
  line-height: 1;
  margin-left: 0.05em;
}

/* Marker SVG — inline, sized to match PRIBIK cap height */
.hero-marker {
  height: calc(clamp(5.5rem, 14vw, 12rem) * 0.75);
  width: auto;
  fill: var(--accent);
  opacity: 0.9;
  transform: rotate(-8deg);
  margin-bottom: 0.7em;
  flex-shrink: 0;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}

.tag-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag-sep {
  color: var(--accent);
  opacity: 0.5;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.hero-coords {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.4;
  letter-spacing: 0.06em;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #0c0f1a;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  background: #fdd84e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.25);
}

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

.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section-alt { background: rgba(255,255,255,0.015); }

.section-inner { max-width: 1140px; margin: 0 auto; }

.section-header { margin-bottom: 3rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-optical-sizing: auto;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  /* Scroll reveal — set by JS */
  opacity: 0;
  transform: translateY(16px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.2s, box-shadow 0.2s;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.card-icon { font-size: 1.6rem; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Per-section card accents */
.card-students { border-left: 3px solid var(--green); }
.card-students:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(74,222,128,0.1);
  transform: translateY(-3px);
}

.card-project { border-left: 3px solid var(--indigo); }
.card-project:hover {
  border-color: var(--indigo);
  box-shadow: 0 8px 32px rgba(129,140,248,0.1);
  transform: translateY(-3px);
}

.card-hire { border-left: 3px solid var(--accent); }
.card-hire:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245,200,66,0.1);
  transform: translateY(-3px);
}

/* Card link button */
.card-link-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--green-dim);
  border-radius: 4px;
  transition: background 0.2s;
}
.card-link-btn:hover { background: var(--green-dim); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.badge-active, .badge-complete {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.25);
}

.badge-planned {
  background: rgba(129,140,248,0.1);
  color: var(--indigo);
  border: 1px solid rgba(129,140,248,0.2);
}

.badge-soon {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245,200,66,0.2);
}

/* ── Project Gallery ─────────────────────────────────────────── */
.proj-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Viewer card */
.proj-viewer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 16:9 media area */
.proj-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.proj-media-fade { opacity: 0; }

.proj-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.proj-media-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.proj-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 1rem;
  background: rgba(0, 0, 0, 0.65);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  text-align: center;
}

/* Empty state */
.proj-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  height: 100%;
}

.proj-empty-icon {
  font-size: 3.5rem;
  opacity: 0.25;
}

.proj-empty-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Info bar */
.proj-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.proj-info-text {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.proj-info-icon { font-size: 1.4rem; flex-shrink: 0; }

.proj-info-copy { flex: 1; min-width: 0; }

.proj-info-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-info-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Media nav controls */
.proj-media-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.proj-nav-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.proj-nav-btn:hover {
  background: rgba(129, 140, 248, 0.15);
  border-color: var(--indigo);
}

.proj-media-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 2.8rem;
  text-align: center;
}

/* Tile filmstrip */
.proj-tiles {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.proj-tile {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 130px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.proj-tile:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.12);
}

.proj-tile.active {
  border-color: var(--indigo);
  background: rgba(129, 140, 248, 0.07);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2), 0 4px 16px rgba(129, 140, 248, 0.12);
}

.proj-tile-icon { font-size: 1.8rem; }

.proj-tile-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-block { margin-top: 3rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.6;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav a span.nav-num { display: none; }
  nav { gap: 0; }
  nav a { font-size: 0.75rem; padding: 0.4rem 0.6rem; }

  .hero { min-height: 80vh; padding: 4rem 1.5rem 3rem; }
  .hero-bg-eq { font-size: 2.5rem; right: 1rem; bottom: 1.5rem; }
  .hero-coords { display: none; }

  .section { padding: 4rem 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
