/* ============================================================
   SOFT GLASS — design system for lukatassano.com
   Teal accent · glassmorphism · rounded · soft depth
   To re-skin: edit the THEME TOKENS below.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #F4F7F9;   /* cool off-white */
  --bg-soft:   #FFFFFF;
  --bg-alt:    #ECF1F4;
  /* ink */
  --ink:       #0B1220;   /* deep slate */
  --ink-soft:  #3B475A;
  --muted:     #6B7A90;
  /* lines */
  --line:        rgba(11,18,32,0.10);
  --line-strong: rgba(11,18,32,0.18);
  /* teal accent */
  --accent:     #0D9488;  /* teal-600 — text/links on light */
  --accent-2:   #14B8A6;  /* teal-500 */
  --accent-3:   #2DD4BF;  /* teal-400 — glow/gradient */
  --accent-ink: #FFFFFF;  /* text on teal */
  --accent-soft-bg:     rgba(13,148,136,0.09);
  --accent-soft-border: rgba(13,148,136,0.22);
  /* glass */
  --glass-bg:     rgba(255,255,255,0.70);
  --glass-border: rgba(11,18,32,0.07);
  --glass-sheen:  rgba(255,255,255,0.65);
  --topbar-bg:    rgba(244,247,249,0.72);
  /* ambience */
  --amb-1: rgba(20,184,166,0.16);
  --amb-2: rgba(45,212,191,0.12);
  --grid:  rgba(11,18,32,0.035);
  /* shadows */
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.05), 0 2px 8px rgba(11,18,32,0.05);
  --shadow:    0 6px 24px rgba(11,18,32,0.08), 0 1px 3px rgba(11,18,32,0.06);
  --shadow-lg: 0 22px 55px rgba(11,18,32,0.16), 0 6px 16px rgba(11,18,32,0.08);
  --shadow-teal: 0 10px 26px rgba(13,148,136,0.30);
  /* shape */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

[data-theme="dark"] {
  --bg:        #070B12;
  --bg-soft:   #0F1726;
  --bg-alt:    #141E30;
  --ink:       #E7EDF6;
  --ink-soft:  #AAB7C9;
  --muted:     #6E7E95;
  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --accent:     #2DD4BF;  /* brighter teal on dark */
  --accent-2:   #14B8A6;
  --accent-3:   #5EEAD4;
  --accent-ink: #04130F;
  --accent-soft-bg:     rgba(45,212,191,0.12);
  --accent-soft-border: rgba(45,212,191,0.26);
  --glass-bg:     rgba(18,27,44,0.55);
  --glass-border: rgba(255,255,255,0.10);
  --glass-sheen:  rgba(255,255,255,0.08);
  --topbar-bg:    rgba(7,11,18,0.62);
  --amb-1: rgba(20,184,166,0.20);
  --amb-2: rgba(45,212,191,0.13);
  --grid:  rgba(255,255,255,0.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 26px 60px rgba(0,0,0,0.55);
  --shadow-teal: 0 12px 30px rgba(20,184,166,0.30);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 250ms ease, color 250ms ease;
}

/* ---------- AMBIENT BACKGROUND ---------- */
.bg-ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 88% -8%, var(--amb-1), transparent 60%),
    radial-gradient(48vw 48vw at -8% 108%, var(--amb-2), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.logo-mark:hover { transform: rotate(-4deg) scale(1.06); }
.logo-mark img { width: 100%; height: 100%; border-radius: 9px; box-shadow: var(--shadow-teal); }

.topbar-name {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.topbar-nav { display: flex; gap: 6px; }

.topbar-nav .nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.topbar-nav .nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.topbar-nav .nav-link.active {
  color: var(--accent);
  background: var(--accent-soft-bg);
}

.ctrl {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 6px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  letter-spacing: 0.04em;
}
.ctrl:hover { color: var(--accent); border-color: var(--accent-soft-border); transform: translateY(-1px); }
.ctrl.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ctrl-icon { display: grid; place-items: center; min-width: 34px; font-size: 14px; }

/* ---------- GLASS UTILITY ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-sheen);
}

/* ---------- LAYOUT ---------- */
main { position: relative; z-index: 1; }

section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 92px 32px;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 96px;
}

.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge-live { border-color: var(--accent-soft-border); background: var(--accent-soft-bg); color: var(--accent); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(20,184,166,0.6); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  color: var(--ink-soft);
}

.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  border: 1px solid transparent;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(13,148,136,0.4); }
.btn-primary .btn-arrow { transition: transform 200ms ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

/* hero spec card */
.hero-spec {
  border-radius: var(--radius);
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spec-row { display: flex; flex-direction: column; gap: 3px; }
.spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.spec-value { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- NOW / ROLES ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.role-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease, border-color 240ms ease;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft-border); }
.role-card--link { text-decoration: none; color: inherit; cursor: pointer; }
.role-card--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.role-header { display: flex; gap: 15px; align-items: center; padding: 22px 24px 16px; }

.role-logo {
  width: 52px; height: 52px;
  border-radius: 15px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  box-shadow: var(--shadow-teal);
}

.role-heading { min-width: 0; }
.role-heading .role-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 5px;
}
.role-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.role-company { font-size: 12.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.role-body { padding: 0 24px 24px; position: relative; }
.role-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.role-arrow {
  position: absolute;
  bottom: 22px; right: 22px;
  font-size: 18px;
  color: var(--muted);
  transition: transform 220ms ease, color 220ms ease;
}
.role-card--link:hover .role-arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- STACK ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.stack-card {
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.stack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft-border); }

.stack-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.pill:hover { color: var(--accent); border-color: var(--accent-soft-border); background: var(--accent-soft-bg); transform: translateY(-2px); }

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }

.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 26px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  align-items: start;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.tl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft-border); }

.tl-date { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent); padding-top: 4px; }

.tl-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 3px;
}
.tl-company { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: inline-block; margin-bottom: 12px; }

.tl-body ul { list-style: none; }
.tl-body li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
  margin-bottom: 5px;
}
.tl-body li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
}

.tl-loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 6px;
  text-align: right;
}

/* ---------- PROJECTS ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.project-card {
  border-radius: var(--radius);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease, border-color 240ms ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft-border); }

.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.project-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
}
.project-icon { font-size: 24px; line-height: 1; }
.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.project-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; flex: 1; }

/* ---------- CONTACT ---------- */
.contact-section {
  max-width: none;
  margin: 64px 24px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(45,212,191,0.28), transparent 70%),
    linear-gradient(135deg, #053730, #0B5E54);
  color: #EAFBF7;
  padding: 84px 32px;
  position: relative;
  overflow: hidden;
}
.contact-inner { max-width: 1056px; margin: 0 auto; }
.contact-section .section-tag { color: rgba(234,251,247,0.7); }
.contact-section .section-tag::before { background: var(--accent-3); }
.contact-section .section-title { color: #fff; }
.contact-section .section-title em {
  background: none;
  -webkit-text-fill-color: initial;
  color: #5EEAD4;
}

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-cell {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
a.contact-cell:hover { transform: translateY(-4px); background: rgba(255,255,255,0.13); border-color: rgba(94,234,212,0.6); }
.contact-cell .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8FD9CE;
  margin-bottom: 9px;
}
.contact-cell .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  overflow-wrap: normal;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 36px 32px 48px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1056px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.footer-dot { color: var(--accent); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dot.pulse { animation: none; }
}

/* ============================================================
   BLOG — list + post
   ============================================================ */
.blog-hero { max-width: 1120px; margin: 0 auto; padding: 80px 32px 24px; }
.blog-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
}
.blog-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 680px; }

.post-list-section { max-width: 1120px; margin: 0 auto; padding: 24px 32px 96px; }
.post-list { display: flex; flex-direction: column; gap: 14px; }

.post-item {
  display: block;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft-border); }

.post-item-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em; margin-bottom: 10px;
}
.post-item-tags { display: flex; gap: 6px; }
.post-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 8px; color: var(--ink);
}
.post-item:hover .post-item-title { color: var(--accent); }
.post-item-desc { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 720px; }
.post-item-arrow { position: absolute; top: 26px; right: 26px; font-size: 20px; color: var(--muted); transition: transform 220ms ease, color 220ms ease; }
.post-item:hover .post-item-arrow { color: var(--accent); transform: translate(4px, -4px); }

.empty-state { padding: 64px 0; text-align: center; }
.empty-state-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.empty-state p { font-size: 16px; color: var(--ink-soft); }
.empty-state code { font-family: 'JetBrains Mono', monospace; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 14px; }

/* individual post */
.post { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.post-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; margin-bottom: 28px;
}
.post-back {
  color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  padding: 6px 14px; transition: all 160ms ease;
}
.post-back:hover { color: var(--accent); border-color: var(--accent-soft-border); }
.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 18px;
}
.post-lede { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 700px; margin-bottom: 20px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.post-body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em; margin-top: 2.2em; margin-bottom: 0.5em;
  padding-bottom: 0.35em; border-bottom: 1px solid var(--line);
}
.post-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; margin-top: 1.8em; margin-bottom: 0.4em; }
.post-body p { margin-bottom: 1.1em; }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1.5px solid var(--accent-soft-border); transition: border-color 150ms ease; }
.post-body a:hover { border-color: var(--accent); }
.post-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.post-body pre {
  background: #0B1220; color: #E7EDF6; padding: 20px 22px; overflow-x: auto;
  border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow);
  margin: 1.5em 0; font-size: 13.5px; line-height: 1.6;
}
.post-body pre code { background: transparent; border: none; padding: 0; font-size: inherit; color: inherit; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 1.4em 0; color: var(--ink-soft); }
.post-body ul, .post-body ol { margin: 1.1em 0; padding-left: 26px; }
.post-body li { margin-bottom: 0.45em; }
.post-body ul li::marker { color: var(--accent); }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 1.4em 0; }
.post-footer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- I18N CONTROL ---------- */
[data-lang="en"] .pt-only,
[data-lang="pt"] .en-only { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  section { padding: 64px 22px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .roles-grid, .stack-grid, .projects-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .tl-loc { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-section { margin: 48px 16px 0; padding: 64px 24px; }
  .blog-hero, .post-list-section { padding-left: 22px; padding-right: 22px; }
  .post { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 540px) {
  .topbar { padding: 11px 16px; }
  .topbar-name { display: none; }
  .ctrl { padding: 5px 9px; font-size: 11px; }
  .section-title { margin-bottom: 32px; }
  .post-item-arrow { display: none; }
}
