/* =============================================================
   Faith Godwin — Portfolio
   Modern, minimalist, dark-first design system
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color — dark (default) */
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #131318;
  --bg-card-hover: #1a1a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #a0a0a8;
  --text-soft: #6b6b75;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.35);
  --success: #34d399;
  --gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', 'Georgia', serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}

/* Light theme */
[data-theme='light'] {
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f0;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #0a0a0b;
  --text-muted: #4a4a52;
  --text-soft: #7a7a82;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.1);
  --accent-glow: rgba(217, 119, 6, 0.3);
}

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

html {
  scroll-padding-top: var(--nav-h);
}

/* Brief highlight pulse when navigating to a section via the nav */
.section-arrive {
  animation: section-arrive 1.1s var(--ease);
}

@keyframes section-arrive {
  0%   { box-shadow: inset 0 0 0 0 var(--accent-soft); }
  35%  { box-shadow: inset 0 2px 0 0 var(--accent); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

/* Subtle background grain + radial accent */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(236, 72, 153, 0.06), transparent 60%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

@media (max-width: 720px) {
  .section {
    padding: var(--space-8) 0;
  }
}

.section-head {
  margin-bottom: var(--space-7);
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-lead {
  margin-top: var(--space-4);
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

[data-theme='light'] .nav.scrolled {
  background: rgba(250, 250, 247, 0.72);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.nav-links a {
  padding: var(--space-2) var(--space-4);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme='light'] .theme-toggle .icon-sun {
  display: block;
}

[data-theme='light'] .theme-toggle .icon-moon {
  display: none;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text);
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--space-5)) var(--space-5) var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-drawer a {
  display: block;
  padding: var(--space-4);
  font-size: 1.5rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: #0a0a0b;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #0a0a0b;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.btn-accent:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--space-7));
  padding-bottom: var(--space-8);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--space-5);
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.hero-current {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero-current-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-current strong {
  color: var(--text);
  font-weight: 600;
}

.hero-current-sep {
  color: var(--text-soft);
}

.hero-current-role {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 560px) {
  .hero-meta-divider {
    display: none;
  }
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color var(--dur) var(--ease);
}

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

.hero-scroll-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--border-strong);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  animation: scroll-line 2.2s linear infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-meta-item strong {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 440px;
  justify-self: end;
  width: 100%;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

@media (max-width: 880px) {
  .hero-portrait {
    justify-self: center;
    max-width: 340px;
  }
}

.hero-portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.5);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
  transition: transform var(--dur-slow) var(--ease);
}

.hero-portrait:hover .hero-portrait-frame img {
  transform: scale(1.04);
}

.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.portrait-tag {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 3;
  padding: var(--space-3) var(--space-4);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.portrait-tag i {
  color: var(--accent);
}

.portrait-chip {
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  z-index: 3;
  padding: var(--space-2) var(--space-3);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: 0.04em;
}

.portrait-chip i {
  color: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.highlight {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.highlight:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.highlight strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.highlight span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Resume / Timeline ---------- */
.timeline {
  position: relative;
  padding-left: var(--space-7);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--accent) 0%,
    var(--border-strong) 18%,
    var(--border) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

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

.timeline-marker {
  position: absolute;
  left: calc(var(--space-7) * -1 + 4px);
  top: 18px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
}

.timeline-card {
  padding: var(--space-5) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.timeline-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.timeline-date {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) var(--space-3);
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-current .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}

.timeline-job + .timeline-job {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border);
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.timeline-org {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

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

.service {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.service:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
}

.service:hover::before {
  opacity: 1;
}

.service-featured {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-color: var(--accent-soft);
}

.service-featured::before {
  opacity: 0.6;
}

.service-flag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--accent);
  color: #0a0a0b;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.service-flag i {
  font-size: 0.7rem;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.service-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 100%);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 1.6rem;
  transition: transform var(--dur) var(--ease);
}

.service:hover .service-icon {
  transform: rotate(-6deg) scale(1.08);
}

.service h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  margin: 0;
}

.service p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  margin: 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  flex: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-features li i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border);
  position: relative;
}

.service-tags span {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}

.skill {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.skill:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.skill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Portfolio ---------- */
.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-tags span {
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.project-badge,
.project-year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1;
  white-space: nowrap;
}

.project-badge {
  color: var(--accent);
}

/* ---------- Portfolio: Featured hero ---------- */
.project-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.project-hero:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  line-height: 1;
}

.project-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.project-hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 52ch;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-2);
  transition: gap var(--dur) var(--ease);
}

.project-cta i {
  transition: transform var(--dur) var(--ease);
}

.project-hero:hover .project-cta {
  gap: var(--space-3);
}

.project-hero:hover .project-cta i {
  transform: translateX(4px);
}

.project-hero-image {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  z-index: 1;
  padding-top: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.project-hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.project-hero-image::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
  z-index: 2;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg-elev);
  transition: transform var(--dur-slow) var(--ease);
}

.project-hero:hover .project-hero-image img {
  transform: scale(1.04);
}

/* ---------- Portfolio: Card grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.project-card-wide {
  grid-column: 1 / -1;
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--accent-soft);
}

.project-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding-top: 32px;
}

/* Browser-window chrome on every screenshot */
.project-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.project-card-image::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
  z-index: 2;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease);
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

.project-card-wide .project-card-image {
  aspect-ratio: 21 / 8;
}

.project-card-meta {
  position: absolute;
  top: calc(32px + var(--space-4));
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
  pointer-events: none;
}

.project-card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.project-card-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.project-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.project-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.project-card-title .arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.project-card:hover .project-card-title .arrow {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
  transform: rotate(-45deg);
}

.project-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 880px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .project-card-wide .project-card-image {
    aspect-ratio: 16 / 10;
  }

  .project-card-body {
    padding: var(--space-5);
  }

  .project-card-title {
    font-size: 1.2rem;
  }

  .project-hero {
    grid-template-columns: 1fr;
    padding: var(--space-5);
    gap: var(--space-5);
  }

  .project-hero-image {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .project-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
}

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

@media (max-width: 980px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

.contact-intro {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--border);
}

@media (max-width: 980px) {
  .contact-intro {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-6);
  }
}

.contact-intro .eyebrow {
  margin: 0;
}

.contact-intro .section-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
}

.contact-intro .section-lead {
  margin: 0;
  text-align: left;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
  align-self: flex-start;
  margin-top: var(--space-2);
}

.contact-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.contact-card {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

a.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.contact-card-arrow {
  color: var(--text-soft);
  font-size: 1rem;
  transition: transform var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

a.contact-card:hover .contact-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-card-static {
  cursor: default;
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border);
}

.contact-socials-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-socials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-2);
}

.contact-socials-list a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.contact-socials-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-form {
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.contact-form-head {
  grid-column: 1 / -1;
  margin-bottom: var(--space-2);
}

.contact-form-head h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
}

.contact-form-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 980px) {
  .contact-form {
    padding: var(--space-6);
  }
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field label sup {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.alert {
  grid-column: 1 / -1;
  padding: var(--space-4);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
  margin-top: var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

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

.socials {
  display: flex;
  gap: var(--space-2);
}

.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
