:root {
  --bg: #0b1021;
  --bg-2: #0f172a;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.08);
  --accent: #10d9a1;
  --accent-2: #7cf4ff;
  --text: #f4f6fb;
  --muted: #c8d0e0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(16, 217, 161, 0.08), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(124, 244, 255, 0.12), transparent 35%),
              linear-gradient(160deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 33, 0.85);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}
nav a:hover { opacity: 1; color: var(--accent); }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 40px;
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
h1 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 720px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c0f1a;
  border: none;
  box-shadow: 0 12px 25px rgba(16, 217, 161, 0.25);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.btn-primary:hover { box-shadow: 0 16px 35px rgba(16,217,161,0.35); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-strong);
}
.stat .number {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  margin-right: 8px;
  margin-bottom: 8px;
}
section { margin-top: 60px; }
section h2 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
section p.lead {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 760px;
}
.timeline {
  border-left: 2px solid var(--border);
  margin-top: 28px;
}
.role {
  padding: 0 0 28px 22px;
  position: relative;
}
.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -6px;
  top: 6px;
  box-shadow: 0 0 0 6px rgba(16, 217, 161, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition:
    width  0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
    height 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
    left   0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
    top    0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
    background  0.3s ease,
    box-shadow  0.3s ease;
}
.timeline-dot.has-logo:hover {
  width: 58px;
  height: 58px;
  left: -30px;
  top: -18px;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 0 0 2.5px var(--accent), 0 8px 28px rgba(16, 217, 161, 0.4);
  cursor: default;
}
.timeline-dot img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease 0.18s;
  pointer-events: none;
}
.timeline-dot.has-logo:hover img {
  opacity: 1;
}
.role-title { font-weight: 700; }
.role-meta { color: var(--muted); font-size: 0.95rem; margin: 6px 0 10px; }
.role ul {
  padding-left: 18px;
  margin: 6px 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.badge-wrapper {
  position: relative;
  display: inline-block;
}
.badge {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  display: inline-block;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.badge-wrapper:hover .badge {
  background: rgba(16, 217, 161, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}
.badge-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 290px;
  background: #0d1526;
  border: 1px solid rgba(16, 217, 161, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  box-shadow: 0 20px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,217,161,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
  text-align: left;
}
.badge-wrapper:hover .badge-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.badge-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #0d1526;
  border-left: 1px solid rgba(16, 217, 161, 0.22);
  border-top: 1px solid rgba(16, 217, 161, 0.22);
}
.badge-dropdown-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2.5px var(--accent),
    0 0 28px rgba(16, 217, 161, 0.35),
    0 8px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
  position: relative;
  z-index: 0;
  cursor: default;
}
.profile-photo:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow:
    0 0 0 2.5px var(--accent-2),
    0 0 60px rgba(124, 244, 255, 0.5),
    0 16px 50px rgba(0, 0, 0, 0.6);
}
.footer {
  margin-top: 70px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
/* Substack post carousel */
.carousel-wrap {
  margin-top: 28px;
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.carousel-label {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.carousel-nav {
  display: flex;
  gap: 8px;
}
.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.carousel-btn:hover {
  border-color: var(--accent);
  background: rgba(16, 217, 161, 0.1);
  color: var(--accent);
}
.carousel-track-wrap {
  overflow: hidden;
  border-radius: 14px;
}
.carousel-track {
  display: flex;
  gap: 14px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-card {
  flex: 0 0 calc(33.333% - 10px);
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover {
  border-color: rgba(16, 217, 161, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.carousel-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--card-strong);
}
.carousel-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(16,217,161,0.08), rgba(124,244,255,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.12);
}
.carousel-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.carousel-card-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.carousel-card-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card-sub {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 860px) {
  .carousel-card { flex: 0 0 calc(50% - 7px); }
}
@media (max-width: 520px) {
  .carousel-card { flex: 0 0 calc(80vw); }
}
/* Writing / latest post */
.writing-card-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.writing-card-text { flex: 1; min-width: 0; }
.writing-card-cover {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: var(--card-strong);
  align-self: stretch;
}
@media (max-width: 620px) {
  .writing-card-inner { flex-direction: column-reverse; gap: 16px; }
  .writing-card-cover { width: 100%; flex: none; aspect-ratio: 16 / 9; }
}
.writing-card {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.writing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.latest-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.latest-label::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,217,161,0.6); }
  50% { box-shadow: 0 0 0 5px rgba(16,217,161,0); }
}
.post-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.post-title:hover { color: var(--accent); }
.post-date {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.writing-card-skeleton {
  animation: shimmer 1.6s infinite;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  height: 14px;
  margin-bottom: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
/* ── Utils dropdown ── */
.nav-utils-wrap {
  position: relative;
  display: inline-block;
  margin-left: 18px;
}
.nav-utils-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.82;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-utils-wrap:hover .nav-utils-btn,
.nav-utils-wrap.open .nav-utils-btn {
  opacity: 1;
  color: var(--accent);
}
.nav-utils-caret {
  transition: transform 0.2s ease;
}
.nav-utils-wrap:hover .nav-utils-caret,
.nav-utils-wrap.open .nav-utils-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #0d1526;
  border: 1px solid rgba(16, 217, 161, 0.22);
  border-radius: 12px;
  padding: 8px;
  padding-top: 20px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,217,161,0.07);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #0d1526;
  border-left: 1px solid rgba(16, 217, 161, 0.22);
  border-top: 1px solid rgba(16, 217, 161, 0.22);
  transform: rotate(45deg);
}
.nav-utils-wrap:hover .nav-dropdown,
.nav-utils-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 0;
  opacity: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown a:hover {
  background: rgba(16, 217, 161, 0.1);
  color: var(--accent);
}
.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(16, 217, 161, 0.1);
  border: 1px solid rgba(16, 217, 161, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 28px; }
  nav { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 520px) {
  nav { justify-content: center; text-align: center; }
  nav a { margin: 6px; }
  .container { padding: 28px 16px 60px; }
  .hero { padding: 24px; }
  .cta-row { flex-direction: column; }
}
