/* ============================================================
   Muhammad Khan — Portfolio
   Developer-workspace theme. 8px spacing system.
   ============================================================ */

:root {
  /* palette */
  --bg: #0B1120;
  --bg-2: #111827;
  --card: #1E293B;
  --border: #334155;
  --accent: #F97316;
  --accent-dim: #c2560f;
  --white: #F8FAFC;
  --muted: #94A3B8;
  --muted-2: #64748B;

  /* type */
  --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;

  /* spacing — 8px system */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;
  --s9: 128px;

  /* radius */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.28s var(--ease);

  --maxw: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ ambient code texture ============ */
.code-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(148, 163, 184, 0.06) 38px 39px);
  font-family: var(--font-mono);
}

.code-texture::before {
  content: "const app = {}\A Route::resource('users', UserController::class)\A git commit -m \22 ship it\22\A npm run build\A composer install\A SELECT * FROM users WHERE active = 1\A <template><div class=\22 app\22 ></div></template>\A php artisan migrate --seed\A export default { name: 'App' }\A return response()->json($data, 200)\A useEffect(() => { fetch('/api') }, [])\A CREATE INDEX idx_email ON users(email)\A git push origin production\A public function handle(Request $request)\A await axios.post('/api/quote', payload)\A Redis::remember('key', 3600, fn() => query())";
  white-space: pre;
  position: absolute;
  top: 5%;
  left: 4%;
  font-size: 13px;
  line-height: 2.9;
  color: var(--muted);
}

/* keep content above texture */
.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}

.nav.is-stuck {
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s2) var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  position: relative;
  transition: color var(--t);
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav__links a:not(.nav__cta):hover {
  color: var(--white);
}

.nav__links a:not(.nav__cta):hover::after {
  transform: scaleX(1);
}

.nav__cta {
  color: var(--white) !important;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t), color var(--t);
}

.nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--t);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s9) var(--s3) var(--s8);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s6);
  align-items: start;
}

.hero__inner {
  max-width: 640px;
}

.hero__aside {
  justify-self: end;
  padding-top: 56px;
  width: 100%;
}

.hero__photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform var(--t), box-shadow var(--t);
}

.hero__photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -30px rgba(249, 115, 22, 0.25);
}

.hero__photo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px var(--s3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.hero__photo-file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.hero__photo-frame {
  position: relative;
}

.hero__photo {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero__photo-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

.hero__photo-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--s4);
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

.hero__code {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  overflow-x: auto;
}

.hero__code-line.indent {
  padding-left: var(--s3);
}

.tok-kw {
  color: #c084fc;
}

.tok-var {
  color: #60a5fa;
}

.tok-prop {
  color: var(--muted);
}

.tok-str {
  color: #86efac;
}

.tok-op,
.tok-brace {
  color: var(--accent);
}

.hero__title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s3);
  min-height: 1.05em;
}

.type-caret {
  display: inline-block;
  width: 4px;
  height: 0.92em;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: text-bottom;
  transform: translateY(2px);
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: var(--s5);
}

.hero__actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s7);
}

/* ============ STATS BAND (full width) ============ */
.stats-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s6) var(--s3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  text-align: center;
}

.stat {
  position: relative;
  padding: var(--s2) var(--s3);
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border);
}

.stat__num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.stat__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t), color var(--t);
  will-change: transform;
}

.btn__ico {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn__bracket {
  font-weight: 600;
}

.btn--primary {
  background: var(--accent);
  color: #1a0f05;
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(249, 115, 22, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s8) var(--s3);
}

.section--alt {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--alt>* {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  margin-bottom: var(--s6);
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s2);
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s1);
}

.section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* ============ REPO CARDS ============ */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}

.repo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  /* button reset */
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  padding: 0;
}

.repo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.repo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
  z-index: 2;
}

.repo:hover {
  transform: translateY(-4px);
  border-color: var(--muted-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.repo:hover::before {
  transform: scaleX(1);
}

.repo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--s3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.repo__dots {
  display: inline-flex;
  gap: 6px;
}

.repo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.repo__dots i:first-child {
  background: #f87171;
}

.repo__dots i:nth-child(2) {
  background: #fbbf24;
}

.repo__dots i:nth-child(3) {
  background: #34d399;
}

.repo__file {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge--live {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge--private {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
}

.badge--archived {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.repo__body {
  padding: var(--s3);
  flex: 1;
}

.repo__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
}

.repo__desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: var(--s3);
}

.repo__stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo__stack li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  transition: color var(--t), border-color var(--t);
}

.repo:hover .repo__stack li {
  border-color: var(--muted-2);
}

.repo__foot {
  padding: 12px var(--s3);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repo__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.repo__open {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t), transform var(--t);
}

.repo:hover .repo__open,
.repo:focus-visible .repo__open {
  opacity: 1;
  transform: none;
}

/* ============ TERMINAL ============ */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--s3);
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.terminal__title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.terminal__body {
  padding: var(--s4);
  font-family: var(--font-mono);
}

.terminal__cmd {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.terminal__prompt {
  color: var(--accent);
  margin-right: 8px;
}

.terminal__cmd--last {
  margin-top: var(--s3);
  margin-bottom: 0;
}

.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stack-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.stack-col__h {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.stack-col ul {
  list-style: none;
}

.stack-col li {
  font-size: 14px;
  color: var(--white);
  padding: 5px 0;
}

.stack-col .ok {
  color: #34d399;
  margin-right: 8px;
}

/* ============ CONTACT FORM ============ */
.terminal--form {
  max-width: 640px;
}

.field {
  margin-bottom: var(--s3);
}

.field label {
  display: block;
  margin-bottom: 8px;
}

.field__prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.btn--exec {
  margin-top: var(--s1);
}

.form__status {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: var(--s2);
  min-height: 20px;
}

.form__status.ok {
  color: #34d399;
}

.form__status.err {
  color: #f87171;
}

.contact-alt {
  text-align: center;
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.contact-alt__link {
  transition: color var(--t);
}

.contact-alt__link:hover {
  color: var(--accent);
}

.contact-alt__sep {
  margin: 0 12px;
  color: var(--muted-2);
}

/* ============ TIMELINE (git log) ============ */
.timeline {
  list-style: none;
  position: relative;
  padding-left: var(--s5);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.commit {
  position: relative;
  padding-bottom: var(--s5);
}

.commit:last-child {
  padding-bottom: 0;
}

.commit__node {
  position: absolute;
  left: calc(-1 * var(--s5) + 0px);
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: box-shadow var(--t), background var(--t);
}

.commit:hover .commit__node {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.15);
}

.commit__hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-right: 12px;
}

.commit__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.commit__title {
  font-size: 19px;
  font-weight: 700;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.commit__desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: var(--s8);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s7) var(--s3);
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr auto;
  align-items: start;
}

.footer__name {
  font-size: 20px;
  font-weight: 700;
}

.footer__role {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.footer__git {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
}

.tok-orange {
  color: var(--accent);
}

.footer__ready {
  color: #34d399;
}

.footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

/* ============ PROJECT MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s var(--ease);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.32s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--s3);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__file {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.modal__close {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__close:hover {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}

.modal__scroll {
  overflow-y: auto;
}

.modal__gallery {
  display: flex;
  flex-direction: column;
}

.modal__gallery img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.modal__gallery:empty {
  display: none;
}

.modal__content {
  padding: var(--s4);
}

.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.modal__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}

.modal__desc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: var(--s4);
}

.modal__block {
  margin-bottom: var(--s4);
}

.modal__h {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s2);
}

.modal__highlights {
  list-style: none;
}

.modal__highlights li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 15px;
}

.modal__highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal__actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s2);
}

.modal__actions:empty {
  display: none;
}

/* ============ TESTIMONIALS ============ */
.tst {
  max-width: 760px;
  margin: 0 auto;
}

.tst__viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.tst__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.tst__card {
  flex: 0 0 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0;
}

.tst__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--s3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.tst__commit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: auto;
}

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

.tst__stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.tst__quote {
  padding: var(--s5) var(--s4) var(--s3);
  font-size: 19px;
  line-height: 1.6;
  color: var(--white);
  font-weight: 500;
  margin: 0;
  position: relative;
}

.tst__quote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 60px;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.tst__by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--s4) var(--s4);
}

.tst__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #1a0f05;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tst__meta {
  display: flex;
  flex-direction: column;
}

.tst__meta strong {
  font-size: 15px;
  color: var(--white);
}

.tst__meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.tst__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s4);
}

.tst__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color var(--t), color var(--t), transform var(--t);
}

.tst__arrow svg {
  width: 20px;
  height: 20px;
}

.tst__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.tst__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tst__dots {
  display: flex;
  gap: 10px;
}

.tst__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t), width var(--t);
}

.tst__dot.is-active {
  background: var(--accent);
  width: 26px;
  border-radius: 999px;
}

/* ============ CTA BAND ============ */
.cta {
  max-width: var(--maxw);
  margin: var(--s8) auto 0;
  padding: 0 var(--s3);
}

.cta__inner {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8) var(--s4);
  text-align: center;
}

.cta__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.18), transparent 70%);
  pointer-events: none;
}

.cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--s2);
  position: relative;
}

.cta__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
  position: relative;
}

.cta__sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto var(--s5);
  position: relative;
}

.cta__actions {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============ FOOTER SOCIAL ============ */
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: var(--s3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), transform var(--t), background var(--t);
}

.footer__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  background: rgba(249, 115, 22, 0.08);
}

.footer__social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .stack-cols {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .hero__aside {
    justify-self: start;
    order: -1;
  }

  .hero__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 340px;
  }

  .hero__photo-card {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .stats-band__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4) var(--s2);
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .tst__quote {
    font-size: 17px;
    padding: var(--s4) var(--s3) var(--s2);
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: var(--s3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }

  .nav__links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__cta {
    align-self: stretch;
    text-align: center;
  }

  .hero {
    padding: var(--s7) var(--s3) var(--s6);
  }

  .hero__stats {
    gap: var(--s4);
    flex-wrap: wrap;
  }

  .hero__stats dt {
    font-size: 26px;
  }

  .section {
    padding: var(--s7) var(--s3);
  }

  .terminal__body {
    padding: var(--s3);
  }

  .code-texture::before {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero__stats {
    gap: var(--s3);
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}