/* ============================================================
   VTT — Ethan Van der Putten — Digital CV
   Design system: "Route Manifest" — industrial logistics meets
   systems/security. Career told as a shipping manifest / system log.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg: #14181D;
  --panel: #1B2128;
  --panel-raised: #212831;
  --border: #2B333D;
  --text: #E8EAED;
  --text-muted: #8D98A3;
  --amber: #E8A93A;
  --amber-dim: #B98527;
  --steel: #6E93B5;
  --ok: #6FBF8B;
  --shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  --radius: 3px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

[data-theme="light"]{
  --bg: #EEF0F2;
  --panel: #FFFFFF;
  --panel-raised: #FFFFFF;
  --border: #D6DBE0;
  --text: #1B222A;
  --text-muted: #5C6773;
  --amber: #B9791E;
  --amber-dim: #8F5D14;
  --steel: #3E5C76;
  --ok: #2F8B57;
  --shadow: 0 20px 40px -24px rgba(20,24,29,0.18);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--amber); color: #14181D; }

a{ color: var(--steel); }

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Focus / accessibility ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: #14181D; padding: 10px 16px;
  z-index: 100; font-family: var(--mono); font-size: 13px;
}
.skip-link:focus{ left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Top bar ---------- */
.topbar{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.brand{
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--text-muted); text-decoration: none;
}
.brand strong{ color: var(--text); }
.topbar-actions{ display: flex; align-items: center; gap: 18px; }
.nav-links{ display: flex; gap: 22px; }
.nav-links a{
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-muted); text-decoration: none; text-transform: uppercase;
}
.nav-links a:hover{ color: var(--amber); }

/* Theme toggle — styled like a rocker switch */
.theme-toggle{
  position: relative;
  width: 52px; height: 28px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  display: flex; align-items: center;
  padding: 3px;
}
.theme-toggle .knob{
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber);
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
[data-theme="light"] .theme-toggle .knob{ transform: translateX(24px); }

/* ---------- Hero ---------- */
.hero{
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow{
  font-family: var(--mono); font-size: 12.5px; color: var(--amber);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.status-dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(111,191,139,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(111,191,139,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(111,191,139,0); }
  100%{ box-shadow: 0 0 0 0 rgba(111,191,139,0); }
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}
h1.hero-name{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero-tagline{
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-tagline strong{ color: var(--text); font-weight: 600; }

.manifest-meta{
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  max-width: 480px;
}
.manifest-meta .row{ display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted); }
.manifest-meta .row span:last-child{ color: var(--text); text-align: right; }

.hero-cta{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn{
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  text-decoration: none; padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--amber); color: #14181D; border-color: var(--amber); font-weight: 600;
}
.btn-primary:hover{ box-shadow: 0 8px 24px -8px rgba(232,169,58,0.5); }
.btn-secondary{ color: var(--text); background: var(--panel); }
.btn-secondary:hover{ border-color: var(--steel); }

.hero-photo{
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  filter: grayscale(0.15) contrast(1.03);
}

/* ---------- Section shell ---------- */
section{ padding: 80px 0; border-bottom: 1px solid var(--border); }
section:last-of-type{ border-bottom: none; }
.section-head{ display: flex; align-items: baseline; gap: 14px; margin-bottom: 40px; }
.section-tag{
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.section-tag::before{ content: "// "; color: var(--text-muted); }
h2.section-title{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
}
.section-lede{ color: var(--text-muted); max-width: 620px; margin: -24px 0 40px; }

.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Manifest / Timeline (signature element) ---------- */
.manifest{ display: flex; flex-direction: column; }
.manifest-line{
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px dashed var(--border);
}
.manifest-line:first-child{ border-top: 1px solid var(--border); }
.manifest-id{
  font-family: var(--mono); font-size: 12px; color: var(--text-muted); padding-top: 3px;
}
.manifest-body h3{
  font-family: var(--display); font-size: 1.15rem; margin: 0 0 4px; font-weight: 600;
}
.manifest-body .org{ color: var(--steel); font-size: 0.92rem; margin: 0 0 10px; }
.manifest-body ul{ margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.93rem; }
.manifest-body li{ margin-bottom: 4px; }
.manifest-dates{
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  white-space: nowrap; padding-top: 3px; text-align: right;
}
.manifest-status{
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 20px; height: fit-content;
  border: 1px solid var(--border); white-space: nowrap;
}
.manifest-status.active{ color: var(--ok); border-color: var(--ok); }
.manifest-status.complete{ color: var(--text-muted); }

@media (max-width: 720px){
  .manifest-line{ grid-template-columns: 1fr; gap: 6px; }
  .manifest-dates{ text-align: left; }
  .manifest-id{ order: -1; }
}

/* ---------- Skill modules ---------- */
.module-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.module{
  background: var(--panel);
  padding: 26px 24px;
}
.module-label{
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
  display: block;
}
.tag-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-family: var(--mono); font-size: 12px; color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 11px;
  background: var(--panel-raised);
}
@media (max-width: 780px){ .module-grid{ grid-template-columns: 1fr; } }

/* ---------- Project bento ---------- */
.bento{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  grid-column: span 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card.flagship{ grid-column: span 3; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.card:hover{ border-color: var(--steel); transform: translateY(-3px); }
.card-status{
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--ok); border: 1px solid var(--ok); border-radius: 20px; padding: 3px 9px;
}
.card h3{ font-family: var(--display); font-size: 1.25rem; margin: 0 0 10px; padding-right: 90px; }
.card p{ color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }
.card-links{ display: flex; gap: 14px; }
.card-links a{ font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--steel); }
.card-links a:hover{ color: var(--amber); }
.stack-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.stack-tags span{
  font-family: var(--mono); font-size: 10.5px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 3px; padding: 3px 7px;
}
.flagship-detail{
  border-left: 1px solid var(--border); padding-left: 26px;
  display: flex; flex-direction: column; justify-content: center;
}
.flagship-detail ul{ margin: 0 0 20px; padding-left: 18px; color: var(--text-muted); font-size: 0.88rem; }
.flagship-detail li{ margin-bottom: 8px; }

.demo-login{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-raised);
  padding: 16px 18px;
}
.demo-login-label{
  font-family: var(--mono); font-size: 10.5px; color: var(--amber);
  letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 10px;
}
.demo-login-row{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px;
  margin-bottom: 8px;
}
.demo-login-row .k{ color: var(--text-muted); width: 70px; flex-shrink: 0; }
.demo-login-row code{
  background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
  padding: 3px 8px; color: var(--text); flex: 1;
}
.copy-btn{
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  background: transparent; border: 1px solid var(--border); border-radius: 3px;
  padding: 4px 9px; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover{ color: var(--amber); border-color: var(--amber); }
.copy-btn.copied{ color: var(--ok); border-color: var(--ok); }
.demo-login-note{ font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0; }

.hero-demo-note{
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  margin: 14px 0 0;
}
.hero-demo-note code{
  background: var(--panel); border: 1px solid var(--border); border-radius: 3px;
  padding: 2px 6px; color: var(--text);
}

@media (max-width: 780px){
  .bento{ grid-template-columns: 1fr; }
  .card.flagship{ grid-template-columns: 1fr; }
  .flagship-detail{ border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
}

/* ---------- Connect ---------- */
.connect-panel{
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.connect-row{ display: flex; flex-direction: column; gap: 4px; }
.connect-row .k{ font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.connect-row .v{ font-size: 1rem; }
.connect-row .v a{ color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.connect-row .v a:hover{ color: var(--amber); border-color: var(--amber); }
@media (max-width: 640px){ .connect-panel{ grid-template-columns: 1fr; padding: 28px; } }

footer{
  padding: 32px 0 60px;
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ max-width: 220px; aspect-ratio: 1/1; }
  .nav-links{ display: none; }
}
