/* ===========================================================
   Manan Shah — AI Engineering Manager
   Design tokens: ink/amber/teal, Space Grotesk + Inter + JetBrains Mono
   Signature: the pipeline strip (CLASSIFY -> GATE -> IMPLEMENT -> SHIP)
   =========================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk');
}

:root {
  --ink: #0a0e13;
  --surface: #10161d;
  --surface-2: #171f28;
  --line: #232d38;
  --line-soft: #1a222b;
  --text: #e9edf1;
  --muted: #8a99a8;
  --muted-2: #5d6b78;
  --amber: #f3a63e;
  --amber-dim: #8a6428;
  --teal: #52d8c4;
  --teal-dim: #2c6e64;
  --red: #e2604f;

  --display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --maxw: 1180px;
  --col: 720px;
  --radius: 10px;
}

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

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(243,166,62,0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(82,216,196,0.06), transparent 60%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text); }
p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(243,166,62,0.18);
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,14,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand span { color: var(--amber); }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a {
  font-size: 0.88rem; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color .15s ease;
}
.navlinks a:hover, .navlinks a.active { color: var(--text); }
.navlinks a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--amber); border-radius: 2px;
}
.navlinks a.cta {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 14px; color: var(--text);
}
.navlinks a.cta:hover { border-color: var(--amber); color: var(--amber); }
.navtoggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 760px) {
  .navlinks {
    position: fixed; inset: 64px 0 0 0; height: auto;
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 24px 28px; gap: 20px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: all .18s ease;
    border-top: 1px solid var(--line-soft);
  }
  .navlinks.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .navtoggle { display: block; }
}

/* ---------- buttons ---------- */
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 7px; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: #16110a; }
.btn-primary:hover { background: #ffb659; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- pipeline strip (signature element) ---------- */
.pipeline {
  display: flex; align-items: stretch; gap: 0;
  margin: 56px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pipeline .stage {
  flex: 1; padding: 18px 20px; position: relative;
  border-right: 1px solid var(--line);
}
.pipeline .stage:last-child { border-right: none; }
.pipeline .stage .k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted-2); text-transform: uppercase; display: block; margin-bottom: 6px;
}
.pipeline .stage .v {
  font-family: var(--mono); font-size: 0.95rem; color: var(--text);
}
.pipeline .stage.gate { background: rgba(243,166,62,0.08); }
.pipeline .stage.gate .k { color: var(--amber); }
.pipeline .stage.gate .v { color: var(--amber); }
.pipeline .stage::after {
  content: '\2192'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 0.9rem; z-index: 2; background: var(--ink); width: 20px; text-align: center;
}
.pipeline .stage:last-child::after { content: ''; }
@media (max-width: 760px) {
  .pipeline { flex-direction: column; }
  .pipeline .stage { border-right: none; border-bottom: 1px solid var(--line); }
  .pipeline .stage::after { content: '\2193'; right: 20px; top: auto; bottom: -11px; transform: none; }
}

/* ---------- metrics bar ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 40px 0;
}
.metric { background: var(--surface); padding: 22px 20px; }
.metric .num { font-family: var(--display); font-size: 1.9rem; color: var(--teal); font-weight: 600; letter-spacing: -0.02em; }
.metric .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 48px 0; }
.section-head { margin-bottom: 40px; }
.section-head .tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; display: block;
}
hr.rule { border: none; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
a.card:hover { border-color: var(--amber); transform: translateY(-2px); }
.card .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.card .metric-line { font-family: var(--mono); color: var(--teal); font-size: 0.82rem; margin-top: 14px; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--line); padding-top: 16px; }
.pillar .n { font-family: var(--mono); color: var(--amber); font-size: 0.78rem; }
.pillar h3 { margin: 8px 0 8px; font-size: 1.05rem; }
.pillar p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- timeline ---------- */
.timeline { border-left: 1px solid var(--line); margin-left: 6px; }
.trow { position: relative; padding: 0 0 34px 28px; }
.trow::before {
  content: ''; position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--teal);
}
.trow:last-child { padding-bottom: 4px; }
.trow .when { font-family: var(--mono); font-size: 0.76rem; color: var(--muted-2); }
.trow .role { font-family: var(--display); font-size: 1.1rem; margin: 2px 0; }
.trow .org { color: var(--muted); font-size: 0.92rem; }
.trow .note { color: var(--muted); font-size: 0.88rem; margin-top: 6px; max-width: 60ch; }
.trow ul {
  margin: 10px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 72ch;
}
.trow li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ---------- case study ---------- */
.cs-header { padding: 60px 0 20px; }
.cs-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.quote-block {
  border-left: 3px solid var(--amber); padding: 4px 0 4px 22px; margin: 32px 0;
  font-size: 1.15rem; color: var(--text); font-family: var(--display); font-weight: 400; line-height: 1.5;
}
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 18px; margin: 18px 0; }
.kv dt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0 0 12px; color: var(--text); }
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 700px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
.impact { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.impact .num { font-family: var(--display); color: var(--amber); font-size: 1.5rem; }
.impact .lbl { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.faq { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.02rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-family: var(--mono); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin-top: 10px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.decisions { list-style: none; margin: 0; padding: 0; }
.decisions li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.decisions li:first-child { border-top: none; }
.decisions b { color: var(--text); }
.decisions span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

.pagenav { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 0.85rem; }
.pagenav a:hover { color: var(--amber); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line-soft); padding: 48px 0; margin-top: 60px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
footer.site .flinks { display: flex; gap: 20px; }
footer.site a { color: var(--muted); font-size: 0.88rem; }
footer.site a:hover { color: var(--amber); }
footer.site .copy { color: var(--muted-2); font-size: 0.8rem; font-family: var(--mono); }

/* ---------- misc ---------- */
.skillgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
@media (max-width: 700px) { .skillgrid { grid-template-columns: 1fr; } }
.skillrow { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.skillrow .k { font-family: var(--mono); color: var(--teal); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; display:block; margin-bottom: 4px; }
.skillrow .v { color: var(--muted); font-size: 0.9rem; }

.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .certs { grid-template-columns: 1fr; } }
.certrow { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 0.9rem; }
.certrow .org { color: var(--muted); font-size: 0.78rem; font-family: var(--mono); }

.faqlink { font-size: 0.85rem; }

.hero-wrap { padding: 70px 0 20px; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; color: var(--ink);
  background: var(--teal); padding: 3px 9px; border-radius: 4px; margin-left: 10px; vertical-align: middle;
}

/* ---------- achievements ---------- */
.achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .achievements { grid-template-columns: 1fr; } }
.achievement {
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: var(--surface);
}
.achievement.featured {
  grid-column: 1 / -1;
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(243,166,62,0.08), var(--surface));
}
.ach-icon {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--surface-2); color: var(--teal);
  flex-shrink: 0;
}
.achievement.featured .ach-icon { font-size: 1.4rem; background: rgba(243,166,62,0.15); }
.ach-aws { color: #ff9900; }
.ach-gcp { color: #4285f4; }
.ach-pub { color: var(--muted); font-size: 0.62rem; }
.ach-title { font-family: var(--display); font-size: 0.98rem; color: var(--text); }
.ach-desc { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- work cards with visuals ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.work-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.work-visual {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.work-visual img { width: 100%; height: auto; display: block; }
.work-body { padding: 22px 24px 26px; }
.work-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.work-body .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); }
.work-body h3 { margin-bottom: 10px; }
.work-body p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }
.work-body .metric-line { font-family: var(--mono); color: var(--teal); font-size: 0.82rem; margin-top: 14px; }
.work-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.company-badge {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  padding: 4px 10px; border-radius: 4px; letter-spacing: 0.04em;
}
.company-badge.shyft { background: rgba(82,216,196,0.12); color: var(--teal); border: 1px solid var(--teal-dim); }
.company-badge.conevet { background: rgba(243,166,62,0.1); color: var(--amber); border: 1px solid var(--amber-dim); }
.company-badge.bdo { background: rgba(226,96,79,0.1); color: #e88a7d; border: 1px solid #6e3a34; }
.company-badge.tm { background: rgba(82,216,196,0.08); color: #7ec8be; border: 1px solid var(--teal-dim); }
.company-badge.manastr { background: rgba(138,153,168,0.1); color: var(--muted); border: 1px solid var(--line); }

/* ---------- featured work card ---------- */
.work-card--featured {
  border-color: rgba(82,216,196,0.35);
  background: linear-gradient(160deg, rgba(82,216,196,0.05) 0%, var(--surface) 60%);
  position: relative;
}
.work-card--featured::before {
  content: 'ShyftLabs · 2025';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(90deg, var(--teal-dim), rgba(82,216,196,0.4));
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 0 var(--radius) 0 6px;
}
.work-card--featured:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(82,216,196,0.25), 0 8px 32px rgba(82,216,196,0.08);
}

/* ---------- shyft live banner ---------- */
.shyft-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 16px;
  background: rgba(82,216,196,0.07);
  border: 1px solid rgba(82,216,196,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.shyft-banner strong { color: var(--teal); }
.shyft-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,216,196,0.6); }
  50% { box-shadow: 0 0 0 5px rgba(82,216,196,0); }
}

/* ---------- about grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-block h3 { font-size: 1.05rem; margin-bottom: 10px; }
.about-block p { margin: 0; font-size: 0.92rem; }

/* ---------- contact box ---------- */
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--surface);
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- button read case study ---------- */
.btn-read-cs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
}
.btn-read-cs:hover {
  color: var(--amber);
  transform: translateX(4px);
}

/* ---------- drawer / modal ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 19, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 650px;
  max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 101;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 48px;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.15s ease;
}
.drawer-close:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}
.drawer-content {
  margin-top: 20px;
}

body.drawer-open {
  overflow: hidden;
}

