/* ============================================
   SADMAN SHAFIQUE PORTFOLIO — DARK THEME
   Mobile-first CSS
   ============================================ */

:root {
  --bg: #0A0A0B;
  --bg-elevated: #111113;
  --text: #EDEDEF;
  --muted: #888888;
  --border: rgba(255,255,255,0.08);
  --accent: #C9A96E;
  --accent-light: rgba(201, 169, 110, 0.15);
  --card: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --glow: rgba(201, 169, 110, 0.15);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 64px;
  --section-padding-x: 24px;
  --section-padding-y: 80px;
  --max-width: 1120px;
  --radius: 10px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section { scroll-margin-top: var(--nav-height); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* READING PROGRESS */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #D4B87A);
  z-index: 200; transition: width 0.05s linear; pointer-events: none;
  box-shadow: 0 0 8px var(--accent);
}

/* TYPOGRAPHY */
.section-heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 1.5rem; color: var(--text);
}

.subsection-heading {
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-top: 3.5rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* COMMON */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: calc(var(--max-width) + var(--section-padding-x) * 2);
  margin: 0 auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 0.9375rem;
  font-weight: 500; border-radius: var(--radius); transition: all 0.25s ease;
  cursor: pointer; min-height: 48px; text-align: center;
}

.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.15);
}
.btn-primary:hover {
  background: #D4B87A; transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.25);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.08);
}

/* Reveals */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js .reveal.revealed { opacity: 1; transform: translateY(0); }

/* Hero FOUC */
.js .hero-name .blur-word {
  filter: blur(10px); opacity: 0; transform: translateY(16px);
  display: inline-block; transition: filter 0.7s ease, opacity 0.7s ease, transform 0.7s ease;
}
.js .hero-name .blur-word.revealed { filter: blur(0); opacity: 1; transform: translateY(0); }
.js #hero-label, .js #hero-tagline, .js #hero-subtext, .js #hero-ctas, .js #hero-stats { opacity: 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background-color: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); padding: 0 var(--section-padding-x);
  max-width: calc(var(--max-width) + var(--section-padding-x) * 2); margin: 0 auto;
}

.nav-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mobile-menu-link {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  padding: 0.75rem 1.5rem; min-height: 48px; display: flex; align-items: center;
  opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-link:hover, .mobile-menu-link:active { color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-height) + 2rem) var(--section-padding-x) 2rem;
  position: relative; overflow: hidden;
}

/* Gradient glow lamp effect at top */
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Grid background */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 40%, transparent 100%);
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-content { max-width: 720px; position: relative; z-index: 1; }

.hero-label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem); letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Override gradient for blur-word spans during animation */
.js .hero-name .blur-word { -webkit-text-fill-color: initial; background: none; }
.js .hero-name .blur-word.revealed {
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: var(--font-body); font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400; color: var(--muted); margin-bottom: 1rem; line-height: 1.5;
}

.hero-tagline .cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--accent); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-subtext { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }

.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 3rem; }
.hero-ctas .btn { width: 100%; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem;
  text-align: center; padding-top: 2rem; border-top: 1px solid var(--border);
  width: 100%; max-width: 480px; position: relative; z-index: 1;
}

.stat-number {
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem;
  letter-spacing: -0.02em; display: block; line-height: 1.2;
}
.stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.125rem; display: block; }

.scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--muted); opacity: 0.5; animation: bounce 2.5s ease-in-out infinite;
  display: flex; z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-scroll-wrapper { height: 320vh; position: relative; }

.about-sticky {
  position: sticky; top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 2.5rem var(--section-padding-x) 2rem;
  max-width: calc(var(--max-width) + var(--section-padding-x) * 2); margin: 0 auto;
  overflow: hidden;
}

#about { padding: 0; max-width: none; }
#about .section-heading { padding: 0; }

.scroll-text-container { max-width: 680px; }
.scroll-text { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.8; margin-bottom: 1.25rem; color: var(--text); }

.js .scroll-text-container.scroll-highlight-active .scroll-text { color: transparent; }
.js .scroll-text-container.scroll-highlight-active .word {
  transition: color 0.1s ease; color: rgba(255, 255, 255, 0.12);
}
.js .scroll-text-container.scroll-highlight-active .word.highlighted { color: var(--text); }

/* Expertise icon-card grid */
.expertise-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.expertise-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.25rem; position: relative;
  overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.expertise-card:hover { transform: translateY(-2px); }
.expertise-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; color: var(--accent);
}
.expertise-card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem;
}
.expertise-card-desc {
  font-size: 0.8125rem; color: var(--muted); line-height: 1.4;
}

/* ============================================
   EDUCATION
   ============================================ */
.edu-grid { display: grid; gap: 1rem; }
.edu-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.5rem; position: relative;
  overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.edu-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent);
}
.edu-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.edu-degree { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.25rem; }
.edu-date { font-size: 0.8125rem; color: var(--muted); }

/* ============================================
   COMPANIES
   ============================================ */
.companies-grid { display: grid; gap: 1.5rem; }
.company-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem 1.5rem; position: relative;
  overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.company-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.375rem; }
.company-role { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.company-desc { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }

.company-highlights { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.company-highlights li { font-size: 0.875rem; color: var(--muted); padding-left: 1.125rem; position: relative; line-height: 1.5; }
.company-highlights li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.company-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--accent); transition: opacity 0.2s ease;
}
.company-link:hover { opacity: 0.7; }

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

/* Beavermade featured */
.beavermade-feature {
  background: var(--card); border: 1px solid var(--accent);
  border-radius: 12px; padding: 2rem 1.5rem; position: relative;
  overflow: hidden; margin-bottom: 1rem;
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.06), inset 0 1px 0 rgba(201, 169, 110, 0.1);
}
.beavermade-feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.beavermade-content { position: relative; z-index: 1; }
.beavermade-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); }
.beavermade-descriptor { font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.beavermade-desc { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; max-width: 640px; }

.beavermade-press {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
  padding: 1rem; background: rgba(201, 169, 110, 0.04);
  border-radius: var(--radius-sm); border: 1px solid rgba(201, 169, 110, 0.1);
}
.press-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.press-logos { display: flex; align-items: center; gap: 1.25rem; }
.press-logo { height: 24px; width: auto; opacity: 0.85; filter: brightness(0) invert(1); transition: opacity 0.2s ease; }
.press-logo:hover { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(201,169,110,0.3)); }

.beavermade-role-tag {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-light);
  padding: 0.25rem 0.75rem; border-radius: 100px;
}

/* Project grids */
.projects-grid { display: grid; gap: 1.5rem; }
.projects-grid-compact { gap: 1rem; }

.project-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.card-body { padding: 2rem 1.5rem; flex: 1; }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.project-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }

.status-badge {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.25rem 0.75rem; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
  line-height: 1.4; display: inline-flex; align-items: center;
}
.status-live { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.status-coming { background: rgba(201, 169, 110, 0.12); color: var(--accent); }
.status-inactive { background: rgba(255,255,255,0.04); color: var(--muted); }

.project-descriptor { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.project-desc { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.project-impact { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 1rem; color: var(--accent); margin-bottom: 0.75rem; }
.project-tech { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }
.project-role-tag {
  display: inline-block; margin-left: 0.75rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-light);
  padding: 0.2rem 0.625rem; border-radius: 100px; vertical-align: middle;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}

/* Compact cards */
.project-card-compact {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); position: relative; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.project-card-compact .card-body { padding: 1.25rem; flex: 1; }
.project-card-compact .card-footer { padding: 0 1.25rem 1.25rem; }

.card-btn { font-size: 0.8125rem; padding: 0.625rem 1.25rem; min-height: 40px; width: auto; }
.card-btn-sm { font-size: 0.75rem; padding: 0.5rem 1rem; min-height: 36px; width: auto; }

.project-header-sm { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.project-name-sm { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 0; }
.project-oneliner { font-size: 0.875rem; color: var(--text); line-height: 1.6; margin-bottom: 0.75rem; }
.project-tech-sm { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: rgba(255,255,255,0.06);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -1.75rem; top: 0.35rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); z-index: 1;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.2);
}
.timeline-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.timeline-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.125rem; }
.timeline-role { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.375rem; }
.timeline-detail { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ============================================
   TECH STACK
   ============================================ */
.stack-grid { display: grid; gap: 2rem; }
.stack-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.stack-tag {
  padding: 0.375rem 0.75rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================
   ZERO TO ONE PROCESS
   ============================================ */
.process-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 2rem;
}
.process-timeline::before {
  content: ''; position: absolute; left: 15px; top: 20px; bottom: 20px;
  width: 1px; background: linear-gradient(180deg, var(--accent), rgba(201,169,110,0.1));
}

.process-step {
  position: relative; padding-bottom: 2.5rem; padding-left: 1.5rem;
}
.process-step:last-child { padding-bottom: 0; }

.process-node {
  position: absolute; left: -2rem; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 1; box-shadow: 0 0 12px rgba(201, 169, 110, 0.15);
}
.process-num {
  font-size: 0.6875rem; font-weight: 700; color: var(--accent);
  font-family: var(--font-body); letter-spacing: 0.02em;
}

.process-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; margin-bottom: 0.375rem; color: var(--text);
}
.process-desc {
  font-size: 0.875rem; color: var(--muted); line-height: 1.6; max-width: 400px;
}

.process-connector { display: none; }

/* ============================================
   CONTACT
   ============================================ */
#contact .section-heading { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.contact-subtext { font-size: 1rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 520px; line-height: 1.7; }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 1rem; font-weight: 500; padding: 0.5rem 0; min-height: 44px; transition: color 0.2s ease;
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { flex-shrink: 0; color: var(--muted); }
.contact-sites { display: flex; gap: 1.25rem; margin-top: 0.5rem; }
.contact-site-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease;
}
.contact-site-link:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.875rem 1rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  font-size: 1rem; min-height: 48px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 12px rgba(201, 169, 110, 0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: 0.5; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border); padding: 3rem var(--section-padding-x);
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.02));
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem;
}
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; display: block; }
.footer-tagline { font-size: 0.875rem; color: var(--muted); display: block; margin-top: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s ease; min-height: 44px; display: flex; align-items: center; }
.footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--accent); }
.footer-credit { font-size: 0.8125rem; color: var(--muted); }

/* ============================================
   CURSOR EFFECTS
   ============================================ */
.cursor-spotlight {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 9999; opacity: 0;
  will-change: transform; transition: opacity 0.4s ease;
}

.glow-card { position: relative; }
.glow-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), var(--glow), transparent 40%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 0;
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  :root { --section-padding-x: 40px; --section-padding-y: 100px; --nav-height: 72px; }
  .nav-links { display: flex; gap: 1.25rem; }
  .nav-link { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease; min-height: 44px; display: flex; align-items: center; }
  .nav-link:hover { color: var(--text); }
  .nav-cta { display: inline-flex; padding: 0.5rem 1.25rem; font-size: 0.8125rem; min-height: 36px; }
  .nav-toggle { display: none; }
  .hero-ctas { flex-direction: row; justify-content: center; gap: 1rem; }
  .hero-ctas .btn { width: auto; }
  .hero-stats { max-width: 600px; }
  .hero-glow { width: 900px; height: 500px; }
  .edu-grid { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process timeline: horizontal on tablet+ */
  .process-timeline {
    flex-direction: row; padding-left: 0; gap: 0;
  }
  .process-timeline::before {
    left: 16px; right: 16px; top: 15px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(201,169,110,0.1));
  }
  .process-step {
    flex: 1; padding-bottom: 0; padding-left: 0; padding-top: 3rem; text-align: center;
  }
  .process-node {
    left: 50%; top: 0; transform: translateX(-50%);
  }
  .process-desc { max-width: none; margin: 0 auto; }
  .companies-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid-compact { grid-template-columns: 1fr 1fr; }
  .beavermade-feature { padding: 2.5rem 2rem; }
  .press-logo { height: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-form .btn { width: auto; align-self: flex-start; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
  .footer-brand { flex-basis: 100%; margin-bottom: 0.5rem; }
  .footer-credit { flex-basis: 100%; margin-top: 0.5rem; }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
  :root { --section-padding-x: 48px; --section-padding-y: 120px; }
  .nav-links { gap: 2rem; }
  .company-card { padding: 2.5rem 2rem; }
  .projects-grid-compact { grid-template-columns: repeat(3, 1fr); }
  .stack-grid { grid-template-columns: 1fr 1fr; }

  .expertise-grid { grid-template-columns: repeat(4, 1fr); }

  .company-card:hover, .project-card:hover, .project-card-compact:hover, .edu-card:hover, .expertise-card:hover {
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.06);
  }
  .beavermade-feature:hover {
    box-shadow: 0 0 50px rgba(201, 169, 110, 0.1), inset 0 1px 0 rgba(201, 169, 110, 0.15);
  }
  .glow-card:hover::before { opacity: 1; }
  .stack-tag:hover { border-color: rgba(201, 169, 110, 0.3); box-shadow: 0 0 8px rgba(201, 169, 110, 0.06); }
}

/* LARGE (1200px+) */
@media (min-width: 1200px) {
  :root { --section-padding-x: 64px; }
  .hero-stats { max-width: 680px; }
  .stat-number { font-size: 2.25rem; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 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; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-indicator { animation: none; }
  .reading-progress { display: none; }
}
