/* ============================================================
   Aurelijus Banelis — Website
   Dark teal theme · mobile-first
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
*::-webkit-scrollbar{ width:8px; height:8px; }
*::-webkit-scrollbar-thumb{ background: rgba(126,224,211,0.2); border-radius:4px; }
::selection{ background: rgba(126,224,211,0.3); color: #fff; }
:focus-visible{ outline: 1.5px solid var(--accent); outline-offset:2px; border-radius:2px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  --bg: #06171b;
  --bg-elev: #091f24;
  --bg-sunken: #0c252b;
  --ink: #e3efee;
  --ink-2: #a7c2c0;
  --ink-3: #6c8b89;
  --rule: rgba(141,213,208,0.10);
  --rule-strong: rgba(141,213,208,0.18);
  --accent: #7ee0d3;
  --accent-soft: rgba(126,224,211,0.12);
  --glow: rgba(126,224,211,0.35);

  --font-serif: "Newsreader", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.4);

  --radius: 4px;
  --radius-lg: 8px;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand a { color: var(--ink); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--bg-sunken); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin: 4px auto 0;
}
.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--rule);
  margin: 0 4px;
}
.lang {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lang a, .lang button {
  background: none;
  border: 0;
  color: var(--ink-3);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.lang a:hover { color: var(--ink); }
.lang a.is-active, .lang button.is-active {
  color: var(--ink);
  background: var(--bg-sunken);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--ink);
}

/* ---- Condensed header context (filter icon + current year) ----
   Hidden by default; revealed on the timeline pages once the page has
   scrolled past the page head (body.is-condensed). It collapses the
   separate filter bar + sticky year markers onto the header line. */
/* display:contents lets the year + filter participate directly in the header
   flex row: the year centres absolutely, the filter sits at the right edge
   next to the nav icon. */
.header-context { display: contents; }
.header-filter {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.header-filter:hover { border-color: var(--rule-strong); }
.header-filter[aria-expanded="true"] { border-color: var(--rule-strong); color: var(--accent); }
.header-filter::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
body.filters-active .header-filter::after { opacity: 1; }
.header-year {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: var(--bg-elev); border-bottom: 1px solid var(--rule);
         flex-direction: column; align-items: stretch; padding: 8px var(--gutter); gap: 0; }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav-divider { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--ink-3);
}
.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.italic { font-style: italic; }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.text-mono { font-family: var(--font-mono); }

/* ---------- Pages (switcher) ---------- */
.page { display: none; }
.page.is-active { display: block; }

/* ---------- HOME ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr clamp(240px, 34vw, 460px);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.hero__name .hero__line1 { display: block; }
.hero__name .hero__line2 { display: block; }
.hero__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-sunken);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__tagline {
  margin-top: 0;
  margin-bottom: clamp(20px, 3vw, 32px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero__tagline::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ink-3);
  transform: translateY(-4px);
  flex-shrink: 0;
}
.hero__intro {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__intro p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__intro p em { color: var(--accent); font-style: italic; }
.hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.hero__meta-item .val {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__portrait {
    width: 72%;
    margin: 0 auto;
  }
  .hero__name {
    font-size: clamp(44px, 14vw, 80px);
  }
}

/* Section heading pattern */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
}
.section--sunken { background: var(--bg-sunken); }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.section__head .h2 { margin: 0; }
.section__head .eyebrow { margin-bottom: 12px; }
.section__head__title { display: flex; flex-direction: column; gap: 0; }

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.15s;
}
.see-all:hover { gap: 12px; }
.see-all::after { content: "→"; font-family: var(--font-sans); }

/* Latest talk feature card */
.feature-talk {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.feature-talk__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sunken);
}
.feature-talk__date {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius);
  text-transform: uppercase;
}
.feature-talk__body { display: flex; flex-direction: column; gap: 16px; }
.feature-talk__body .venue {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.feature-talk__body .title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.feature-talk__body .desc {
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 50ch;
}
.feature-talk__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  transition: all 0.15s;
}
.link-pill:hover { border-color: var(--accent); color: var(--accent); }
.link-pill .ico { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .feature-talk { grid-template-columns: 1fr; }
}

/* Slide-mock thumbnails (placeholders that look like real slide previews) */
.slide-mock {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12% 8%;
  font-family: var(--font-serif);
  color: #f5f1e8;
  background: linear-gradient(135deg, #2a2a2e 0%, #44444a 100%);
  overflow: hidden;
}
.slide-mock::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 50%);
}
.slide-mock__title {
  font-size: clamp(20px, 3.5vw, 38px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
  text-wrap: balance;
}
.slide-mock__title em { font-style: italic; color: #ffd47a; }
.slide-mock__byline {
  position: absolute;
  bottom: 10%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.6);
  white-space: nowrap;
  z-index: 1;
}
.slide-mock__corner {
  position: absolute;
  bottom: 8px; right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(245,241,232,0.5);
  z-index: 1;
}
.slide-mock.t-blue { background: linear-gradient(135deg, #1d3a5f 0%, #2d5683 100%); }
.slide-mock.t-rust { background: linear-gradient(135deg, #5b2014 0%, #8c3b22 100%); }
.slide-mock.t-green { background: linear-gradient(135deg, #1f3a2a 0%, #345b44 100%); }
.slide-mock.t-purple { background: linear-gradient(135deg, #2e1f3a 0%, #4a345b 100%); }
.slide-mock.t-photo {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%),
              radial-gradient(circle at 70% 30%, #6d5b3a, #2a2620);
}

/* ---------- TALKS / TIMELINE ---------- */
.page-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
@media (max-width: 760px) { .page-head__grid { grid-template-columns: 1fr; } }
.page-head__title { display: flex; flex-direction: column; gap: 16px; }
.page-head__title .h-display {
  font-size: clamp(48px, 9vw, 120px);
  font-style: italic;
}
.page-head__intro {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.filter-bar {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.filter-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.filter-bar__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Compact toggle — hidden on wide viewports, shown when filters collapse */
.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.filter-toggle:hover { border-color: var(--rule-strong); }
.filter-toggle__icon { flex-shrink: 0; }
.filter-toggle__chevron { transition: transform 0.2s ease; opacity: 0.7; }
.filter-bar.is-open .filter-toggle__chevron { transform: rotate(180deg); }
.filter-toggle__count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.filter-bar.has-active .filter-toggle__count { display: inline-block; }
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 64px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.chip:hover { border-color: var(--rule-strong); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .count {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.6;
}
.filter-bar__reset {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding: 6px 8px;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-strong);
  display: none;
}
.filter-bar.has-active .filter-bar__reset { display: inline; }

/* Collapse filters behind the toggle on narrow widths and short (landscape)
   viewports, where three chip rows otherwise eat most of the screen.
   These viewports also get the scroll-condensed behaviour below. */
@media (max-width: 880px), (orientation: landscape) and (max-height: 600px) {
  .filter-bar { padding: 8px 0; }
  .filter-toggle { display: inline-flex; }
  .filter-bar__panel { display: none; padding-top: 4px; }
  .filter-bar.is-open .filter-bar__panel { display: flex; }

  /* Condensed (scrolled) state: the header is the only sticky line. The
     filter bar un-sticks and scrolls away — reopened as a dropdown from the
     header filter icon — and year markers stop pinning (the header shows the
     current year, with no per-year count). */
  body.is-condensed .header-year { display: block; }
  body.is-condensed .header-filter { display: inline-flex; }
  body.is-condensed .filter-bar { position: static; }
  body.is-condensed .filter-bar .filter-toggle { display: none; }
  body.is-condensed .filter-bar.is-open {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 45;
  }
  body.is-condensed .filter-bar.is-open .filter-bar__panel { display: flex; }
  body.is-condensed .year-marker { position: static; top: auto; }
}

/* Timeline */
.timeline {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 80px;
}
.year-group { margin-bottom: clamp(40px, 6vw, 72px); }
.year-marker {
  position: sticky;
  top: 128px;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 0;
  margin-bottom: 16px;
}
.year-marker__num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.year-marker__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.year-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  margin-bottom: 8px;
}

.tl-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.tl-item:last-child { border-bottom: 0; }
.tl-item.is-hidden { display: none; }
.tl-item__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
}
/* Fill the frame edge-to-edge so no background shows around the image,
   regardless of the source thumbnail's aspect ratio. */
.tl-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tl-item__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tl-item__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.tl-item__meta .venue { text-transform: none; }
.tl-item__meta .lang {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.tl-item__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin: 4px 0 0;
  text-wrap: balance;
}
.tl-item__title.is-draft::after {
  content: "draft";
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 6px;
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
}
.tl-item__desc {
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 65ch;
  text-wrap: pretty;
}
.tl-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--bg-sunken);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--rule-strong); color: var(--ink); }
.tl-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
  .year-marker { top: 110px; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-3);
  display: none;
}
.empty-state.is-visible { display: block; }
.empty-state .h3 { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- ARTICLES ---------- */
.articles-list {
  padding: clamp(32px, 5vw, 64px) 0;
}
.article-row {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.article-row:last-child { border-bottom: 0; }
.article-row__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
}
.article-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-row__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.article-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article-row__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.article-row__title a { transition: color 0.15s; }
.article-row__title a:hover { color: var(--accent); }
.article-row__excerpt {
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 65ch;
}
.article-row__read {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  align-self: end;
}

@media (max-width: 760px) {
  .article-row { grid-template-columns: 1fr; }
  .article-row__read { align-self: start; }
}

/* Article-thumb mocks (illustrate diversity) */
.thumb-arch {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f7d6b3 0 20px, #fce7c8 20px 40px);
  position: relative;
}
.thumb-arch::after {
  content: "";
  position: absolute; inset: 30%;
  border: 2px dashed #b8421f;
  border-radius: 8px;
}
.thumb-node {
  background:
    linear-gradient(180deg, transparent 60%, #c8541f 60%),
    linear-gradient(135deg, #4a3a2a, #2a221b);
  position: relative;
}
.thumb-node::after {
  content: "M";
  position: absolute;
  bottom: 8px; left: 12px;
  font-family: var(--font-serif);
  font-size: 36px;
  color: #fff;
  font-style: italic;
  font-weight: 300;
}
.thumb-gql {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
}
.thumb-gql::before {
  content: "{ }";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 80px;
  color: rgba(232, 132, 99, 0.4);
  top: -10px; left: -10px;
}
.thumb-gql::after {
  content: "schema";
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e88463;
  letter-spacing: 0.04em;
}

/* ---------- CERTIFICATIONS ---------- */
.cert-thumb {
  position: relative;
  width: 100%; height: 100%;
  background: #fbf8f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14% 12%;
  color: #2a2620;
  font-family: var(--font-sans);
  border: 1px solid rgba(0,0,0,0.05);
}
.cert-thumb__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}
.cert-thumb__name {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  font-style: italic;
  margin: 8px 0;
  color: #14110c;
}
.cert-thumb__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(11px, 1.4vw, 13px);
  background: rgba(168, 158, 138, 0.25);
  padding: 4px 10px;
  border-radius: 2px;
  color: #2a2620;
  letter-spacing: 0.02em;
}
.cert-thumb.aws { background: linear-gradient(180deg, #fbf8f2 60%, #ebe4d5 60%); }
.cert-thumb.aws .cert-thumb__brand { color: #ff9900; font-weight: 700; letter-spacing: 0.1em; }
.cert-thumb.zend { background: linear-gradient(180deg, #fbf8f2 0%, #e8f0f5 100%); }
.cert-thumb.zend .cert-thumb__brand { color: #0679ea; }
.cert-thumb.cisco { background: #fbf8f2; }
.cert-thumb.cisco .cert-thumb__brand { color: #1ba0d7; }

.tl-item__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.tl-item__status .dot-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4a7c4a;
}
.tl-item__status.expired .dot-sm { background: var(--ink-3); }

/* ---------- CONTACTS ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 96px);
  padding: clamp(48px, 8vw, 96px) 0;
  align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { display: flex; flex-direction: column; gap: 24px; }
.contact-block .eyebrow { margin-bottom: 4px; }
.contact-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}
.contact-block p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 50ch;
}
.email-puzzle {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-2);
  line-height: 1.5;
}
.email-puzzle strong { color: var(--accent); font-weight: 600; }
.email-puzzle em { color: var(--ink-3); font-style: italic; }

.social-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.social-list li {
  border-bottom: 1px solid var(--rule);
}
.social-list li:first-child { border-top: 1px solid var(--rule); }
.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  transition: color 0.15s, padding 0.15s;
}
.social-list a:hover { color: var(--accent); padding-left: 8px; }
.social-list a .handle {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.social-list a:hover .handle { color: var(--accent); opacity: 0.7; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px var(--gutter);
  background: var(--bg-sunken);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .meta { font-size: 11px; }
.site-footer__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- Hero ambient glow ---------- */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(126,224,211,0.10), transparent 60%),
    radial-gradient(40% 40% at 80% 70%, rgba(92,200,185,0.08), transparent 60%);
}

/* ---------- Now / "currently" little indicator on home ---------- */
.now-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.now-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
