/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --white-bg: #FBFBFD;
  --black-bg: #0A0A0C;
  --card-white: #FFFFFF;
  --card-black: #151517;

  --text-dark: #1D1D1F;
  --text-dark-muted: #6E6E73;
  --text-light: #F5F5F7;
  --text-light-muted: #98989D;

  --accent: #1D1D1F;
  --accent-soft: rgba(29, 29, 31, 0.08);

  --mac-red: #FF5F57;
  --mac-yellow: #FEBC2E;
  --mac-green: #28C840;
  --mac-glass: rgba(251, 251, 253, 0.72);
  --mac-glass-dark: rgba(30, 30, 32, 0.72);
  --mac-separator: rgba(0, 0, 0, 0.08);
  --mac-separator-dark: rgba(255, 255, 255, 0.1);
  --mac-titlebar: #ECECEE;
  --mac-titlebar-dark: #2A2A2C;

  --border-on-white: rgba(0, 0, 0, 0.08);
  --border-on-black: rgba(255, 255, 255, 0.09);

  --shadow-soft: 0 20px 45px -20px rgba(0, 0, 0, 0.18);
  --shadow-soft-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.28);
  --shadow-mac-window: 0 22px 70px -18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-rect: 10px;
  --radius-pill: 999px;

  --font-body: 'Inter', sans-serif;
  --font-logo: 'Newsreader', serif;

  --nav-height: 84px;
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-body);
  background: var(--white-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container { max-width: 1220px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MAC ICONS — SF Symbol-style SVG system
   ========================================================================== */
.mac-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}
.mac-icon--sm { width: 14px; height: 14px; }
.mac-icon--md { width: 18px; height: 18px; }
.mac-icon--lg { width: 24px; height: 24px; }
.mac-icon--xl { width: 30px; height: 30px; }

/* ==========================================================================
   MAC WINDOW CHROME
   ========================================================================== */
.mac-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-white);
  box-shadow: var(--shadow-mac-window);
  border: 1px solid var(--border-on-white);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.mac-window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}
.section-black .mac-window--card {
  background: var(--card-black);
  border-color: var(--border-on-black);
  box-shadow: 0 22px 70px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  background: var(--mac-titlebar);
  border-bottom: 1px solid var(--mac-separator);
}
.mac-titlebar--compact { min-height: 32px; padding: 0 12px; }
.mac-titlebar--dark {
  background: var(--mac-titlebar-dark);
  border-bottom-color: var(--mac-separator-dark);
}
.mac-titlebar--dark .mac-titlebar-title { color: var(--text-light-muted); }

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.mac-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.mac-light--close { background: var(--mac-red); }
.mac-light--minimize { background: var(--mac-yellow); }
.mac-light--zoom { background: var(--mac-green); }

.mac-titlebar-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  letter-spacing: -0.01em;
  padding-right: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-window-content { background: inherit; }

.mac-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mac-green);
  box-shadow: 0 0 0 2px rgba(40, 200, 64, 0.2);
  flex-shrink: 0;
}

.mac-app-tile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mac-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-on-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   NAVBAR
   Default: transparent, logo left, links centered, resume right
   Condensed (past hero): macOS menu bar — glass pill, logo + small links left
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 20px;
  transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: var(--radius-rect);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Flatten nav-left so logo, links, actions participate in the 3-col grid */
.nav-left {
  display: contents;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  grid-column: 1;
}

.logo-mark {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1;
  white-space: nowrap;
  display: block;
  flex-shrink: 0;
  transition: font-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer .logo-mark {
  color: var(--text-light);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  grid-column: 2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  grid-column: 3;
}

/* macOS-style condensed glass bar after scrolling past hero */
.site-nav.nav-condensed {
  padding: 10px 20px;
}

.site-nav.nav-condensed .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  padding: 6px 12px 6px 10px;
  background: var(--mac-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-rect);
}

.site-nav.nav-condensed .nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.site-nav.nav-condensed .nav-logo {
  justify-self: unset;
  grid-column: unset;
  flex-shrink: 0;
}

.site-nav.nav-condensed .logo-mark {
  font-size: 1.05rem;
}

.site-nav.nav-condensed .nav-links {
  justify-self: unset;
  grid-column: unset;
  gap: 0;
  margin-left: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav.nav-condensed .nav-links::-webkit-scrollbar { display: none; }

.site-nav.nav-condensed .nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.site-nav.nav-condensed .nav-actions {
  justify-self: unset;
  grid-column: unset;
  flex-shrink: 0;
  margin-left: 12px;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover { color: var(--text-dark); background: rgba(0,0,0,0.05); }

.nav-link.active {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.btn-nav-resume {
  background: var(--text-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.35s ease, background 0.25s ease;
}
.btn-nav-resume:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
  color: #fff;
  background: var(--black-bg);
}
.nav-condensed .btn-nav-resume { padding: 8px 18px; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(0,0,0,0.08); }

.mobile-menu {
  max-width: 1220px;
  margin: 8px auto 0;
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  background: var(--mac-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.mobile-menu.open {
  max-height: 480px;
  opacity: 1;
  padding: 16px 28px 20px;
}
.site-nav.nav-condensed .mobile-menu {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.site-nav.nav-condensed .mobile-menu.open {
  padding: 14px 20px 18px;
}
.mobile-link {
  padding: 11px 4px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--mac-separator);
}
.mobile-resume { margin-top: 14px; text-align: center; }

@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .nav-actions .btn-nav-resume { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-left { display: flex; align-items: center; }
  .nav-logo { grid-column: unset; justify-self: unset; }
  .nav-actions { grid-column: unset; justify-self: unset; }

  .site-nav.nav-condensed .nav-inner {
    max-width: 100%;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary-pill {
  background: var(--text-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.35);
  color: #fff;
  background: var(--black-bg);
}

.btn-outline-sm, .btn-primary-sm {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.btn-outline-sm {
  border: 1px solid var(--border-on-black);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}
.btn-outline-sm:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-primary-sm {
  background: var(--text-light);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary-sm:hover { background: #fff; color: var(--text-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--white-bg);
}

.hero-bg-orb {
  position: absolute;
  top: -10%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-row { position: relative; z-index: 1; padding: 60px 0 40px; }

.hero-wave {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  margin-bottom: 6px;
}
.wave-emoji { display: inline-block; animation: wave 2.4s infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-highlight {
  color: var(--text-dark);
}

.hero-typing {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 22px;
  min-height: 1.6em;
  display: flex;
  align-items: center;
}
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--text-dark);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dark-muted);
  display: block;
}

.hero-photo-col { display: flex; justify-content: center; margin-top: 40px; }
.hero-window { max-width: 420px; width: 100%; margin: 0 auto; }
.hero-photo-wrap { position: relative; width: 100%; }
.hero-photo {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 7/8;
  object-fit: cover;
  display: block;
}
.hero-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--mac-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  animation: bob 2.4s infinite ease-in-out;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

@media (max-width: 991.98px) {
  .hero-section { min-height: auto; padding-bottom: 40px; }
  .hero-window { max-width: 300px; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   SECTIONS — alternating white / black
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section-white { background: var(--white-bg); color: var(--text-dark); }
.section-black { background: var(--black-bg); color: var(--text-light); }

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 12px;
}
.section-black .section-eyebrow { color: var(--text-light-muted); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 48px;
  display: block;
}
.section-white .section-sub { color: var(--text-dark-muted); }
.section-black .section-sub { color: var(--text-light-muted); }
.section-white h2.section-title { margin-bottom: 48px; }
#profile .section-eyebrow { margin-bottom: 32px; }

.card-surface {
  border-radius: var(--radius-md);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.section-white .card-surface {
  background: var(--card-white);
  border: 1px solid var(--border-on-white);
  box-shadow: var(--shadow-soft);
}
.section-black .card-surface {
  background: var(--card-black);
  border: 1px solid var(--border-on-black);
}
.card-surface:hover { transform: translateY(-4px); }
.section-white .card-surface:hover { box-shadow: var(--shadow-soft-lg); }
.section-black .card-surface:hover { border-color: rgba(255,255,255,0.2); }

/* ==========================================================================
   PROFILE SECTION
   ========================================================================== */
.profile-name { font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; }
.profile-role { color: var(--text-dark-muted); font-weight: 500; margin-bottom: 22px; }

.profile-meta { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; border: 1px solid var(--border-on-white); border-radius: var(--radius-sm); overflow: hidden; background: var(--card-white); }
.profile-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 12px 14px;
  border-bottom: 1px solid var(--mac-separator);
}
.profile-meta li:last-child { border-bottom: none; }
.profile-meta .mac-icon { color: var(--text-dark-muted); }

.profile-intro { color: var(--text-dark-muted); line-height: 1.7; margin-bottom: 28px; display: block; }

.profile-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.skill-category { margin-bottom: 18px; }
.skill-cat-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.skill-logo-row { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-mac-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F5F5F7;
  border: 1px solid var(--border-on-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-mac-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.skill-mac-tile--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-on-black);
  color: var(--text-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.section-black .skill-mac-tile--dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.skill-logo {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-on-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.skill-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-black .skill-logo {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-on-black);
}

.tech-cat-card .skill-logo { width: 36px; height: 36px; border-radius: 8px; }

.profile-resume-btn { margin: 12px 0 26px; }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-white);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-dark);
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--text-dark); border-color: var(--text-dark); color: #fff; transform: translateY(-3px); }
.section-black .social-row a,
.site-footer .social-row a { border-color: var(--border-on-black); color: var(--text-light); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border-on-white);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot {
  position: absolute;
  left: -26px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-dark);
  border: 3px solid var(--white-bg);
  box-shadow: 0 0 0 2px var(--text-dark);
}
.timeline-content { padding: 22px 24px; }
.timeline-company {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-on-white);
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.timeline-company h5 { margin-top: 6px; }
.timeline-date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
.timeline-content h5 { font-size: 1.05rem; font-weight: 700; margin: 8px 0 2px; }
.timeline-org { font-size: 0.88rem; font-weight: 600; color: var(--text-dark-muted); margin-bottom: 10px; }
.timeline-content p { color: var(--text-dark-muted); font-size: 0.9rem; line-height: 1.6; }
.timeline-points { margin: 0; padding-left: 18px; color: var(--text-dark-muted); font-size: 0.89rem; line-height: 1.8; }

/* ==========================================================================
   TECH SECTION
   ========================================================================== */
.tech-cat-card { padding: 20px 16px; height: 100%; }
.tech-cat-card h6 { font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }

.featured-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }

.project-img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: 0; }
.project-card { overflow: hidden; height: 100%; }
.project-body { padding: 22px; }
.project-tech { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.project-tech span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light-muted);
  border: 1px solid var(--border-on-black);
}
.project-body h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.project-body p { color: var(--text-light-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 18px; }
.project-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   PUBLICATIONS
   ========================================================================== */
.pub-feature-card { overflow: hidden; }
.pub-feature-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.pub-feature-body { padding: 34px; }
.pub-feature-body h5 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.pub-authors { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.pub-date-inline { font-size: 0.82rem; color: var(--text-dark-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.pub-abstract { color: var(--text-dark-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; display: block; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-card { padding: 28px 22px; height: 100%; }
.service-card h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-light-muted); font-size: 0.86rem; line-height: 1.55; }

/* ==========================================================================
   CONTACT — info cards
   ========================================================================== */
.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  height: 100%;
}
.contact-card .mac-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-dark);
  flex-shrink: 0;
  box-sizing: content-box;
}
.contact-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card h6 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0; }
.contact-card p { font-size: 0.82rem; color: var(--text-dark-muted); word-break: break-word; }
a.contact-card:hover { transform: translateY(-3px); }

/* ==========================================================================
   FOOTER — premium, taller
   ========================================================================== */
.site-footer {
  background: var(--black-bg);
  color: var(--text-light);
  padding: 90px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.footer-brand .nav-logo { margin-bottom: 22px; display: inline-flex; }
.footer-intro { color: var(--text-light-muted); font-size: 0.95rem; line-height: 1.7; max-width: 420px; margin-bottom: 26px; display: block; }

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: 0.95rem; color: var(--text-light-muted); transition: color 0.25s ease, padding-left 0.25s ease; width: fit-content; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-divider { border-color: var(--border-on-black); margin: 56px 0 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--text-light-muted); }

@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 64px 0 26px; }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--mac-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); background: #fff; }

/* ==========================================================================
   RESPONSIVE FINE-TUNING
   ========================================================================== */
@media (max-width: 767.98px) {
  .section { padding: 76px 0; }
  .hero-section { padding-top: calc(var(--nav-height) - 10px); }
}

@media (max-width: 575.98px) {
  .nav-inner { padding: 12px 18px; }
  .site-nav { padding: 16px 14px; }
  .site-nav.nav-condensed { padding: 8px 14px; }
  .site-nav.nav-condensed .nav-inner { padding: 6px 10px; }
  .logo-mark { font-size: 1.2rem; }
  .site-nav.nav-condensed .logo-mark { font-size: 0.95rem; }
}
