/* ============================================================
   PORTFOLIO — KEPHAS NGUYEN
   Ink / Parchment / Periwinkle
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --ink:        #0A0A0A;
  --parchment:  #F5F3EF;
  --periwinkle: #B0B4F0;
  --indigo:     #6366A8;
  --ash:        #6E6E6E;
  --void:       #1A1A2A;

  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1440px;
  --px:  clamp(20px, 2.5vw, 40px);
  --py:  clamp(40px, 6vw, 80px);

  --hover-accent: #DCCFF0;
  --shadow-card:  1px 2px 6px rgba(0, 0, 0, 0.05),
                  3px 8px 20px rgba(0, 0, 0, 0.09);
  --ink-soft:     #3A3A3A;

  --nav-h:  68px;
  --pt-page: max(140px, calc(var(--py) + 80px));
}

/* ── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}

h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }

p { line-height: 1.72; }

/* ── Type Scale ─────────────────────────────────────────── */
.t-hero    { font-size: clamp(2.75rem, 8vw, 5.5rem); }
.t-heading { font-size: clamp(1.75rem, 4vw, 3rem); }
.t-sub     { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.t-body    { font-size: 1rem; }
.t-sm      { font-size: 0.9375rem; }
.t-xs      { font-size: 0.8125rem; }

.t-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section        { padding-block: var(--py); border-top: 1px solid #E5E5E5; background: #ffffff; }
.section--dark  { background: var(--ink);  color: var(--parchment); border-top: none; }
.section--void  { background: var(--void); color: var(--parchment); border-top: none; }
.section--light { background: #F7F7F7;     color: var(--ink);       border-top: 1px solid #E5E5E5; }
.section--white { background: #ffffff;     color: var(--ink);       border-top: 1px solid #E5E5E5; }

/* 60 / 40 two-column split */
.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
.split--flip { grid-template-columns: 2fr 3fr; }

@media (max-width: 800px) {
  .split, .split--flip { grid-template-columns: 1fr; }
}

.split--spaced { margin-bottom: clamp(32px, 5vw, 56px); }
.section h2    { margin-bottom: 40px; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 20px var(--px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  will-change: backdrop-filter;
}

.js-ready .nav { transition: background 0.3s, backdrop-filter 0.3s; }

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav__logo img {
  height: 28px;
  width: auto;
}
.nav__logo:hover { opacity: 0.55; }

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--parchment);
  opacity: 0.55;
  letter-spacing: 0.01em;
}

.js-ready .nav__links a { transition: opacity 0.2s, color 0.2s; }
.nav__links a:hover   { opacity: 1; color: var(--hover-accent); }
.nav__links a.active  { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--py) var(--px);
  padding-top: var(--pt-page);
}

.hero__bg-slash {
  position: absolute;
  top: 50%;
  left: -0.05em;
  transform: translateY(-58%);
  font-family: var(--font-display);
  font-size: clamp(220px, 42vw, 460px);
  font-weight: 300;
  line-height: 1;
  color: #444444;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.55);
  margin-bottom: 14px;
}

.hero__name {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 24px;
  cursor: url("../images/navigation-cursor.png") 0 0, auto;
  transition: color 0.25s ease;
}
.hero__name:hover { color: var(--hover-accent); }

.hero__hover-word {
  cursor: url("../images/navigation-cursor.png") 0 0, auto;
  transition: color 0.25s ease;
}
.hero__hover-word:hover { color: var(--hover-accent); }

.hero__statement {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(245, 243, 239, 0.6);
  line-height: 1.65;
  margin-bottom: 52px;
}

.hero__portrait {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 99;
}
.hero__portrait.visible { opacity: 1; }
.hero__portrait[data-key="me"],
.hero__portrait[data-key="games"] { width: 720px; }
.hero__portrait[data-key="food"],
.hero__portrait[data-key="anime"] { width: 520px; }

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 243, 239, 0.6);
  text-decoration: none;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: color 0.2s;
}
.hero__scroll-hint:hover { color: var(--hover-accent); }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Home Work Grid ─────────────────────────────────────── */
.work-section { background: #F7F7F7; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(10, 10, 10, 0.2);
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: #F7F7F7;
  overflow: hidden;
}

.work-card__img {
  overflow: hidden;
  padding: 20px;
}

.work-card__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover .work-card__img img {
  transform: scale(1.06);
  border-radius: 0;
}

.work-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 32px;
}

.work-card__num {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: var(--ash);
  margin-bottom: 4px;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.work-card__cta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ash);
  white-space: nowrap;
  transition: color 0.2s;
}
.work-card:hover .work-card__cta { color: #444444; text-decoration: underline; text-underline-offset: 3px; }

.nda-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ash);
  margin-bottom: 24px;
}

/* ── Image Placeholder ──────────────────────────────────── */
.img-placeholder {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: #181818;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.img-placeholder--tall   { min-height: 480px; }
.img-placeholder--medium { min-height: 300px; }
.img-placeholder--short  { min-height: 180px; }

.section--light .img-placeholder,
.img-placeholder--light { background: #E5E5E5; }

/* Label shown while image loads */
.img-placeholder::before {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}

.section--light .img-placeholder::before,
.img-placeholder--light::before { color: #AEAAA4; }

/* Image covers placeholder, hidden until loaded */
.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Loaded: reveal at natural aspect ratio, collapse wrapper */
.img-placeholder.img-loaded {
  min-height: unset;
  background: transparent;
}

.img-placeholder.img-loaded::before { display: none; }

.img-placeholder.img-loaded img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: unset;
  opacity: 1;
}

/* ── Case Study Header ──────────────────────────────────── */
.case-header {
  background: var(--ink);
  color: var(--parchment);
  padding-top: var(--pt-page);
  padding-bottom: var(--py);
}


.case-text h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 24px; }
.case-text p {
  color: rgba(245, 243, 239, 0.65);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid rgba(245, 243, 239, 0.3);
  border-radius: 6px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-download:hover {
  background: rgba(245, 243, 239, 0.08);
  border-color: rgba(245, 243, 239, 0.6);
}

/* ── Iteration Label ────────────────────────────────────── */
.iter-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 24px;
}
.section--dark .iter-label,
.section--void .iter-label { color: rgba(176, 180, 240, 0.55); }

/* ── Labeled Heading (main title + right-side sub) ─────── */
h2.h2-labeled {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.h2-sub {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--ash);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Text Content ───────────────────────────────────────── */
.text-content h2 { margin-bottom: 20px; }

.text-content p {
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.text-content p + p { margin-top: 16px; }
.text-content p strong { color: var(--ink-soft); }

.section--dark .text-content p,
.section--void .text-content p { color: rgba(245, 243, 239, 0.72); }
.section--dark .text-content p strong,
.section--void .text-content p strong { color: var(--parchment); }


/* ── Insight Cards ──────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.insight-card {
  background: #FFFFFF;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid #E5E5E5;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}


.insight-card__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
}

.insight-card__title::after {
  content: '';
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--periwinkle);
  margin-left: 16px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(176, 180, 240, 0.55);
  }
  60% {
    opacity: 0.9;
    box-shadow: 0 0 0 7px rgba(176, 180, 240, 0);
  }
}

.insight-card__body {
  font-size: 0.9375rem;
  color: var(--ash);
  line-height: 1.72;
}

.insight-card__body strong { color: var(--ink-soft); }

/* ── SUS Visualization ──────────────────────────────────── */
.sus-section {
  background: #FFFFFF;
  padding-block: var(--py);
  border-top: 1px solid #E5E5E5;
}

.sus-section h2 { margin-bottom: 16px; }

.sus-intro {
  max-width: 560px;
  font-size: 0.9375rem;
  color: var(--ash);
  line-height: 1.72;
  margin-bottom: 56px;
}

.sus-intro strong { color: var(--ink-soft); }

.sus-group { margin-bottom: 52px; }
.sus-group:last-of-type { margin-bottom: 0; }

.sus-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.sus-meta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash);
}

.sus-meta-score {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.sus-meta-score.above-benchmark { color: #2A7A48; }

.sus-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  overflow: visible;
  margin-bottom: 12px;
  background: linear-gradient(to right,
    #D94F4F 0%,   #D94F4F 22%,
    #D68B3C 22%,  #D68B3C 42%,
    #CDB845 42%,  #CDB845 58%,
    #78C46E 58%,  #78C46E 76%,
    #3DA86A 76%,  #3DA86A 90%,
    #2BB8A8 90%,  #2BB8A8 100%
  );
}

.sus-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.sus-benchmark-line {
  position: absolute;
  top: -20px;
  left: 68%;
  width: 1px;
  height: calc(100% + 36px);
  background: var(--ash);
  opacity: 0.45;
  z-index: 1;
}

.sus-benchmark-line::after {
  content: 'benchmark 68';
  position: absolute;
  top: -15px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--ash);
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.sus-zones {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.sus-zones span { flex: 1; text-align: center; }

.sus-footnote {
  margin-top: 48px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ash);
  line-height: 1.65;
}


/* ── Image Grids ────────────────────────────────────────── */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.img-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 800px) {
  .img-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .img-grid-2,
  .img-grid-4 { grid-template-columns: 1fr; }
}


/* ── About ──────────────────────────────────────────────── */
.about-header {
  background: var(--ink);
  color: var(--parchment);
  padding-top: var(--pt-page);
  padding-bottom: var(--py);
}

.about-body {
  background: var(--parchment);
  padding-block: var(--py);
}

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 72px;
}

.focus-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding-block: 28px;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.focus-item:last-child { border-bottom: 1px solid rgba(10, 10, 10, 0.08); }

.focus-item__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ash);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.focus-item__desc {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--ink);
  max-width: 480px;
}

@media (max-width: 640px) {
  .focus-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Contact ────────────────────────────────────────────── */
.contact-block {
  background: var(--void);
  color: var(--parchment);
  padding: 80px var(--px);
}

.contact-block .t-label { margin-bottom: 20px; }

.contact-block a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--parchment);
  border-bottom: 1px solid rgba(245, 243, 239, 0.2);
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-block a:hover {
  color: var(--periwinkle);
  border-color: var(--periwinkle);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--ash);
  padding: 28px var(--px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__links { display: flex; gap: 24px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--parchment); }

/* ── Zoom Pill ──────────────────────────────────────────── */
.zoom-pill {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 40;
}

.zoom-pill__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  padding: 10px 16px 10px 8px;
  cursor: pointer;
  user-select: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.12);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.zoom-pill--dark .zoom-pill__label {
  background: rgba(48, 48, 47, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.24),
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.zoom-pill__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.zoom-pill__switch {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(10, 10, 10, 0.15);
  border-radius: 100px;
  flex-shrink: 0;
  transition: background 0.25s;
}

.zoom-pill--dark .zoom-pill__switch {
  background: rgba(245, 243, 239, 0.2);
}

.zoom-pill__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-pill__input:checked ~ .zoom-pill__switch        { background: #172985; }
.section-pill--teal ~ .zoom-pill
  .zoom-pill__input:checked ~ .zoom-pill__switch      { background: #377792; }
.zoom-pill__input:checked ~ .zoom-pill__switch::after { transform: translateX(14px); }

.zoom-pill__text {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
  white-space: nowrap;
  transition: color 0.2s;
}

.zoom-pill--dark .zoom-pill__text                    { color: rgba(245, 243, 239, 0.40); }
.zoom-pill__input:checked ~ .zoom-pill__text         { color: #172985; }
.section-pill--teal ~ .zoom-pill
  .zoom-pill__input:checked ~ .zoom-pill__text       { color: #377792; }
.zoom-pill--dark .zoom-pill__input:checked
  ~ .zoom-pill__text                                 { color: #ffffff; }
.section-pill--teal ~ .zoom-pill--dark
  .zoom-pill__input:checked ~ .zoom-pill__text       { color: #ffffff; }

.zoom-lens {
  position: fixed;
  width: 720px;
  height: 540px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  display: none;
  z-index: 100;
  background-repeat: no-repeat;
  background-color: #0A0A0A;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.zoom-enabled img { cursor: zoom-in; }

/* ── Section Navigation Pill ────────────────────────────── */
.section-pill {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100vw - 48px);
}

.section-pill__track {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.12);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Dark variant: pill over dark section backgrounds */
.section-pill--dark .section-pill__track {
  background: rgba(48, 48, 47, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.24),
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.section-pill--dark .section-pill__item        { color: rgba(245, 243, 239, 0.40); }
.section-pill--dark .section-pill__item.active { color: #ffffff; }
.section-pill--dark .section-pill__item:hover  { color: rgba(245, 243, 239, 0.75); }

/* Teal variant — Automotive */
.section-pill--teal .section-pill__indicator   { background: #377792; }

.section-pill__track::-webkit-scrollbar { display: none; }

.section-pill__indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: 100px;
  background: #172985;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.section-pill__item {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
  padding: 9px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.2s;
  z-index: 1;
  flex-shrink: 0;
}

.section-pill__item.active { color: #ffffff; font-weight: 600; }
.section-pill__item:hover  { color: rgba(10, 10, 10, 0.75); }

/* ── Scroll Animations ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger delay for sibling .fade-up elements */
.stagger .fade-up:nth-child(1) { transition-delay: 0.04s; }
.stagger .fade-up:nth-child(2) { transition-delay: 0.11s; }
.stagger .fade-up:nth-child(3) { transition-delay: 0.18s; }
.stagger .fade-up:nth-child(4) { transition-delay: 0.25s; }

/* ── Utilities ──────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.c-ash         { color: var(--ash); }
.c-periwinkle  { color: var(--periwinkle); }
.c-parchment   { color: var(--parchment); }
.c-white       { color: #ffffff; }

.divider {
  border: none;
  border-top: 1px solid rgba(10, 10, 10, 0.09);
  margin-block: clamp(32px, 5vw, 56px);
}

/* ── Resume Page ─────────────────────────────────────────── */
.resume-header {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.resume-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

