/* ============================================================
   ETHAN BRAZEAU PORTFOLIO — styles.css
   Design: Dark editorial — navy base, amber accent
   Fonts: Playfair Display (headings) + Outfit (body)
============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Colors */
  --bg:           #0f1117;
  --bg-alt:       #141720;
  --surface:      #1a1d27;
  --surface-2:    #20242f;
  --border:       #252836;
  --border-light: #2e3245;

  --text-primary:   #e2e0db;
  --text-secondary: #7e839e;
  --text-muted:     #4e5268;

  --accent:       #e8a045;
  --accent-light: #f0b864;
  --accent-dim:   rgba(232, 160, 69, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad:  clamp(5rem, 10vw, 8rem);
  --container:    1100px;
  --gap:          1.5rem;

  /* Effects */
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.22s;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   UTILITY: CONTAINER
============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ============================================================
   UTILITY: BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #0f1117;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 160, 69, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-light);
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-resume {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* Subtle grid background texture */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}

/* Radial fade over grid */
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%,
    transparent 20%, var(--bg) 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.1s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.3s forwards;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.4s forwards;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.5s forwards;
}

.hero-links {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.6s forwards;
}

.hero-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 1s forwards, bounce 2s ease-in-out 2s infinite;
  transition: color var(--dur) var(--ease);
}

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

/* ============================================================
   SECTION BASE STYLES
============================================================ */
.section {
  padding: var(--section-pad) 0;
}

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

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

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

.about-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-card p,
.about-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-card ul { display: flex; flex-direction: column; gap: 0.35rem; }

.about-card li::before {
  content: '—';
  color: var(--text-muted);
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

/* ============================================================
   SKILLS SECTION
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--dur) var(--ease);
}

.skill-group:hover {
  border-color: var(--border-light);
}

.skill-group-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skill-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
}

.skill-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================================
   EDUCATION — TIMELINE
============================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-dim);
  transform: translateX(-5px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(100, 180, 120, 0.1);
  color: #7ecb98;
  border: 1px solid rgba(100, 180, 120, 0.2);
}

.timeline-badge--done {
  background: rgba(100, 180, 120, 0.1);
  color: #7ecb98;
  border-color: rgba(100, 180, 120, 0.2);
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.timeline-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 1.1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags li {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* ============================================================
   WORK EXPERIENCE
============================================================ */
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: border-color var(--dur) var(--ease);
}

.experience-card:hover {
  border-color: var(--border-light);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.experience-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.experience-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.experience-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.experience-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.experience-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.experience-highlights li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.experience-highlights li::before {
  content: '›';
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   PROJECTS
============================================================ */
.projects-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  color: #0f1117;
  border-color: var(--accent);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card.hidden {
  display: none;
}

/* Featured card: subtle amber top border */
.project-card--featured {
  border-top: 2px solid var(--accent);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.project-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.project-category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.project-category-tag--accent {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(232, 160, 69, 0.25);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tech li {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

/* ============================================================
   CONTACT SECTION
============================================================ */
.section-contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-text p:last-child { margin-bottom: 0; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn {
  width: 100%;
  justify-content: center;
}

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

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

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

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

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

/* Scroll reveal class applied via JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* Stagger for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.47s; }
/* ============================================================
   RESPONSIVE — TABLET (max 900px)
============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .about-card { margin-bottom: 0; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 720px)
============================================================ */
@media (max-width: 720px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    display: block;
  }

  .nav-resume {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  /* About stats */
  .about-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Skills grid */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
============================================================ */
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero-eyebrow,
  .hero-name,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .hero-links,
  .scroll-indicator {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   CONTACT FORM
============================================================ */
.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-submit {
  align-self: flex-start;
  padding: 0.7rem 1.75rem;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.2em;
}

.form-status.success { color: #7ecb98; }
.form-status.error   { color: #e07070; }

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER CONTACT ARROW
============================================================ */
.section-pointer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  margin-left: 0.75rem;
  vertical-align: middle;
}

.section-pointer.visible {
  opacity: 1;
  transform: translateX(0);
  animation: pointerBounce 1s var(--ease) 0.2s 3 alternate;
}

@keyframes pointerBounce {
  from { transform: translateX(-5px); }
  to   { transform: translateX(10px); }
}
