/* -----------------------------------------------------------------------------
   Personal site: Venu Gopal Kadamba
   Plain CSS: variables, responsive layout, light/dark themes
   ----------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-muted: #eef2f7;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, 0.09);
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-hover: #0f766e;
  --accent-glow: rgba(13, 148, 136, 0.22);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 16px 48px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 25px 60px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 64px;
  --max-w: 1040px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d18;
  --bg-elevated: #141c31;
  --bg-muted: #101827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-hover: #5eead4;
  --accent-glow: rgba(45, 212, 191, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 24px 56px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -15%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 52%),
    radial-gradient(ellipse 55% 45% at 95% 25%, rgba(99, 102, 241, 0.06), transparent 48%);
}

[data-theme="dark"] html::before {
  background:
    radial-gradient(ellipse 85% 50% at 12% -12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 38% at 92% 18%, rgba(99, 102, 241, 0.09), transparent 50%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  transition: color 0.35s var(--ease-out);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent);
  color: #042f2e;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 6%, transparent);
}

.header-inner {
  height: 100%;
  width: min(100% - 32px, calc(var(--max-w) + 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list > li > a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-list > li > a:hover,
.nav-list > li > a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-dropdown-slot {
  position: relative;
}

.nav-details {
  position: relative;
}

.nav-details-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-details-summary::marker {
  display: none;
}

.nav-details-summary::-webkit-details-marker {
  display: none;
}

.nav-details-summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  margin-top: 2px;
}

.nav-details[open] > .nav-details-summary {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-details-summary:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 65%, transparent);
}

.nav-details-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  min-width: 200px;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.nav-details-panel a {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.nav-details-panel a:hover,
.nav-details-panel a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

@media (min-width: 881px) {
  .nav-details-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 120;
    animation: navDrop 0.22s var(--ease-out);
  }

  .nav-dropdown-slot .nav-details[open] .nav-details-summary::after {
    transform: rotate(180deg);
    margin-top: 0;
  }

  .nav-details-summary::after {
    transition: transform 0.2s var(--ease-out);
  }

  .nav-details:has(.nav-details-panel a.is-active) > .nav-details-summary {
    color: var(--text);
    background: var(--accent-soft);
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-glyph {
  grid-area: 1 / 1;
  font-size: 1.15rem;
  line-height: 1;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.theme-glyph-dark {
  opacity: 0;
  transform: scale(0.65);
}

[data-theme="dark"] .theme-glyph-light {
  opacity: 0;
  transform: scale(0.65);
}

[data-theme="dark"] .theme-glyph-dark {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }

  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list > li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list > li:last-child {
    border-bottom: 0;
  }

  .nav-list > li > a {
    padding: 14px 16px;
    border-radius: 0;
    width: 100%;
  }

  .nav-dropdown-slot .nav-details-summary {
    width: 100%;
    border-radius: 0;
    padding: 14px 16px;
    justify-content: space-between;
  }

  .nav-details-panel {
    position: static;
    margin: 0 12px 12px;
    padding: 8px 0;
    border: none;
    border-left: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 0;
    box-shadow: none;
    background: color-mix(in srgb, var(--bg-muted) 65%, transparent);
    min-width: 0;
    animation: none;
  }

  .nav-details-panel a {
    padding: 12px 16px;
    border-radius: 0;
  }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: clamp(52px, 10vw, 88px) 0 clamp(36px, 6vw, 56px);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 40%, rgba(99, 102, 241, 0.08), transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 35%, rgba(99, 102, 241, 0.15), transparent 50%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5.5vw, 68px);
  align-items: center;
}

.hero-visual {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Wrapper keeps glow / rim visible (clip-path would crop borders on the img). */
.hero-photo-shell {
  width: min(302px, 48vw);
  max-width: 100%;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out);
  filter:
    drop-shadow(0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent))
    drop-shadow(0 0 0 2px color-mix(in srgb, var(--accent) 52%, transparent))
    drop-shadow(0 4px 14px rgba(15, 23, 42, 0.07))
    drop-shadow(0 22px 52px rgba(15, 23, 42, 0.11))
    drop-shadow(0 40px 85px color-mix(in srgb, var(--accent-glow) 32%, transparent));
}

.hero-visual:hover .hero-photo-shell {
  transform: translateY(-4px);
}

[data-theme="dark"] .hero-photo-shell {
  filter:
    drop-shadow(0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent))
    drop-shadow(0 0 0 2px color-mix(in srgb, var(--accent) 58%, transparent))
    drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35))
    drop-shadow(0 28px 64px rgba(0, 0, 0, 0.42))
    drop-shadow(0 52px 100px color-mix(in srgb, var(--accent-glow) 22%, transparent));
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-shell {
    transition: none;
  }

  .hero-visual:hover .hero-photo-shell {
    transform: none;
  }
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 15;
  object-fit: cover;
  object-position: 50% 39%;
  border: none;
  border-radius: 0;
  /* Slightly fuller oval so the figure reads larger inside the frame */
  clip-path: ellipse(47.5% 50% at 50% 50%);
}

.hero-copy {
  min-width: 0;
}

@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tagline,
  .hero-lede {
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-photo-shell {
    width: min(268px, 68vw);
  }

  .hero-photo {
    object-position: 50% 38%;
    clip-path: ellipse(49% 50% at 50% 50%);
  }
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 20px;
}

.hero-tagline strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-lede {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
  border-color: var(--accent);
}

[data-theme="dark"] .btn-primary {
  color: #042f2e;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #042f2e;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.animate-in {
  animation: fadeUp 0.7s var(--ease-out) forwards;
  opacity: 0;
}

.animate-in-delay-1 {
  animation-delay: 0.08s;
}

.animate-in-delay-2 {
  animation-delay: 0.16s;
}

.animate-in-delay-3 {
  animation-delay: 0.24s;
}

.animate-in-delay-4 {
  animation-delay: 0.32s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Sections ----- */

.section {
  padding: clamp(44px, 7vw, 72px) 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-header {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  color: var(--text);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* About */

.about-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr minmax(240px, 300px);
  align-items: start;
}

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

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-meta {
  padding: 24px;
  align-self: start;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 14%, transparent);
}

.meta-list {
  margin: 0;
}

.meta-list > div {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.meta-list > div:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.meta-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.meta-list dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.meta-links .dot {
  color: var(--text-muted);
  margin: 0 6px;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-muted);
}

.timeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: var(--shadow-soft);
}

.timeline-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.timeline-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-org {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-head time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-bullets li {
  margin-bottom: 8px;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

/* Education */

.edu-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.edu-card {
  padding: 26px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.edu-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: var(--shadow-soft);
}

.edu-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.edu-place {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}

.edu-dates {
  margin: 4px 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.edu-detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Projects */

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.project-card {
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
}

.project-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.project-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card > p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.project-tags {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Publication */

.pub-card {
  padding: 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.pub-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.pub-meta {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
}

.pub-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Skills */

.skills-groups {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-pills li {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* Contact */

.section-contact {
  text-align: center;
}

.contact-inner {
  max-width: 560px;
  margin-inline: auto;
}

.contact-lede {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.contact-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.contact-chip svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

.footer-note {
  font-size: 0.82rem !important;
  opacity: 0.85;
}

/* Entrepreneurship */

.section-venture {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent-soft) 65%, var(--bg)),
    var(--bg) 55%
  );
  border-block: 1px solid var(--border);
}

.venture-card {
  max-width: 720px;
  padding: 28px 30px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow);
}

.venture-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.venture-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.venture-company {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.venture-company:hover {
  text-decoration: underline;
}

.venture-head time {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.venture-product {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.role-note {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.internships-footnote {
  margin: 8px 0 0;
  padding-left: 44px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Writing */

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.writing-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.writing-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.writing-list a {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 6px;
}

.writing-list a:hover {
  color: var(--accent);
}

.writing-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Skills subsection */

.subsection-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--text);
}

.cert-list,
.leadership-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cert-list li,
.leadership-list li {
  margin-bottom: 10px;
}

.cert-list li:last-child,
.leadership-list li:last-child {
  margin-bottom: 0;
}

.leadership-list strong {
  color: var(--text);
}

@media (max-width: 880px) {
  .internships-footnote {
    padding-left: 0;
  }
}
