/* ============================================================
   STEFAN GEIB — STYLES
   Based on the Verinode brand system
   ============================================================ */


/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Core palette */
  --charcoal:      #2A2A2A;   /* primary text */
  --charcoal-dark: #1A1A1A;   /* dark section backgrounds */
  --copper:        #89401D;   /* accent on light backgrounds — matches photo bg */
  --copper-light:  #D4794F;   /* accent on dark backgrounds — lighter tint in same hue family */
  --cream:         #F5F0E8;   /* page background */
  --cream-border:  #E5DDD0;   /* border on cream */
  --white:         #FFFFFF;
  --muted:         #666666;
  --border:        #DDDDDD;

  /* Signal colors — used for post type badges */
  --ember:  #C4352A;
  --yellow: #D4A017;
  --green:  #367C2B;
  --purple: #6B2FA0;

  /* Border radius */
  --r4:  4px;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;

  /* Layout */
  --max-width:   1100px;
  --section-v:   56px;
  --section-h:   40px;
}


/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ── Shared typography ────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--r8);
  text-decoration: none;
  transition: all 0.15s;
}
.btn-accent {
  background: var(--copper-light);
  color: var(--white);
}
.btn-accent:hover {
  background: #555;
  transform: translateY(-1px);
}
.btn-outline-d {
  background: var(--copper-light);
  color: var(--white);
  border: 1px solid var(--copper-light);
}
.btn-outline-d:hover {
  background: #555;
  border-color: #555;
  transform: translateY(-1px);
}


/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--charcoal-dark);
  border-bottom: 1px solid #222;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--section-h);
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r8);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* Mobile hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: opacity 0.15s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--charcoal-dark);
  border-bottom: 1px solid #2e2e2e;
  z-index: 99;
  padding: 12px 20px 16px;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-drawer a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: var(--r8);
  transition: color 0.15s, background 0.15s;
}
.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,0.07); }


/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--charcoal-dark);
  display: flex;
  align-items: center;
  padding: 100px var(--section-h) 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle copper glow — left/bottom only; the right side is now handled
   by the portrait's own warm backdrop, so a glow there would double-
   tint and muddy the photo's fade transition. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(137,64,29,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 3;
}
.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 3;
}
/* Ambient portrait
   ----------------
   Bleeds off the right edge of the viewport (no visible right boundary).
   The LEFT side dissolves into the hero background via a charcoal overlay
   (not a mask) — a gradual 6-stop ramp from solid charcoal to transparent.
   Same principle on top and bottom with a softer gradient so the photo
   grounds into the hero padding. No mix-blend-mode, no opacity, no mask:
   the visible portion is the full image at natural color. */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(32%, 465px);
  background-image: url('images/hero-stefan.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 35% 22%;
  pointer-events: none;
  z-index: 2;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Left curtain: pure 2-stop linear ramp — a single continuous
       slope from solid charcoal to transparent. Zero knees, no
       visible banding. Ends at 48% so the right half of the photo
       stays fully visible with no darkening. */
    linear-gradient(to right,
      var(--charcoal-dark) 0%,
      transparent 48%),
    /* Top/bottom grounding — vertical gradient, banding here would
       read as horizontal lines which are far less perceptible. */
    linear-gradient(to bottom,
      rgba(26,26,26,0.5) 0%,
      transparent 18%,
      transparent 82%,
      rgba(26,26,26,0.55) 100%);
  pointer-events: none;
}
.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 10px;
  white-space: nowrap;
}
.hero-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper-light);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-bio {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}


/* ── STATS TICKER ─────────────────────────────────────────── */
.stats-ticker {
  background: var(--cream);
  border-top: 4px solid var(--copper);
  border-bottom: 4px solid #6B2FA0;
  padding: 0 var(--section-h);
}
.stats-ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.ticker-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  border-right: 1px solid var(--cream-border);
  text-align: center;
}
.ticker-stat:last-child { border-right: none; }
.ticker-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.ticker-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}


/* ── WRITING & PROJECTS ───────────────────────────────────── */
.writing-section {
  background: var(--charcoal-dark);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid #222;
}
.writing-inner { max-width: var(--max-width); margin: 0 auto; }

/* Override label/title/sub colours for dark sections */
.writing-section .section-label { color: var(--copper-light); }
.writing-section .section-title { color: var(--white); }
.writing-section .section-sub   { color: rgba(255,255,255,0.45); }

/* Filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(212,121,79,0.4);
  background: rgba(212,121,79,0.15);
  color: var(--copper-light);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}
.filter-btn:hover  { background: #555; color: var(--white); border-color: #555; }
.filter-btn.active { background: var(--copper-light); color: var(--white); border-color: var(--copper-light); }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Post card */
.tile {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: var(--r12);
  padding: 24px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.tile:hover {
  border-color: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.tile.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #222 0%, #1c1c1c 100%);
  border-color: rgba(212,121,79,0.2);
}
/* Post type badge */
.tile-type {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r4);
  width: fit-content;
}
.type-article { background: rgba(212,121,79,0.18); color: var(--copper-light); }
.type-video   { background: rgba(196,53,42,0.18);  color: #e05b4d; }
.type-project { background: rgba(107,47,160,0.18); color: #9a60d4; }
.type-talk    { background: rgba(107,47,160,0.18); color: #9a60d4; }

.tile-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
}
.tile.featured .tile-title { font-size: 1.2rem; }
.tile-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  flex: 1;
}
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  margin-top: auto;
}
.tile-meta { font-size: 11px; color: rgba(255,255,255,0.28); font-weight: 500; }
.tile-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.tile:hover .tile-arrow { transform: translate(2px, -2px); }
/* Video card */
.tile-video-card {
  cursor: default;
  grid-column: span 2;
}
.tile-video-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #2a2a2a;
}
.tile-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r8);
  background: #000;
  display: block;
}
/* Hidden tiles (when filtered out) */
.tile[hidden] { display: none !important; }
/* Empty state */
.grid-empty {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  padding: 20px 0;
  grid-column: 1 / -1;
}


/* ── EXECUTIVE SUMMARY ────────────────────────────────────── */
.summary-section {
  background: var(--cream);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}
.summary-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.summary-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  grid-template-rows: auto auto 1fr;
  column-gap: 44px;
}
.summary-body .section-label {
  grid-column: 1;
  grid-row: 1;
}
.summary-heading {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.1;
}
.summary-text {
  grid-column: 1;
  grid-row: 3;
  font-size: 15px;
  line-height: 1.88;
  color: #444;
}
.summary-photo {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: start;
  width: 220px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r16);
  display: block;
  filter: grayscale(15%);
  border: 1px solid rgba(137,64,29,0.25);
  box-shadow: 0 0 0 4px rgba(137,64,29,0.08);
  margin: 0;
}
.summary-body::after {
  content: '';
  display: table;
  clear: both;
}


/* ── EXPERIENCE ───────────────────────────────────────────── */
.exp-section { background: var(--white); padding: var(--section-v) var(--section-h); }
.exp-inner   { max-width: var(--max-width); margin: 0 auto; }
.timeline    { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }

/* Accordion card */
.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.exp-card:hover { box-shadow: 0 4px 20px rgba(42,42,42,0.07); }

.exp-header {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}
.exp-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 5px;
  flex-shrink: 0;
  display: block;
}
.exp-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
}
.exp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exp-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.exp-company {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.exp-period {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 1px;
}
.exp-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s;
}
.exp-card.open .exp-chevron { transform: rotate(180deg); }

/* Accordion body */
.exp-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.exp-body.open { max-height: 1200px; padding: 0 24px 22px; }

.exp-location {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-bottom: 10px;
}
.exp-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}
.exp-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.exp-achievements li {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.exp-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 11px;
  top: 1px;
}
.exp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 3px 10px;
  border-radius: var(--r4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(137,64,29,0.07);
  color: var(--copper);
  border: 1px solid rgba(137,64,29,0.18);
}


/* ── SKILLS ───────────────────────────────────────────────── */
.skills-section {
  background: var(--cream);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid var(--cream-border);
}
.skills-inner { max-width: var(--max-width); margin: 0 auto; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 20px;
}
.skill-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  padding: 3px 9px;
  border-radius: var(--r4);
  font-size: 11px;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--charcoal);
}


/* ── EDUCATION ────────────────────────────────────────────── */
.edu-section {
  background: var(--white);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid var(--border);
}
.edu-inner { max-width: var(--max-width); margin: 0 auto; }
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.edu-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--r12);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.edu-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  padding: 4px;
}
.edu-card-info { flex: 1; min-width: 0; }
.edu-inst {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  text-decoration: none;
}
a.edu-inst:hover { color: var(--copper); }
.edu-deg    { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 3px; }
.edu-detail { font-size: 12px; color: #999; line-height: 1.55; margin-bottom: 6px; }
.edu-year {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
}

/* ── AWARDS & MEMBERSHIPS ─────────────────────────────────── */
.awards-section {
  background: var(--cream);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid var(--cream-border);
}
.awards-inner { max-width: var(--max-width); margin: 0 auto; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.award-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.award-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 4px;
  flex-shrink: 0;
}
.award-info   { flex: 1; min-width: 0; }
.award-text   { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 3px; }
.award-detail { font-size: 12px; color: var(--muted); line-height: 1.5; }


/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--charcoal-dark);
  padding: 48px var(--section-h);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-left  { display: flex; align-items: center; gap: 12px; }
.footer-name  { font-size: 14px; font-weight: 800; color: var(--white); }
.footer-links { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r8);
  border: 1px solid #2e2e2e;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.footer-links a:hover { color: var(--copper-light); border-color: var(--copper-light); }
.footer-copy {
  width: 100%;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  padding-top: 20px;
  border-top: 1px solid #222;
  margin-top: 4px;
}


/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Large desktops (1400px+): widen content container, grow section
   padding, and anchor the hero portrait to a 1500px "virtual"
   container so it stays near the centered content instead of
   drifting out to the right edge of a wide viewport. */
@media (min-width: 1400px) {
  :root {
    --max-width: 1260px;
    --section-v: 76px;
    --section-h: 56px;
  }
  .hero { padding-top: 120px; padding-bottom: 88px; }
  .hero-photo {
    width: min(34%, 560px);
    right: max(0px, calc((100vw - 1500px) / 2));
  }
}

/* Ultrawide and 4K (1920px+): further scale container, padding,
   and photo size. Hero anchor moves to a 1720px virtual container. */
@media (min-width: 1920px) {
  :root {
    --max-width: 1380px;
    --section-v: 96px;
    --section-h: 72px;
  }
  .hero { padding-top: 144px; padding-bottom: 108px; }
  .hero-photo {
    width: min(34%, 660px);
    right: max(0px, calc((100vw - 1720px) / 2));
  }
}

@media (max-width: 960px) {
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-v: 44px;
    --section-h: 20px;
  }
  nav { padding: 0 20px; }
  .nav-links   { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 88px 20px 48px; }
  .hero-name { font-size: clamp(2.4rem, 9vw, 3rem); white-space: normal; }
  .hero-photo { display: none; }

  .stats-ticker-inner { flex-wrap: wrap; }
  .ticker-stat { flex: 1 1 40%; border-right: none; border-bottom: 1px solid var(--cream-border); padding: 14px 12px; }
  .ticker-stat:nth-child(odd) { border-right: 1px solid var(--cream-border); }
  .ticker-stat:last-child, .ticker-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .summary-body { display: block; }
  .summary-photo { width: 100px; height: 100px; border-radius: var(--r12); margin: 0 0 20px 0; float: right; }

  .tile.featured { grid-column: span 1; }
}

@media (max-width: 640px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .post-grid   { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stat   { width: 100%; }
}
