/* ============================================================
   Dev Parekh - Portfolio
   Design system + layout. Self-contained, no build step.
   ============================================================ */

:root {
  /* palette */
  --bg:        #0A0B0D;
  --bg-soft:   #0E1014;
  --surface:   #131720;
  --surface-2: #181D27;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:   #ECEEF1;
  --muted:  #9AA1AC;
  --faint:  #626B78;

  --accent:    #6C8CFF;   /* electric indigo: technical + trust */
  --accent-2:  #4ADE80;   /* mint: live / signal / positive */
  --accent-3:  #C7A6FF;   /* soft violet for gradients */
  --accent-soft: rgba(108, 140, 255, 0.14);

  --glow: 0 0 0 1px rgba(108,140,255,0.25), 0 18px 60px -20px rgba(108,140,255,0.35);

  --radius:   16px;
  --radius-sm: 10px;
  --maxw: 1120px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(108,140,255,0.3); color: #fff; }

/* ---------- background texture ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 80%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
}
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.bg-glow::before {
  width: 620px; height: 620px; top: -240px; left: -120px;
  background: radial-gradient(circle, rgba(108,140,255,0.5), transparent 70%);
}
.bg-glow::after {
  width: 560px; height: 560px; top: 12%; right: -180px;
  background: radial-gradient(circle, rgba(74,222,128,0.22), transparent 70%);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; position: relative; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.7;
}
h2.title { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.01em; }
.brand-name { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); flex-shrink: 0; }
.brand .role { color: var(--faint); font-weight: 450; font-size: 13px; font-family: var(--font-mono); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px; border: 1px solid var(--border-2); border-radius: 999px;
  color: var(--text) !important; font-size: 14px; transition: all .2s; background: rgba(255,255,255,0.02);
}
.nav-cta:hover { border-color: var(--accent); box-shadow: var(--glow); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }

/* ---------- hero ---------- */
.hero { padding: 168px 0 72px; }
.status {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); margin-bottom: 28px; font-family: var(--font-mono);
}
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); position: relative; }
.status .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent-2); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02;
  font-weight: 680; max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 26px; font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 60ch; line-height: 1.55;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px;
  border-radius: 999px; font-size: 15px; font-weight: 550; transition: all .22s; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #0a0b16; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

.hero-meta {
  margin-top: 46px; display: flex; flex-wrap: wrap; gap: 30px 46px;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.hero-meta .stat .n {
  font-size: 26px; font-weight: 680; letter-spacing: -0.02em;
  font-family: var(--font-mono); color: var(--text);
}
.hero-meta .stat .n span { color: var(--accent); }
.hero-meta .stat .l { font-size: 13px; color: var(--faint); margin-top: 3px; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden; background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 11px; padding: 0 28px;
  font-family: var(--font-mono); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.marquee-item::after { content: "•"; color: var(--accent); opacity: .6; margin-left: 28px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- work / filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter-btn {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 14px; transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-2); }
.filter-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  padding: 28px; transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(108,140,255,0.10), transparent 45%);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 60px -34px rgba(0,0,0,0.9); }
.card:hover::before { opacity: 1; }
.card.featured { grid-column: span 2; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); background: rgba(255,255,255,0.02);
}
.tag.live { color: var(--accent-2); border-color: rgba(74,222,128,0.3); }
.tag.role { color: var(--accent); border-color: rgba(108,140,255,0.3); }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(108,140,255,0.25);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card .what { color: var(--muted); font-size: 15px; line-height: 1.6; }
.featured .what { font-size: 16px; max-width: 64ch; }

.card-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stack-mini { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-mini span {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint);
}
.stack-mini span:not(:last-child)::after { content: "·"; margin-left: 7px; color: var(--border-2); }
.read-more {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent);
  font-size: 14px; font-weight: 550; white-space: nowrap; transition: gap .2s;
}
.card:hover .read-more { gap: 11px; }

/* metric chips inside featured cards */
.metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.metric .v { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); }
.metric .v span { color: var(--accent-2); }
.metric .k { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* ---------- modal / detail ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5,6,8,0.7); backdrop-filter: blur(6px);
  padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  max-width: 820px; margin: 20px auto; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 20px; padding: 0; overflow: hidden;
  animation: rise .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  padding: 30px 36px 24px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(108,140,255,0.07), transparent);
  position: relative;
}
.modal-head .card-tags { margin-bottom: 14px; }
.modal-head h3 { font-size: 27px; letter-spacing: -0.025em; }
.modal-head .what { margin-top: 12px; color: var(--muted); font-size: 16px; }
.modal-close {
  position: absolute; top: 22px; right: 24px; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text);
  font-size: 20px; display: grid; place-items: center; transition: all .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.modal-body { padding: 30px 36px 38px; }
.qa { margin-bottom: 26px; }
.qa h4 {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 9px;
}
.qa h4 .num { color: var(--faint); }
.qa p { color: var(--muted); font-size: 15.5px; line-height: 1.68; }
.qa ul { margin: 10px 0 0; padding-left: 0; list-style: none; }
.qa li { color: var(--muted); font-size: 15px; line-height: 1.55; padding: 6px 0 6px 24px; position: relative; }
.qa li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }
.modal-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal-stack .tag { color: var(--text); border-color: var(--border-2); }
.qa.value-block { margin-top: 28px; padding: 22px; border: 1px solid rgba(74,222,128,0.22); border-radius: 14px; background: linear-gradient(150deg, rgba(74,222,128,0.07), transparent); margin-bottom: 6px; }
.qa.value-block h4 { color: var(--accent-2); }
.qa.value-block p { color: var(--text); }
.note {
  margin-top: 14px; font-size: 13px; color: var(--faint); font-style: italic;
  border-left: 2px solid var(--border-2); padding-left: 12px;
}

/* ---------- startup feature ---------- */
.startup {
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  background: linear-gradient(150deg, rgba(74,222,128,0.06), var(--surface) 40%, var(--bg-soft));
  display: grid; grid-template-columns: 1.1fr 0.9fr;
}
.startup-main { padding: 48px; }
.startup .badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 12.5px; color: var(--accent-2); border: 1px solid rgba(74,222,128,0.3);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.startup h3 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; }
.startup .lede { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 52ch; line-height: 1.62; }
.startup-points { margin-top: 26px; display: grid; gap: 14px; }
.startup-points .pt { display: flex; gap: 13px; align-items: flex-start; }
.startup-points .pt svg { width: 19px; height: 19px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.startup-points .pt span { color: var(--muted); font-size: 15px; }
.startup-points .pt b { color: var(--text); font-weight: 600; }
.startup-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.startup-side { padding: 40px; border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.timeline-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--border-2); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-2);
}
.tl-item.done::before { border-color: var(--accent-2); background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.tl-item.now::before { border-color: var(--accent); background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tl-item .s { font-size: 14.5px; color: var(--text); font-weight: 550; }
.tl-item .d { font-size: 13px; color: var(--faint); margin-top: 2px; }

/* ---------- stack section ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stack-col h4 {
  font-size: 13px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.stack-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.stack-col li { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.stack-col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .65; flex-shrink: 0; }

/* ---------- experience strip ---------- */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exp-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.exp-card .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.exp-card h4 { font-size: 18px; margin: 12px 0 4px; }
.exp-card .org { color: var(--muted); font-size: 14px; }
.exp-card p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.55; }

/* ---------- resume ---------- */
.resume-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.resume-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.resume-preview { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.resume-preview iframe { width: 100%; height: 780px; border: 0; display: block; }
@media (max-width: 560px) { .resume-preview iframe { height: 520px; } }

/* ---------- looking-for / contact ---------- */
.looking {
  border: 1px solid var(--border); border-radius: 22px; padding: 48px;
  background: linear-gradient(150deg, var(--surface), var(--bg-soft));
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.looking h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; }
.looking p { color: var(--muted); margin-top: 16px; font-size: 16px; line-height: 1.62; }
.looking ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.looking li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.looking li svg { width: 19px; height: 19px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.looking li b { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.035em; }
.contact h2 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact p { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 50ch; margin-inline: auto; }
/* contact form */
.contact-form { max-width: 540px; margin: 38px auto 0; text-align: left; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-row input { flex: 1; min-width: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { margin-bottom: 16px; }
.form-submit { width: 100%; justify-content: center; border: none; cursor: pointer; }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 14px; font-size: 14.5px; text-align: center; min-height: 1px; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #ff8b8b; }
.contact-or {
  margin: 30px auto 18px; font-size: 13px; color: var(--faint); font-family: var(--font-mono);
  display: flex; align-items: center; gap: 14px; max-width: 360px;
}
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.contact-links { margin-top: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.clink {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  border: 1px solid var(--border-2); border-radius: 999px; font-size: 15px; transition: all .2s;
  background: var(--surface);
}
.clink:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--glow); }
.clink svg { width: 18px; height: 18px; }
.clink.primary { background: var(--accent); color: #0a0b16; border-color: transparent; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 34px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-inner .c { color: var(--faint); font-size: 13.5px; font-family: var(--font-mono); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--text); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 1; }
  .startup { grid-template-columns: 1fr; }
  .startup-side { border-left: none; border-top: 1px solid var(--border); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 1fr; }
  .looking { grid-template-columns: 1fr; padding: 34px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; right: 16px;
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 18px 22px; gap: 16px;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { padding: 130px 0 50px; }
  .startup-main, .startup-side { padding: 30px; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px 32px; }
  .form-row { flex-direction: column; }
  /* stack the tagline under the name so the nav does not clutter on phones */
  .brand { flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand .role { font-size: 11px; }
  .role-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
