/* =========================================================
   ASAD ALI BHATTI — Portfolio Theme v2
   ========================================================= */

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #07070f;
  color: #e4eaf8;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Tokens ----------------------------------------------- */
:root {
  --bg:       #07070f;
  --surface:  #0c0c18;
  --surface2: #111120;
  --border:   #1a1a2e;
  --text:     #e4eaf8;
  --muted:    #a8b4d0;
  --accent:   #64ffda;
  --purple:   #c792ea;
  --blue:     #82aaff;
  --green:    #c3e88d;
  --orange:   #f78c6c;
  --yellow:   #ffcb6b;
  --red:      #ff5370;
  --nav-h:    64px;
  --max:      1080px;
  --r:        6px;
  --ease:     cubic-bezier(.4,0,.2,1);
}

/* --- Helpers ---------------------------------------------- */
.mono    { font-family: 'JetBrains Mono', monospace; }
.accent  { color: var(--accent); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.navbar.solid {
  background: rgba(7,7,15,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-logo .bracket { color: var(--accent); }
.nav-logo:hover { color: var(--accent); }

/* Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Our anchor links */
.nav-item {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-item:hover,
.nav-item.active { color: var(--accent); }
.nav-item:hover::after,
.nav-item.active::after { transform: scaleX(1); }

/* Ghost {{navigation}} output — blend with nav-item style */
.nav-menu .nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-menu .nav li { list-style: none; }
.nav-menu .nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-menu .nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-menu .nav a:hover { color: var(--accent); }
.nav-menu .nav a:hover::after { transform: scaleX(1); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: .25s var(--ease);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ── Blobs ────────────────────────────── */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/*
  Blob fix: filter:blur() on an animated element breaks GPU compositing.
  Solution: parent handles position + animation (transform only),
  ::after handles the visual (background + blur). Never mix both on one element.
*/
.blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.blob::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.blob-1 {
  width: 680px; height: 680px;
  top: -200px; right: -60px;
  animation-duration: 13s;
}
.blob-1::after {
  background: radial-gradient(circle at 40% 40%,
    rgba(100,255,218,.3) 0%,
    rgba(100,255,218,.1) 45%,
    transparent 70%);
  filter: blur(48px);
}

.blob-2 {
  width: 640px; height: 640px;
  bottom: -180px; left: -80px;
  animation-duration: 19s;
  animation-direction: alternate-reverse;
}
.blob-2::after {
  background: radial-gradient(circle at 55% 50%,
    rgba(189,147,249,.28) 0%,
    rgba(189,147,249,.08) 45%,
    transparent 70%);
  filter: blur(58px);
}

.blob-3 {
  width: 460px; height: 460px;
  top: 30%; left: 42%;
  animation-duration: 23s;
  animation-delay: -6s;
}
.blob-3::after {
  background: radial-gradient(circle,
    rgba(130,170,255,.2) 0%,
    rgba(130,170,255,.04) 55%,
    transparent 70%);
  filter: blur(62px);
}

@keyframes drift {
  0%   { transform: translate(0,     0)     scale(1);    }
  30%  { transform: translate(40px, -25px)  scale(1.05); }
  70%  { transform: translate(-25px, 30px)  scale(.96);  }
  100% { transform: translate(20px,  40px)  scale(1.03); }
}

/* ── Dot grid — subtle ────────────────── */
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(100,255,218,.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 20%, transparent 80%);
  opacity: .55;
}


/* ── Layout ───────────────────────────── */
.hero-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Text ─────────────────────────────── */
.hero-text > * {
  opacity: 0;
  animation: up .55s var(--ease) calc(var(--d, 0) * .12s + .1s) forwards;
}

.hero-greeting {
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: .9rem;
}

.hero-name {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: .6rem;
}

.hero-role {
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: var(--muted);
  min-height: 2rem;
  margin-bottom: 1.5rem;
}
.typed { color: var(--accent); }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-bio strong { color: var(--text); font-weight: 500; }
.hero-bio a { color: var(--accent); border-bottom: 1px solid rgba(100,255,218,.3); transition: border-color .2s; }
.hero-bio a:hover { border-color: var(--accent); }

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 1.1rem;
}
.hero-socials a {
  color: var(--muted);
  display: flex;
  transition: color .2s, transform .2s;
}
.hero-socials a:hover { color: var(--accent); transform: translateY(-3px); }

/* ── Code card ────────────────────────── */
.hero-card {
  opacity: 0;
  animation: right .6s var(--ease) calc(var(--d, 0) * .12s + .1s) forwards;
}
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(100,255,218,.05);
  position: relative;
}
.code-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,255,218,.5), transparent);
  pointer-events: none;
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .65rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.traffic {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.traffic.red    { background: #ff5f57; }
.traffic.yellow { background: #febc2e; }
.traffic.green  { background: #28c840; }
.code-file {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  margin-left: .4rem;
}
.code-body { padding: 1.3rem 1.4rem; overflow-x: auto; }
.code-body pre { margin: 0; }
.code-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  line-height: 1.8;
  white-space: pre;
  display: block;
}
/* Token colours */
.t-kw   { color: var(--purple); }
.t-cls  { color: var(--yellow); }
.t-fn   { color: var(--blue); }
.t-sym  { color: var(--accent); }
.t-str  { color: var(--green); }
.t-ivar { color: var(--orange); }
.t-num  { color: var(--orange); }
.t-com  { color: #546e7a; font-style: italic; }

/* ── Scroll cue ───────────────────────── */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn .5s ease 1.8s forwards;
}
.scroll-cue .mono {
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2.2s ease infinite;
}
@keyframes scrollAnim {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Entrance keyframes ───────────────── */
@keyframes up    { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:none } }
@keyframes right { from { opacity:0; transform:translateX(28px) } to { opacity:1; transform:none } }
@keyframes fadeIn{ from { opacity:0 }                             to { opacity:1 }                 }

/* ── Buttons ──────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.55rem;
  background: var(--accent);
  color: var(--bg);
  font-size: .88rem;
  font-weight: 700;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: #55eece;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100,255,218,.25);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.55rem;
  background: transparent;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  border: 1px solid rgba(100,255,218,.3);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-ghost:hover {
  background: rgba(100,255,218,.07);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* =========================================================
   SECTIONS — SHARED
   ========================================================= */
.section { padding: 6.5rem 0; }
.section.about      { background: var(--surface); }
.section.experience { background: var(--bg); }
.section.contact    { background: var(--surface); }

.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 3rem;
}
.section-label .mono {
  font-size: .8rem;
  font-weight: 500;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -.015em;
}
.about-text p {
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}
.about-text strong { color: var(--text); font-weight: 500; }
.about-text a { color: var(--accent); border-bottom: 1px solid rgba(100,255,218,.25); transition: border-color .2s; }
.about-text a:hover { border-color: var(--accent); }

/* Interests */
.about-interests {
  margin-top: 1.75rem;
}
.interests-label {
  font-size: .7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: .85rem;
}
.interest-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.1rem;
  transition: background .2s;
}
.interest-card:hover { background: rgba(100,255,218,.04); }
.interest-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.interest-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem !important;
}
.interest-desc {
  font-size: .85rem !important;
  color: var(--muted);
  line-height: 1.75 !important;
  margin-bottom: 0 !important;
}
.interest-desc strong { color: var(--text); font-weight: 500; }

/* ── How I can help ──────────────────── */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.help-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--r) var(--r);
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: background .2s, box-shadow .2s;
}
.help-card:hover {
  background: rgba(100,255,218,.03);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.help-tag {
  font-size: .7rem;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0;
}
.help-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.help-body {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 680px) {
  .help-grid { grid-template-columns: 1fr; }
}
.help-cta {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.help-cta-note {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .07em;
  margin: 0;
}

/* ── Full-width aviation feature ─────── */
.about-aviation {
  margin-top: 3.5rem;
  border-radius: calc(var(--r) * 1.5);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  min-height: 280px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(100,255,218,.05), 0 24px 60px rgba(0,0,0,.5);
}

.aviation-text {
  padding: 2.5rem 2.5rem;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
}
.aviation-text::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: .25;
}

.aviation-text .interests-label {
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--accent);
  opacity: .75;
  margin-bottom: .6rem;
}

.aviation-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.aviation-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.aviation-desc strong { color: var(--text); font-weight: 500; }

.aviation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.avi-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--accent);
  background: rgba(100,255,218,.07);
  border: 1px solid rgba(100,255,218,.18);
  border-radius: 999px;
  padding: .3rem .75rem;
}

.aviation-photo {
  position: relative;
  overflow: hidden;
}
.aviation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.aviation-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18,18,30,.3) 0%,
    transparent 40%
  );
}

@media (max-width: 700px) {
  .about-aviation { grid-template-columns: 1fr; }
  .aviation-text::after { display: none; }
  .aviation-photo { height: 240px; }
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.fact {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--muted);
}
.fact svg { color: var(--accent); flex-shrink: 0; }

/* Skills */
.about-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-group {}
.stack-label {
  font-size: .7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  padding: .3rem .8rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: default;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.chip:hover {
  color: var(--accent);
  border-color: rgba(100,255,218,.3);
  background: rgba(100,255,218,.06);
  transform: translateY(-2px);
}
.chip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .8;
  transition: opacity .2s;
}
.chip:hover .chip-icon { opacity: 1; }

/* =========================================================
   EXPERIENCE TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 1rem;
  max-width: 740px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 65%, transparent);
}
.tl-item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 3.25rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -6px; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color .2s;
}
.tl-item:hover .tl-dot { border-color: var(--accent); }
.tl-dot.current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(100,255,218,.12), 0 0 12px rgba(100,255,218,.4);
  animation: pulse 2.5s ease infinite;
}
.tl-dot.edu { border-color: var(--purple); }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(100,255,218,.12), 0 0 12px rgba(100,255,218,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(100,255,218,.2),  0 0 20px rgba(100,255,218,.55); }
}
.tl-period {
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.tl-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
}
.tl-company {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: .85rem;
}
.tl-company a { color: var(--accent); transition: opacity .2s; }
.tl-company a:hover { opacity: .75; }
.tl-loc {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
}
.tl-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: .9rem;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  padding: .18rem .6rem;
  background: rgba(100,255,218,.07);
  color: var(--accent);
  border-radius: 3px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-pre {
  font-size: .8rem;
  margin-bottom: .85rem;
}
.contact-heading {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
  line-height: 1.15;
}
.contact-sub {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.25rem;
}
.contact-btn { margin-bottom: 2.5rem; }
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-socials a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.contact-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   POST / PAGE
   ========================================================= */
.post-header, .post-nav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.post-header {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--muted);
  transition: color .2s;
}
.back-btn:hover { color: var(--accent); }
.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  padding: .2rem .6rem;
  background: rgba(100,255,218,.07);
  color: var(--accent);
  border-radius: 3px;
}
.post-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .9rem;
  max-width: 740px;
}
.post-excerpt {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 1.25rem;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .76rem;
  color: var(--muted);
}
.post-cover {
  padding: 2.5rem 0;
  background: var(--bg);
}
.post-cover img {
  border-radius: var(--r);
  border: 1px solid var(--border);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.post-content {
  padding: 4rem 0;
  background: var(--bg);
}

/* Koenig card widths (required) */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-width-wide img, .kg-width-full img { width: 100%; }

/* Ghost content styles */
.gh-content {
  max-width: 700px;
  font-size: .97rem;
  line-height: 1.85;
  color: var(--muted);
}
.gh-content h1,.gh-content h2,.gh-content h3,
.gh-content h4,.gh-content h5,.gh-content h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 2.25rem 0 .9rem;
}
.gh-content h2 { font-size: 1.45rem; }
.gh-content h3 { font-size: 1.15rem; }
.gh-content p  { margin-bottom: 1.3rem; }
.gh-content a  { color: var(--accent); border-bottom: 1px solid rgba(100,255,218,.3); transition: border-color .2s; }
.gh-content a:hover { border-color: var(--accent); }
.gh-content strong { color: var(--text); }
.gh-content em { font-style: italic; }
.gh-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .84em;
  padding: .15em .4em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent);
}
.gh-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.gh-content pre code { background:none; border:none; padding:0; color: var(--muted); font-size:.83rem; }
.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-style: italic;
}
.gh-content ul, .gh-content ol { margin: .8rem 0 1.4rem 1.5rem; }
.gh-content li { margin-bottom: .45rem; }
.gh-content img { border-radius: var(--r); border: 1px solid var(--border); margin: 2rem auto; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* Koenig cards */
.kg-card { margin: 2rem 0; }
.kg-image-card img { border-radius: var(--r); border: 1px solid var(--border); }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-gallery-image img { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem; margin: 1.5rem 0;
}
.kg-bookmark-title { color: var(--text); font-weight: 600; font-size: .88rem; }
.kg-bookmark-description { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.kg-callout-card {
  display: flex; gap: .75rem;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.kg-callout-text { color: var(--muted); font-size: .93rem; line-height: 1.7; }

/* Post tags */
.post-tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.post-tags a { color: var(--accent); }

/* Post nav */
.post-nav-bar { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: none; }
.post-nav-inner { display: flex; justify-content: space-between; gap: 2rem; }
.pnav-link { display: flex; flex-direction: column; gap: .4rem; max-width: 45%; }
.pnav-link.next { text-align: right; }
.pnav-dir { display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; }
.pnav-link.next .pnav-dir { justify-content: flex-end; }
.pnav-title { font-size: .88rem; color: var(--muted); transition: color .2s; }
.pnav-link:hover .pnav-title { color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-card   { display: none; }
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,7,15,.97);
    backdrop-filter: blur(16px);
    padding: 2rem 2rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-105%);
    opacity: 0;
    transition: transform .28s var(--ease), opacity .28s var(--ease);
    pointer-events: none;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-item { font-size: .95rem; }
  .nav-menu .nav { flex-direction: column; gap: 1.5rem; }
  .nav-menu .nav a { font-size: .95rem; }
  .nav-burger { display: flex; }
}

@media (max-width: 580px) {
  .section { padding: 4.5rem 0; }
  .hero-name { font-size: 2.1rem; }
  .about-facts { grid-template-columns: 1fr; }
  .contact-socials { gap: 1.25rem; }
  .footer-inner { flex-direction: column; gap: .85rem; text-align: center; }
  .post-nav-inner { flex-direction: column; }
  .pnav-link { max-width: 100%; }
  .pnav-link.next { text-align: left; }
  .pnav-link.next .pnav-dir { justify-content: flex-start; }
}
