/* =========================================================
   Journey to AI — design system
   Inspired by NP Digital's structure (sticky nav, dark hero,
   card grids, big type), repainted in neon-blue / black / grey.
   Mobile-first; everything fluid via clamp().
   ========================================================= */

:root {
  /* palette */
  --black:        #0A0A0A;
  --black-2:      #111114;
  --grey-900:     #18181B;
  --grey-800:     #1F1F23;
  --grey-700:     #2A2A30;
  --grey-500:     #6B6B73;
  --grey-300:     #B5B5BD;
  --grey-200:     #D4D4DA;
  --grey-100:     #EDEDF1;
  --white:        #FFFFFF;
  --neon:         #00E5FF;          /* primary accent */
  --neon-2:       #00B7FF;          /* secondary accent (gradient) */
  --neon-glow:    0 0 0 1px rgba(0,229,255,.4), 0 0 22px rgba(0,229,255,.35);

  /* type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* fluid scale (mobile -> desktop) */
  --fs-xxl: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-xl:  clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  --fs-lg:  clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-md:  clamp(1rem, .25vw + .9rem, 1.125rem);
  --fs-sm:  .9375rem;
  --fs-xs:  .8125rem;

  /* spacing */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3rem, 8vw, 6rem);
  --max-w: 1200px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--white);
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--light { background: var(--grey-100); color: var(--grey-900); }
.section--light h1, .section--light h2, .section--light h3 { color: var(--black); }
.section--alt { background: linear-gradient(180deg, var(--black) 0%, var(--grey-900) 100%); }

/* ---------------- Top utility bar ---------------- */
:root { --social-h: 38px; }
.social-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--social-h);
  background: var(--black-2);
  border-bottom: 1px solid var(--grey-800);
  color: var(--grey-200);
  font-size: .82rem;
}
.social-bar::after {
  /* hairline neon accent — connects the bar to the brand colors */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,.55) 35%, rgba(0,229,255,.55) 65%, transparent 100%);
  pointer-events: none;
}
.social-bar__inner {
  /* Full-bleed: pills sit at the extreme right of the viewport, not inside
     the 1200px content container. */
  width: 100%;
  height: 100%;
  display: flex; align-items: center; gap: .5rem;
  padding-inline: var(--gutter);
  justify-content: flex-end;
}
.social-pill {
  --pill-color: var(--grey-100);
  --pill-icon: var(--grey-300);
  --pill-glow: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem;
  background: transparent;
  color: var(--pill-color) !important;
  border: 1px solid var(--grey-700);
  border-radius: 999px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.social-pill svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--pill-icon); transition: color .15s ease; }
.social-pill:hover {
  color: var(--pill-color) !important;
  border-color: var(--pill-color);
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px var(--pill-color), 0 0 14px var(--pill-glow);
}
.social-pill:hover svg { color: var(--pill-color); }
/* LinkedIn — official blue. */
.social-pill--linkedin {
  --pill-color: #0A66C2;
  --pill-icon:  #0A66C2;
  --pill-glow:  rgba(10,102,194,.45);
  border-color: rgba(10,102,194,.45);
}
/* Gmail / email — Gmail red. */
.social-pill--email {
  --pill-color: #EA4335;
  --pill-icon:  #EA4335;
  --pill-glow:  rgba(234,67,53,.45);
  border-color: rgba(234,67,53,.45);
}
/* X / Twitter — black on light, white on dark. We're on dark, so use white. */
.social-pill--twitter {
  --pill-color: #FFFFFF;
  --pill-icon:  #FFFFFF;
  --pill-glow:  rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.45);
}
/* Instagram — brand magenta. */
.social-pill--instagram {
  --pill-color: #E4405F;
  --pill-icon:  #E4405F;
  --pill-glow:  rgba(228,64,95,.45);
  border-color: rgba(228,64,95,.45);
}
@media (max-width: 560px) {
  .social-bar__label span:not(.social-bar__pulse) { display: none; }
  .social-bar__inner { gap: .5rem; }
  .social-pill { padding: .22rem .55rem; font-size: .75rem; }
}

/* ---------------- Sign-in modal ---------------- */
.signin-modal[hidden] { display: none; }
.signin-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 1rem;
}
.signin-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  animation: signin-fade .2s ease;
}
.signin-modal__panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--grey-900);
  color: var(--grey-100);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,229,255,.18), 0 0 60px rgba(0,229,255,.15);
  animation: signin-pop .22s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes signin-fade { from{opacity:0} to{opacity:1} }
@keyframes signin-pop  { from{opacity:0; transform:translateY(8px) scale(.98)} to{opacity:1; transform:none} }
.signin-modal__close {
  position: absolute; top: .5rem; right: .5rem;
  width: 36px; height: 36px;
  background: transparent; border: 0; color: var(--grey-300);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  border-radius: 999px;
}
.signin-modal__close:hover { background: var(--grey-800); color: var(--white); }
.signin-modal__brand { margin-bottom: 1rem; }
.signin-modal__logo { height: 40px; width: auto; margin: 0 auto; }
.signin-modal__title { margin: .5rem 0 .25rem; font-size: 1.35rem; }
.signin-modal__lede  { margin: 0 0 1.5rem; color: var(--grey-300); font-size: .95rem; }
.signin-modal__gbtn  { display: flex; justify-content: center; min-height: 44px; }
.signin-modal__alt {
  display: block; margin-top: 1rem; color: var(--grey-300); font-size: .85rem;
}
.signin-modal__alt span { color: var(--neon); }
.signin-modal__alt:hover span { text-decoration: underline; }
.signin-modal__terms {
  margin: 1.25rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--grey-800);
  color: var(--grey-500); font-size: .78rem;
}
.signin-modal__warn {
  background: rgba(234,67,53,.08);
  border: 1px solid rgba(234,67,53,.35);
  color: var(--grey-100); border-radius: var(--radius-sm);
  padding: .75rem; font-size: .85rem; text-align: left;
}
.signin-modal__setup {
  text-align: left;
  background: rgba(0,229,255,.05);
  border: 1px solid rgba(0,229,255,.30);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: .88rem;
  color: var(--grey-200);
}
.signin-modal__setup-title {
  margin: 0 0 .5rem;
  color: var(--neon);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.signin-modal__setup-body { margin: 0 0 .75rem; color: var(--grey-300); }
.signin-modal__setup-list { margin: 0; padding-left: 1.1rem; }
.signin-modal__setup-list li { margin: .35rem 0; line-height: 1.45; }
.signin-modal__setup-list code {
  background: var(--black-2); border: 1px solid var(--grey-800);
  padding: .05rem .35rem; border-radius: 4px; font-size: .82em;
  word-break: break-all;
}
.signin-modal__setup-list a { color: var(--neon); text-decoration: underline; text-underline-offset: 2px; }
.signin-modal__setup-note { margin: .75rem 0 0; color: var(--grey-500); font-size: .78rem; }
.signin-modal__setup-note a { color: var(--grey-200); text-decoration: underline; }

/* Skip link — visually hidden until focused. */
.skip-link {
  position: absolute; top: 8px; left: 8px;
  background: var(--neon); color: var(--black);
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 100;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: fixed;
  inset: var(--social-h) 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 72px;
  padding-inline: var(--gutter);
  background: transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.brand-logo { height: 44px; width: auto; display: block; }
.site-header.is-scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--grey-800);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--white); font-weight: 800; letter-spacing: .02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--neon), var(--neon-2) 60%, transparent 70%);
  box-shadow: var(--neon-glow);
}
.brand-name { font-size: .95rem; text-transform: uppercase; }
.brand-name em { color: var(--neon); font-style: normal; }

/* Center-aligned nav. The brand sits at left and the user-chip (when present)
   floats to the right, while the tabs themselves are perfectly centered.    */
.site-header { justify-content: space-between; gap: 1rem; }
.nav {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--grey-800);
  border-radius: 999px;
  padding: .25rem .35rem;
  backdrop-filter: blur(6px);
}
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--grey-200);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--black);
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  box-shadow: var(--neon-glow), 0 6px 18px rgba(0,229,255,.25);
  transform: translateY(-1px);
}
.nav a.active::after,
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 50%; bottom: -10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon);
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--neon);
}
.user-chip { margin-left: auto; }

/* hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0; padding: .5rem;
  width: 44px; height: 44px; cursor: pointer;
}
.nav-toggle span { display:block; width:22px; height:2px; background: var(--white); margin:4px auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    /* Override desktop's centered floating pill — full-width drop sheet on mobile. */
    position: fixed; left: 0; right: 0; top: calc(var(--social-h) + 72px);
    transform: translate(0, -12px);
    background: rgba(10,10,10,.97);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter);
    border: 0; border-bottom: 1px solid var(--grey-800);
    border-radius: 0;
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.is-open { transform: translate(0,0); opacity: 1; pointer-events: auto; }
  .nav a {
    padding: .9rem 1rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--grey-800);
    font-size: 1.05rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active,
  .nav a[aria-current="page"] {
    transform: none;
  }
  .nav a.active::after,
  .nav a[aria-current="page"]::after { display: none; }
  .user-chip { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--social-h) + clamp(7rem, 14vw, 10rem)) var(--section-y);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(60% 80% at 10% 90%, rgba(0,183,255,.12), transparent 60%),
    var(--black);
}
.hero::before {
  /* subtle circuit grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 80%);
  pointer-events: none;
}
.hero h1 {
  max-width: 18ch;
}
.hero h1 .accent { color: var(--neon); }
.hero p.lede {
  font-size: var(--fs-lg);
  color: var(--grey-200);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn--primary { background: var(--neon); color: var(--black); }
.btn--primary:hover { box-shadow: var(--neon-glow); transform: translateY(-1px); color: var(--black); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--grey-700); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn--block { width: 100%; }

/* ---------------- Cards / pill grid ---------------- */
.pill-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1rem; text-align: center;
  border-radius: 999px;
  background: var(--grey-900);
  color: var(--grey-100);
  border: 1px solid var(--grey-800);
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pill:hover { border-color: var(--neon); color: var(--neon); box-shadow: var(--neon-glow); }

.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  position: relative;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: .75rem;
}
.card:hover { border-color: var(--neon); transform: translateY(-2px); box-shadow: var(--neon-glow); }
.card .meta { color: var(--grey-300); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.card h3 { color: var(--white); margin: 0; }
.card p { color: var(--grey-200); margin: 0; }
.card .read-more { margin-top: auto; color: var(--neon); font-weight: 600; }

.tag {
  display: inline-block;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,229,255,.08); color: var(--neon);
  padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid rgba(0,229,255,.25);
  margin-right: .25rem;
}

/* ---------------- Article ---------------- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2.5rem; }
.prose p, .prose ul, .prose ol { font-size: 1.05rem; color: var(--grey-100); }
.prose code { background: var(--grey-800); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.prose pre { background: var(--black-2); border: 1px solid var(--grey-800); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--grey-800);
  padding: 3rem var(--gutter) 2rem;
  color: var(--grey-300);
  font-size: .9rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: var(--max-w); margin: 0 auto; }
.footer-grid h4 { color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { color: var(--grey-300); display: block; padding: .25rem 0; }
.footer-grid a:hover { color: var(--neon); }
.footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--grey-800); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--grey-500); }

/* ---------------- Login pane ---------------- */
.login-pane {
  max-width: 460px; margin: 0 auto;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.login-pane h2 { margin-top: 0; }
.login-pane .g_id_signin { display: inline-block; }

.user-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .25rem .25rem .75rem;
  border-radius: 999px;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  color: var(--grey-100); font-size: .85rem;
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.user-chip .signout { color: var(--grey-300); margin-left: .35rem; }

/* ---------------- Utility detail / runner ---------------- */
.utility-runner {
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.utility-runner textarea, .utility-runner input, .utility-runner select {
  width: 100%; min-height: 48px;
  background: var(--black-2); color: var(--grey-100);
  border: 1px solid var(--grey-700); border-radius: var(--radius-sm);
  padding: .75rem 1rem; font-size: 1rem; font-family: inherit;
}
.utility-runner textarea { min-height: 140px; resize: vertical; }
.utility-runner label { display: block; margin-bottom: .35rem; color: var(--grey-300); font-size: .9rem; }
.utility-runner .field + .field { margin-top: 1rem; }
.utility-runner .output {
  margin-top: 1rem; padding: 1rem; background: var(--black-2);
  border: 1px dashed var(--grey-700); border-radius: var(--radius-sm);
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem;
}

/* ---------------- Contact section ---------------- */
.contact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.contact-card {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem 1.25rem;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-md);
  color: var(--grey-100);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-card--link:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
  box-shadow: var(--neon-glow);
  color: var(--white);
}
.contact-card__label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neon);
}
.contact-card__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-icon { width: 16px; height: 16px; }

/* ---------------- Section header ---------------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--neon); margin-bottom: .75rem;
}

/* ---------------- Blog index cards ---------------- */
.blog-card { padding: 0; overflow: hidden; }
.blog-card > .meta,
.blog-card > h3,
.blog-card > p,
.blog-card > .read-more,
.blog-card > div { padding-inline: 1.5rem; }
.blog-card > .meta        { padding-top: 1.25rem; }
.blog-card > .read-more   { padding-bottom: 1.5rem; }
.blog-card__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grey-800);
  border-bottom: 1px solid var(--grey-800);
}
.blog-card__hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .35s ease, filter .35s ease;
  filter: saturate(.95) brightness(.92);
}
.blog-card:hover .blog-card__hero img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
.blog-card__hero--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--grey-800) 0%, var(--black) 60%, var(--neon) 180%);
}
.blog-card__hero-fallback {
  font-family: var(--font-display, system-ui);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--neon);
  text-shadow: 0 0 24px rgba(0, 200, 255, .35);
  line-height: 1;
}

/* ---------------- Single blog post ---------------- */
.blog-post__hero h1 .accent { color: var(--neon); }
.blog-meta-row {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  color: var(--grey-300); font-size: .92rem;
  margin-top: .5rem;
}
.blog-meta-row span:first-child {
  color: var(--white); font-weight: 600;
}
.blog-post__hero-img {
  margin: 0 auto;
  max-width: var(--max-w);
  padding-inline: var(--gutter);
}
.blog-post__hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-800);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(0,229,255,.10);
}
.blog-post__hero-img figcaption {
  margin-top: .65rem;
  color: var(--grey-500);
  font-size: .82rem;
  text-align: center;
}
.blog-post__body .prose h2 { color: var(--white); }
.blog-post__body .prose h2::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 14px var(--neon);
  margin-right: .65rem; vertical-align: middle;
  transform: translateY(-3px);
}
.blog-post__body .prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(0,229,255,.05);
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--grey-100);
  font-style: italic;
}
.blog-post__body .prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-800);
  margin: 1.5rem auto;
}
.blog-post__body .prose figure { margin: 1.5rem 0; }
.blog-post__body .prose figcaption {
  color: var(--grey-500);
  font-size: .85rem;
  text-align: center;
  margin-top: .5rem;
}
.blog-post__body .prose hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--grey-800) 30%, var(--grey-800) 70%, transparent);
  margin: 2.5rem 0;
}
.blog-post__nav {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--grey-800);
}

/* =========================================================
   About page — glass-card aesthetic mirrored from samipshah.com
   (apex of the live site), repainted in neon-blue / black / grey.
   ========================================================= */
:root {
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --glass-bg:     rgba(255, 255, 255, .04);
  --glass-bg-2:   rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  --glass-blur:   blur(14px);
}

/* ---- Section header (// label + heading with neon-gradient span) ---- */
.about-section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.about-section-header .label {
  display: block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--neon);
  margin: 0 0 .5rem;
  letter-spacing: 0;
}
.about-section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 0;
}
.about-section-header h2 .accent {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-section-header .sub {
  margin: .65rem 0 0;
  color: var(--grey-300);
  font-size: 1rem;
}

/* ---- Hero (split: copy left, portrait + stats right) ---- */
.about-hero {
  position: relative;
  padding-block: calc(var(--social-h) + clamp(6rem, 11vw, 8rem)) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 85% 12%, rgba(0,229,255,.12), transparent 60%),
    radial-gradient(40% 50% at 12% 88%, rgba(0,183,255,.10), transparent 60%),
    var(--black);
}
.about-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
  pointer-events: none;
}
.about-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) {
  .about-hero__grid { grid-template-columns: 1fr; }
}
.about-hero__copy .label {
  display: block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--neon);
  margin: 0 0 .6rem;
}
.about-hero__copy h1 {
  margin: 0 0 .9rem;
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}
.about-hero__copy h1 .accent {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-hero__copy .lede {
  font-size: var(--fs-lg);
  color: var(--grey-200);
  max-width: 56ch;
  margin: 0 0 1.5rem;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: .5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--neon);
}
.tech-list span { white-space: nowrap; }

.about-hero__aside {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* ---- Glass-card primitive (mirrors live site) ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
}
.glass-card--interactive { transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease; }
.glass-card--interactive:hover {
  border-color: rgba(0, 229, 255, .45);
  background: var(--glass-bg-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 229, 255, .18);
}

/* ---- Portrait card (top-right of hero, scaled to 80% & shifted lower) ---- */
.about-portrait {
  position: relative;
  margin: 0;
  padding: .85rem;
  border-radius: 16px;
  display: grid;
  gap: .6rem;
  width: 80%;
  max-width: 360px;
  justify-self: end;
  margin-top: clamp(2rem, 6vw, 4.5rem);
}
@media (max-width: 900px) {
  .about-portrait { justify-self: center; margin-top: 1rem; }
}
.about-portrait__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--grey-900) 0%, var(--black-2) 100%);
  border: 1px solid rgba(0, 229, 255, .25);
}
.about-portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* ---- Stat grid (under the portrait, right pane) ---- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 80%;
  max-width: 360px;
  justify-self: end;
}
@media (max-width: 900px) {
  .about-stats { justify-self: center; width: 100%; max-width: none; }
}
.about-stat {
  padding: 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: .25rem;
  text-align: left;
}
.about-stat__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-stat__label {
  color: var(--grey-300);
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1.35;
}

/* ---- Experience timeline ---- */
.about-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2rem;
  list-style: none;
}
.about-timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon) 0%, var(--neon-2) 50%, rgba(0,183,255,.15) 100%);
  border-radius: 999px;
}
.about-timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}
.about-timeline__item:last-child { margin-bottom: 0; }
.about-timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.4rem;
  margin-left: -.25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--neon);
  border: 2px solid var(--black);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .15), 0 0 18px rgba(0, 229, 255, .55);
}
.about-timeline__card { padding: 1.25rem 1.4rem; }
.about-timeline__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .35rem 1rem;
  margin-bottom: .25rem;
}
.about-timeline__company {
  margin: 0;
  font-size: 1.05rem;
  color: var(--white);
}
.about-timeline__period {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--neon);
  white-space: nowrap;
}
.about-timeline__role {
  margin: 0 0 .25rem;
  color: var(--grey-100);
  font-weight: 600;
  font-size: .98rem;
}
.about-timeline__product {
  margin: 0 0 .65rem;
  color: var(--grey-300);
  font-size: .88rem;
}
.about-timeline__product .sep { color: var(--grey-500); margin: 0 .45rem; }
.about-timeline__location {
  margin: 0;
  color: var(--grey-500);
  font-family: var(--font-mono);
  font-size: .78rem;
}

/* ---- Skill cards ---- */
.about-skills {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.skill-card {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.skill-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.skill-card__name {
  margin: 0;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
}
.skill-card__pct {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .92rem;
  color: var(--neon);
}
.skill-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-2) 0%, var(--neon) 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, .5);
  border-radius: inherit;
}
.skill-card__focus {
  margin: 0;
  font-size: .82rem;
  color: var(--grey-300);
}
.skill-card__focus em {
  font-style: normal;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.skill-card__chips {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.skill-card__chips li {
  font-family: var(--font-mono);
  font-size: .72rem;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .25);
  color: var(--neon);
  padding: .25rem .65rem;
  border-radius: 999px;
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- About-me heading (aesthetic, no // label) ---- */
.about-me .about-hero__copy h1 {
  position: relative;
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2.75rem, 5vw + 1rem, 4.5rem);
  letter-spacing: -.01em;
  line-height: 1.05;
  padding-bottom: .9rem;
}
.about-me .about-hero__copy h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 96px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon-2) 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, .55);
}
.about-me__prose { margin-top: 1.5rem; max-width: 62ch; }
.about-me__prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--white);
}

/* ---- Why this site exists (separate aesthetic section) ---- */
.about-why { padding-block: clamp(3rem, 6vw, 5rem); }
.about-why__card {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(0,183,255,.08), transparent 60%),
    var(--glass-bg);
}
.about-why__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--neon) 0%, var(--neon-2) 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, .55);
}
.about-why__header {
  margin-bottom: 1rem;
  padding-left: .25rem;
}
.about-why__header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin: 0;
  letter-spacing: -.01em;
}
.about-why__header h2 .accent {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-why__kicker {
  margin: .55rem 0 0;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .01em;
}
.about-why__body { padding-left: .25rem; }
.about-why__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .65rem;
}
.about-why__list li {
  position: relative;
  padding: .65rem .9rem .65rem 1.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}
.about-why__list li::before {
  content: "";
  position: absolute;
  left: .8rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 229, 255, .7);
}

/* ---------------- A11y helpers ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
