/* ============================================================
   MARK AUMAN — PORTFOLIO
   Design System & Global Styles
   ============================================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Backgrounds */
  --bg-0: #06090F;
  --bg-1: #0C1018;
  --bg-2: #111520;
  --bg-3: #171C28;
  --bg-card: #0F1320;
  --bg-card-hover: #141829;

  /* Text */
  --text-1: #EDF0F8;
  --text-2: #8892A8;
  --text-3: #50586A;

  /* Accent — Gold */
  --accent: #FFB700;
  --accent-light: #FFCC44;
  --accent-dark: #CC9200;
  --accent-dim: rgba(255, 183, 0, 0.10);
  --accent-glow: 0 0 40px rgba(255, 183, 0, 0.18);

  /* Borders */
  --border-0: rgba(255, 255, 255, 0.04);
  --border-1: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --border-3: rgba(255, 255, 255, 0.22);

  /* Fonts */
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max-w: 1160px;
  --nav-h: 68px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Transitions */
  --t-fast: 140ms ease;
  --t-base: 240ms ease;
  --t-slow: 380ms ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.65);
  --shadow-accent: 0 8px 32px rgba(255, 183, 0, 0.25);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text-1);
}

.display {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
}

.h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -1.5px; }
.h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1px; }
.h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.5px; }
.h4 { font-size: 20px; font-weight: 700; }
.h5 { font-size: 17px; font-weight: 600; }

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-2);
  font-weight: 400;
}

.body-text { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.small { font-size: 14px; line-height: 1.6; }
.caption {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Colour utilities */
.text-accent   { color: var(--accent); }
.text-2        { color: var(--text-2); }
.text-3        { color: var(--text-3); }
.text-white    { color: var(--text-1); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section {
  padding: var(--s-10) 0;
}

.section-sm {
  padding: var(--s-8) 0;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-family: var(--font-heading);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  transition: color var(--t-fast);
}
.navbar__logo span { color: var(--accent); }
.navbar__logo:hover { color: var(--accent); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.navbar__link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar__link:hover { color: var(--text-1); background: var(--border-0); }
.navbar__link.is-active { color: var(--text-1); }

.navbar__resume {
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  font-family: var(--font-heading);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.navbar__resume:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-accent);
}

/* Mobile hamburger (hidden by default) */
.navbar__burger { display: none; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 30px;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.btn-ghost:hover { opacity: 0.75; }

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* Arrow icon for links */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t-fast), opacity var(--t-fast);
  font-family: var(--font-heading);
}
.arrow-link:hover { gap: 10px; }

/* === TAGS / PILLS === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border-1);
  font-family: var(--font-heading);
}

.tag-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(255, 183, 0, 0.22);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* === IMAGE PLACEHOLDER === */
.img-ph {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--text-3);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255, 255, 255, 0.012) 28px,
    rgba(255, 255, 255, 0.012) 29px
  );
}

.img-ph svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.img-ph span {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* === CARD === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  display: block;
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border-1);
  margin: var(--s-7) 0;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border-1);
  background: var(--bg-1);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--s-8);
  padding: var(--s-8) 0 var(--s-7);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--s-6);
  padding-right: var(--s-6);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: var(--s-2);
}
.footer__brand-name span { color: var(--accent); }

.footer__tagline {
  font-size: 14px;
  color: var(--text-3);
}

.footer__links {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}

.footer__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-0);
  text-align: center;
  padding: var(--s-5) var(--s-6);
  font-size: 13px;
  color: var(--text-3);
}

/* === PAGE HEADER === */
.page-hero {
  padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-9);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-1);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.25;
  filter: blur(6px);
  transform: scale(1.05);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255, 183, 0, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t-fast), gap var(--t-fast);
  margin-bottom: var(--s-6);
  font-family: var(--font-heading);
}
.back-link:hover { color: var(--accent); gap: 12px; }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.anim-fade-up {
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.16s; }
.anim-d3 { animation-delay: 0.24s; }
.anim-d4 { animation-delay: 0.34s; }
.anim-d5 { animation-delay: 0.44s; }


/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(255, 183, 0, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 140, 0, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(255, 183, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 45%;
  opacity: 0.35;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-0) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-0) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--s-10);
  padding-bottom: var(--s-10);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.hero__pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: var(--r-full);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 183, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.hero__pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero__name {
  margin-bottom: var(--s-4);
}

.hero__accent-word {
  color: var(--accent);
  display: inline;
}

.hero__roles {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.3px;
  margin-bottom: var(--s-5);
}

.hero__roles span {
  color: var(--text-3);
  padding: 0 10px;
  font-weight: 400;
}

.hero__bio {
  max-width: 560px;
  margin-bottom: var(--s-7);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
}

.hero__scroll-bar {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: var(--r-full);
  animation: scroll-bar 2s ease infinite;
}

@keyframes scroll-bar {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

/* About Preview */
.about-prev {
  background: var(--bg-1);
}

.about-prev__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--s-9);
  align-items: center;
}

.about-prev__photo {
  position: relative;
}

.about-prev__photo-frame {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
}

.about-prev__photo-frame .img-ph {
  height: 100%;
  border-radius: 0;
}

.about-prev__skill-tags {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.about-prev__body h2 { margin-bottom: var(--s-5); }

.about-prev__body .lead { margin-bottom: var(--s-4); }

.about-prev__body .body-text { margin-bottom: var(--s-6); }

/* Featured Projects */
.featured-projects {
  background: var(--bg-0);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}

.proj-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
  color: inherit;
}

.proj-card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.proj-card__img .img-ph {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.proj-card__img img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.proj-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-3);
}

.proj-card__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.proj-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  transition: color var(--t-fast);
}
.proj-card:hover .proj-card__title { color: var(--accent); }

.proj-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.proj-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  margin-top: var(--s-2);
  transition: gap var(--t-fast);
}
.proj-card:hover .proj-card__cta { gap: 10px; }

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

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero__inner {
  max-width: 720px;
}

.about-hero__content h1 { margin-bottom: var(--s-5); }
.about-hero__content .lead { margin-bottom: var(--s-6); }

.about-story {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0 var(--s-9);
  align-items: start;
}

.about-story__header {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.about-story__photo {
  aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
}

.about-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--border-1);
}

.about-section:first-of-type { border-top: none; }

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.skill-group__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: var(--s-3);
}

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Experience timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-top: var(--s-6);
  position: relative;
  padding-left: var(--s-6);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--border-2);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-6) - 4px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-0);
}

.timeline-item__period {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-1);
}

.timeline-item__role {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-heading);
  margin-bottom: var(--s-1);
}

.timeline-item__org {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}

.timeline-item__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
}

.edu-card__period {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.edu-card__degree {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-heading);
  margin-bottom: var(--s-1);
}

.edu-card__inst {
  font-size: 14px;
  color: var(--text-2);
}

.edu-card__majors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px solid var(--border-1);
  padding-top: 10px;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.projects-header__intro {
  max-width: 600px;
  margin-top: var(--s-4);
}

.projects-category {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--border-1);
}
.projects-category:first-of-type { border-top: none; }

.projects-category__header {
  margin-bottom: var(--s-7);
}

.projects-category__header h2 { margin-bottom: var(--s-3); }
.projects-category__header .body-text { max-width: 580px; }

.projects-all-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: center;
}

.projects-all-grid > .proj-card {
  flex: 1 1 calc((100% - 2 * var(--s-5)) / 3);
  max-width: calc((100% - 2 * var(--s-5)) / 3);
  min-width: 260px;
}

/* ============================================================
   GAME JAMS PAGE
   ============================================================ */

.jams-header__intro {
  max-width: 580px;
  margin-top: var(--s-4);
}

.jams-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-7);
}

.jam-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.jam-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.jam-card__img .img-ph {
  height: 100%;
  min-height: 260px;
  border-radius: 0;
}

.jam-card__img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.jam-card__body {
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
}

.jam-card__event {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-heading);
}

.jam-card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.jam-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.jam-card__meta-row {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}

.jam-card__meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-heading);
  min-width: 60px;
  margin-top: 2px;
}

.jam-card__meta-value {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.jam-card__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.jam-card__actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}

.jam-card__play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--t-fast);
  border: 2px solid var(--accent);
}
.jam-card__play-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */

.project-hero__inner {
  position: relative;
  z-index: 1;
}

.project-hero__type {
  margin-bottom: var(--s-4);
}

.project-hero__title {
  margin-bottom: var(--s-5);
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  margin-top: var(--s-6);
}

.project-hero__meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}
.project-hero__meta-value {
  font-size: 15px;
  color: var(--text-1);
  font-weight: 500;
}

.project-content {
  padding: var(--s-9) 0;
}

.project-content__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-9);
  align-items: start;
}

.project-content__body {
  min-width: 0;
}

.project-content__body h2 { margin-bottom: var(--s-4); }
.project-content__body .body-text { margin-bottom: var(--s-5); }
.project-content__body .body-text:last-child { margin-bottom: 0; }

.project-sidebar__block {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.project-sidebar__block:last-child { margin-bottom: 0; }

.project-sidebar__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-heading);
  margin-bottom: var(--s-4);
}

.project-sidebar__roles {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.project-sidebar__role {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--text-2);
}

.project-sidebar__role::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.project-sidebar__team {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.project-sidebar__member {
  font-size: 14px;
  color: var(--text-2);
}

.project-sidebar__member strong {
  color: var(--text-1);
  font-weight: 600;
}

.project-gallery {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border-1);
}

.project-content > .container > .project-gallery {
  padding-top: 0;
  border-top: none;
}

.project-content > .container > .project-content__inner {
  margin-top: var(--s-7);
}

.project-gallery__title {
  margin-bottom: var(--s-5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-heading);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.project-gallery__grid .img-ph,
.project-gallery__grid iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
}

.project-gallery__grid img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--r-md);
  display: block;
  border: 1px solid var(--border-1);
}

/* === PROCESS FIGURES === */
.process-figure {
  margin: var(--s-6) 0;
  padding: 0;
}

.process-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  border: 1px solid var(--border-1);
}

.process-figure-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin: var(--s-6) 0;
}

.process-figure-pair .process-figure {
  margin: 0;
}

/* === IMAGE CAROUSEL (Splide) === */
.carousel {
  position: relative;
  border-radius: var(--r-md);
}

.carousel .splide__track {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
}

.carousel .splide__slide img,
.carousel .splide__slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(6, 9, 15, 0.65);
  border: 1px solid var(--border-2);
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  cursor: pointer;
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.carousel .splide__arrow:hover {
  background: rgba(6, 9, 15, 0.88);
  border-color: var(--border-3);
}

.carousel .splide__arrow--prev { left: 12px; }
.carousel .splide__arrow--next { right: 12px; }

.carousel .splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--text-1);
}

.carousel .splide__arrow--prev svg {
  transform: scaleX(-1);
}

.carousel .splide__pagination {
  position: relative;
  bottom: auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: var(--s-3);
}

.carousel .splide__pagination__page {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--border-3);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: background var(--t-fast), transform var(--t-fast);
}

.carousel .splide__pagination__page.is-active {
  background: var(--accent);
  transform: scale(1.4);
}

.project-links {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

/* === LEARN MORE LINK (before gallery) === */
.learn-more-wrap {
  padding: var(--s-5) 0 0;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-heading);
  transition: opacity var(--t-fast);
}

.learn-more-link:hover {
  opacity: 0.72;
}

/* Offset anchor links so headings aren't hidden under the fixed navbar */
#my-process,
[id^="process-"] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* Stretch sidebar to the full grid row height so sticky has room to work */
.project-sidebar {
  align-self: stretch;
}

/* === PROCESS SIDEBAR NAV === */
.process-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.process-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-nav__link {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  padding: 5px 0 5px var(--s-3);
  border-left: 2px solid var(--border-2);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.process-nav__link:hover {
  color: var(--text-1);
  border-left-color: var(--text-3);
}

.process-nav__link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

@media (max-width: 768px) {
  .process-nav { display: none; }
}

.project-nav {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .about-prev__inner {
    grid-template-columns: 280px 1fr;
    gap: var(--s-7);
  }

  .about-story {
    grid-template-columns: 1fr 260px;
  }

  .jam-card {
    grid-template-columns: 320px 1fr;
  }

  .project-content__inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --s-9: 72px;
    --s-10: 96px;
  }

  .container { padding: 0 var(--s-5); }

  .navbar__nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border-1);
    padding: var(--s-4) var(--s-5);
    gap: var(--s-3);
    z-index: 99;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .navbar__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .navbar__resume { font-size: 12px; padding: 6px 14px; }
  .navbar__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
  }
  .navbar__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: background var(--t-fast);
  }
  .navbar__burger:hover span { background: var(--text-1); }

  .hero { min-height: 70vh; }
  .hero__inner { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .hero__bio {
    color: var(--text-1);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  }
  .hero__scroll { display: none; }

  .about-prev__inner {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .about-prev__photo { max-width: 260px; margin: 0 auto; }
  .about-prev__photo-frame { aspect-ratio: 1; }

  .featured-grid { grid-template-columns: 1fr; gap: var(--s-4); }

  .about-story { grid-template-columns: 1fr; gap: 0; }
  .about-story__header { order: 1; grid-column: 1; margin-bottom: 16px; }
  .about-story__photo  { order: 2; grid-column: 1; max-width: 260px; margin-bottom: 20px; }
  .about-story__body   { order: 3; grid-column: 1; }

  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }

  .projects-all-grid > .proj-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .jam-card {
    grid-template-columns: 1fr;
  }
  .jam-card__img .img-ph,
  .jam-card__img img { min-height: 200px; }
  .jam-card__body { padding: var(--s-5); }

  .project-gallery__grid { grid-template-columns: 1fr; }
  .process-figure-pair { grid-template-columns: 1fr; }
  .project-hero__meta { flex-direction: column; gap: var(--s-4); }

  .footer__top { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer__links { flex-wrap: wrap; }

  .project-nav { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}
