/* ---------------------------------------------------------
   Vishal Barot — portfolio
   Palette
     --paper   #F2F4F3  cool mist
     --surface #FFFFFF
     --ink     #16211F  near-black, green undertone
     --muted   #5C6B66
     --pipe    #0D7A5F  pipeline green (accent)
     --signal  #E0902F  amber (status)
   Type
     display: Bricolage Grotesque
     body:    IBM Plex Sans
     utility: IBM Plex Mono
---------------------------------------------------------- */

:root {
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #16211f;
  --muted: #5c6b66;
  --pipe: #0d7a5f;
  --signal: #e0902f;
  --line: #d4dbd8;
  --rail: 56px;           /* width reserved for the pipeline rail */
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.mono { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; letter-spacing: 0.02em; }
.dim  { color: var(--muted); }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

a { color: var(--pipe); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* ---------- header ---------- */

.top {
  max-width: calc(var(--maxw) + var(--rail));
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .cursor { color: var(--pipe); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.top nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}
.top nav a:hover { color: var(--pipe); }

/* ---------- hero ---------- */

.hero {
  max-width: calc(var(--maxw) + var(--rail));
  margin: 0 auto;
  padding: 96px 24px 88px;
}

.eyebrow { color: var(--pipe); margin: 0 0 18px; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.lede {
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 20px 0 32px;
}

.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--pipe); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--pipe); color: var(--pipe); }

/* ---------- pipeline rail (signature) ---------- */

.pipeline {
  max-width: calc(var(--maxw) + var(--rail));
  margin: 0 auto;
  padding: 0 24px 40px;
  position: relative;
}

/* the rail itself */
.pipeline::before {
  content: "";
  position: absolute;
  left: calc(24px + 7px);
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--pipe) 60%, transparent 0) repeat-y;
  background-size: 2px 10px;     /* dashed flow */
  opacity: 0.55;
}

.stage {
  position: relative;
  padding: 0 0 84px var(--rail);
}
.stage:last-child { padding-bottom: 40px; }

/* node on the rail */
.node {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--pipe);
}
.node::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--pipe);
}
.node.end::after { background: var(--signal); }
.node.end { border-color: var(--signal); }

.stage-label { color: var(--pipe); margin: 0 0 6px; }

.stage h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage > p { max-width: 60ch; }

/* ---------- work entries ---------- */

.entry { margin-top: 8px; }

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}
.entry-head h3 { font-size: 1.12rem; font-weight: 600; margin: 0; }

.entry ul { margin: 12px 0 0; padding-left: 20px; }
.entry li { margin-bottom: 8px; max-width: 62ch; }
.entry li::marker { color: var(--pipe); }

/* ---------- project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--pipe); transform: translateY(-2px); }

.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.card p { margin: 0 0 10px; font-size: 0.95rem; }
.card .tags { color: var(--muted); margin: 0; }

/* ---------- toolbox ---------- */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  margin-top: 8px;
}
.tools h3 { margin: 12px 0 2px; font-weight: 500; text-transform: uppercase; }
.tools p { margin: 0; }

/* ---------- contact ---------- */

.contact-links { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.contact-links a { font-family: "IBM Plex Mono", monospace; font-size: 0.88rem; width: fit-content; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
footer p {
  max-width: calc(var(--maxw) + var(--rail));
  margin: 0 auto;
  padding: 22px 24px;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wordmark .cursor { animation: none; }
  .card, .btn { transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  :root { --rail: 40px; }
  .hero { padding: 64px 24px 64px; }
  .stage { padding-bottom: 64px; }
}
