/* Natalie Do: MIS portfolio (Apple.com-inspired light) */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f5f5f7;
  --bg-pill: rgba(251, 251, 253, 0.82);
  --text: #424245;
  --text-secondary: #6e6e73;
  --text-bright: #424245;
  --text-heading: #1d1d1f;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-subtle: rgba(0, 113, 227, 0.08);
  --accent-border: rgba(0, 113, 227, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Menlo", monospace;
  --radius-lg: 1.125rem;
  --radius-xl: 1.375rem;
  --max: 1120px;
  --content-max: 72rem;
  --intro-max: 42rem;
  --nav-offset: 5.5rem;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

[hidden] {
  display: none !important;
}

@keyframes tabEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.59;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 60% at 50% -15%, rgba(0, 113, 227, 0.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
  color: var(--text-heading);
}

.font-semibold {
  font-weight: 600;
}

.text-heading {
  color: var(--text-heading);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.page {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 3.75rem);
  overflow-x: clip;
  padding: 1.75rem 1.25rem 2.75rem;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 70% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 58%);
}

@media (min-width: 640px) {
  .page {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  height: 14rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(0, 113, 227, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(0, 113, 227, 0.04), transparent 55%);
  filter: blur(48px);
  opacity: 1;
}

/* Top bar */
.top-bar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 3rem;
  width: min(100%, var(--content-max));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-size: clamp(1rem, 2.9vw, 1.25rem);
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.022em;
  line-height: 1.2;
  max-width: min(52vw, 14rem);
}

@media (min-width: 480px) {
  .logo-mark {
    max-width: none;
  }
}

.logo-accent {
  display: block;
  width: 3px;
  height: 1.35em;
  flex-shrink: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, #42a1ff 100%);
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .logo-text {
    overflow: visible;
    text-overflow: unset;
  }
}

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

.logo-mark:hover .logo-accent {
  opacity: 0.92;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.icon-link:active {
  transform: scale(0.94);
}

.icon-link--mail {
  color: var(--text-secondary);
}

.icon-link--mail:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-heading);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

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

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

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
}

/* Pill nav */
.pill-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pill-nav a:hover {
  color: var(--text-heading);
}

.pill-nav a.is-active {
  color: var(--text-heading);
  font-weight: 600;
}

.pill-nav--desktop {
  position: fixed;
  top: 2rem;
  left: 50%;
  z-index: 50;
  display: none;
  transform: translateX(-50%);
}

@media (min-width: 640px) {
  .pill-nav--desktop {
    display: flex;
  }
}

.pill-nav--desktop {
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.5rem;
  column-gap: 1.25rem;
  max-width: min(100%, 52rem);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-pill);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pill-nav--mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100%, var(--content-max));
  padding: 0;
  border-bottom: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.pill-nav--mobile.is-open {
  max-height: 520px;
  opacity: 1;
  visibility: visible;
  padding: 0.75rem 0 1rem;
  border-bottom-color: var(--border);
}

@media (min-width: 640px) {
  .pill-nav--mobile {
    display: none;
  }
}

.main {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.main section.tab-enter {
  animation: tabEnter 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: reduce) {
  .main section.tab-enter {
    animation: none;
  }
}

.portfolio-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: 1rem;
}

.tab-banner {
  width: 100%;
  padding: clamp(0.95rem, 2.4vw, 1.25rem) 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--accent);
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 113, 227, 0.08), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(0, 113, 227, 0.05), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #f6f8fc 55%, #eef3fb 100%);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.tab-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--text-heading);
}

/* Intro: portfolio hero (stacked mobile, sidebar + story desktop) */
.intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2rem;
  font-weight: 500;
  scroll-margin-top: var(--nav-offset);
}

@media (min-width: 900px) {
  .intro {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .intro-sidebar {
    position: sticky;
    top: var(--nav-offset);
  }
}

.intro-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .intro-panel {
    padding: 1.5rem 1.35rem;
  }
}

.intro-main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  max-width: var(--intro-max);
}

.intro-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: none;
}

.intro-highlights li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.intro-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.intro-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .intro-avatar {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.intro-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.038em;
}

.intro-title-name {
  font-size: clamp(2.85rem, 8vw, 4.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: var(--text-heading);
}

.intro-title-tagline {
  display: block;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.022em;
  color: var(--text);
}

.intro-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.link-underline {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.link-underline::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.3s ease, left 0.3s ease, right 0.3s ease;
}

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

.link-underline:hover::after {
  left: 0;
  right: auto;
  width: 100%;
}

.intro-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 480px) {
  .intro-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.home-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 0.7rem;
  max-width: 44rem;
}

@media (min-width: 640px) {
  .home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-shortcut-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.2rem;
  padding: 1.1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--bg-elevated-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.home-shortcut-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
  background: #fff;
  transform: translateY(-2px);
}

.home-shortcut-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.home-shortcut-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.home-shortcut-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-shortcut-card:hover .home-shortcut-arrow {
  transform: translate(2px, -2px);
  background: rgba(0, 113, 227, 0.16);
}

.home-shortcut-sub {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.cta-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta-pill--primary {
  background: var(--accent);
  color: #fff;
}

.cta-pill--primary:hover {
  background: var(--accent-hover);
}

.cta-pill--primary:active {
  transform: scale(0.98);
}

.cta-pill--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cta-pill--secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.cta-pill--secondary:active {
  transform: scale(0.98);
}

.icon-arrow {
  flex-shrink: 0;
}

/* MIS portfolio sections */
.mis-section {
  width: 100%;
  padding-block: clamp(0.85rem, 2vw, 1.25rem);
  scroll-margin-top: var(--nav-offset);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.intro {
  padding-bottom: 0.5rem;
}

.section-header {
  margin-bottom: clamp(0.7rem, 1.8vw, 1rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-title-main {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-heading);
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

/* Education */
.edu-card {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.edu-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.edu-school {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.edu-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text);
}

.edu-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  background: var(--accent-subtle);
}

.edu-degrees {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.edu-gpa {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.coursework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .coursework-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.5rem;
  }
}

.coursework-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.coursework-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
}

.coursework-list li {
  margin-bottom: 0.35rem;
}

.edu-note {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Experience */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .exp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .exp-card--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .exp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exp-card--featured {
    grid-column: 1 / -1;
  }
}

.exp-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-card-hover);
}

.exp-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-heading);
}

.exp-org {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.exp-dates {
  margin: 0.2rem 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.exp-bullets {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
}

.exp-bullets li {
  margin-bottom: 0.35rem;
}

.exp-card--featured {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.cert-block {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.cert-block--wide {
  grid-column: 1 / -1;
}

.cert-block--featured {
  grid-column: 1 / -1;
}

.cert-image-wrap {
  margin: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.cert-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cert-image-grid:has(.cert-image-wrap:only-child) {
  max-width: 28rem;
}

@media (min-width: 768px) {
  .cert-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cert-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cert-image {
  display: block;
  width: 100%;
  height: auto;
}

.cert-image-caption {
  margin: 0;
  padding: 0.55rem 0.7rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated-soft);
}

.cert-block--featured .cert-list {
  margin-top: 0.85rem;
}

.cert-provider {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
}

.cert-list li {
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .cert-list--cols {
    column-count: 2;
    column-gap: 2rem;
  }

  .cert-list--cols li {
    break-inside: avoid;
  }
}

/* Skills */
.skills-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-dual {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.skills-column {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.skills-column-title {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-pills li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-elevated-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stack-pills li:hover {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

.stack-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text);
  max-width: 36rem;
}

/* Selected work samples: equal cards, capped width for balance */
.samples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  width: min(100%, 64rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .samples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  .samples-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sample-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  min-width: 0;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sample-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
}

.sample-visual {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.55);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

.sample-visual--process {
  background:
    linear-gradient(155deg, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
    linear-gradient(125deg, #e8f2fc 0%, #b8d9f8 35%, #6eb3f0 65%, #0071e3 115%);
}

.sample-visual--data {
  background:
    linear-gradient(155deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
    linear-gradient(125deg, #eef8f5 0%, #c5ebe0 45%, #5ec9b0 80%, #0d8064 120%);
}

.sample-showcase--amazon {
  padding: clamp(0.65rem, 1.75vw, 0.9rem);
}

.sample-visual--amazon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.45rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(145deg, #ffffff 0%, #fff4e4 48%, #ffe2b8 100%);
  color: #232f3e;
}

.amazon-logo {
  display: block;
  width: min(58%, 11.5rem);
  height: auto;
}

.amazon-visual-label {
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(35, 47, 62, 0.08);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #232f3e;
}

/* Laptop device mockup (project screenshot) */
.sample-showcase {
  margin: 0;
  padding: clamp(0.65rem, 1.75vw, 0.95rem);
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #f4f4f6 0%, #e8e8ed 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.laptop-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.laptop-lid {
  width: 100%;
}

.laptop-bezel {
  position: relative;
  padding: 0.5rem 0.5rem 0.4rem;
  border-radius: 0.7rem 0.7rem 0.2rem 0.2rem;
  background: linear-gradient(160deg, #4a4a4c 0%, #2d2d2f 35%, #1d1d1f 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 32px rgba(0, 0, 0, 0.14);
}

.laptop-notch {
  position: absolute;
  top: 0.42rem;
  left: 50%;
  z-index: 2;
  width: min(18%, 4.25rem);
  height: 0.48rem;
  transform: translateX(-50%);
  background: #0a0a0a;
  border-radius: 0 0 0.45rem 0.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.laptop-display {
  position: relative;
  margin-top: 0.2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.laptop-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.laptop-hinge {
  width: 99%;
  height: 3px;
  margin-top: -1px;
  border-radius: 1px;
  background: linear-gradient(90deg, #3a3a3c, #6e6e73, #3a3a3c);
  opacity: 0.95;
}

.laptop-base {
  display: flex;
  width: 94%;
  max-width: 40rem;
  justify-content: center;
  padding: 0.2rem 0.5rem 0.35rem;
  border-radius: 0 0 0.65rem 0.65rem;
  background: linear-gradient(180deg, #c4c4c8 0%, #8e8e93 42%, #6e6e73 100%);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.laptop-base-well {
  width: 28%;
  max-width: 6.5rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sample-showcase--slide {
  padding: clamp(0.65rem, 1.75vw, 0.9rem);
}

.sample-slide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sample-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.sample-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.sample-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sample-meta a {
  color: var(--accent);
}

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

/* Contact */
.contact-section {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.contact-section.mis-section {
  border-top: 1px solid var(--border);
}

.contact-lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.contact-form.contact-panel {
  max-width: 36rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.contact-form-header {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.contact-sub {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.6;
}

.contact-email-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--accent-hover);
}

.contact-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.contact-fields {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-row {
    flex-direction: row;
  }
}

.field {
  width: 100%;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
}

.req {
  color: #b91c1c;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-elevated-soft);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 7rem;
  border-radius: var(--radius-lg);
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(0, 113, 227, 0.35);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.contact-submit-wrap {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 480px) {
  .contact-submit-wrap {
    justify-content: flex-end;
  }
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-send:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-send:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-send:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  width: min(100%, var(--content-max));
  padding: 1.5rem 0 0;
}

.footer-inner--desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner--desktop {
    display: flex;
  }

  .footer-inner--mobile {
    display: none;
  }
}

.footer-inner--mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner--mobile {
    display: none;
  }
}

.footer-left p,
.footer-mobile-row p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-loc {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
}

.footer-mark {
  display: block;
  width: 2px;
  height: 1.25rem;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), #5ac8fa);
  opacity: 0.85;
  flex-shrink: 0;
}

.footer-mobile-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 420px) {
  .footer-mobile-row {
    justify-content: space-between;
  }
}
