/* ==========================================================================
   Sangam Sharma — Portfolio
   Design tokens + base + components
   ========================================================================== */

:root {
  /* Color */
  --bg: #0F172A;
  --surface: #1E293B;
  --surface-raised: #253247;
  --border: #334155;
  --border-hover: #475569;

  --primary: #2563EB;
  --primary-hover: #3B82F6;
  --secondary: #06B6D4;
  --accent: #8B5CF6;
  --success: #22C55E;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8896AB;

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Layout */
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;

  --shadow-md: 0 8px 24px -8px rgba(2, 6, 23, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(2, 6, 23, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

/* Background grid texture — subtle, technical, not neon */
body {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { padding: var(--space-16) 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.section-desc {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-md);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.btn-primary:hover { box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55); }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }

.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--fs-md);
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name .brand-role {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: clamp(1.5rem, 3vw, 3rem);
  gap: clamp(1rem, 1.65vw, 1.75rem);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient-brand);
  transition: width var(--dur-base) var(--ease);
}
.nav-links a:hover::after { width: 100%; }

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.02); }
.mobile-menu .btn { margin: var(--space-4) var(--space-6); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--secondary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
  display: inline-block;
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-role {
  margin-top: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin-top: var(--space-5);
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-meta-item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.hero-meta-item strong { display: block; color: var(--text-primary); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-visual svg { width: 100%; height: 100%; }

.node {
  animation: pulse 3.2s var(--ease) infinite;
}
.node.n2 { animation-delay: .4s; }
.node.n3 { animation-delay: .8s; }
.node.n4 { animation-delay: 1.2s; }
.node.n5 { animation-delay: 1.6s; }

@keyframes pulse {
  0%, 100% { opacity: .55; r: 4; }
  50% { opacity: 1; r: 6; }
}

.link-line {
  stroke-dasharray: 6 6;
  animation: dash 20s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -240; } }

@media (prefers-reduced-motion: reduce) {
  .node, .link-line { animation: none; }
}

/* ---------- Current Focus ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-6);
}

.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.focus-card-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.focus-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.focus-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.focus-item.is-next .focus-dot {
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(136, 150, 171, 0.12);
}

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

.about-copy p + p { margin-top: var(--space-4); }
.about-copy { font-size: var(--fs-md); color: var(--text-secondary); }

.about-facts {
  display: grid;
  gap: var(--space-4);
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.fact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.fact-label { font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }
.fact-value { color: var(--text-primary); font-weight: 600; margin-top: 2px; }

.beyond {
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
}

.beyond-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-5); }

.beyond-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tag {
  font-size: var(--fs-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

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

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

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

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  white-space: nowrap;
}

.placeholder-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-hover);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  white-space: nowrap;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  line-height: 1.4;
}

.project-name {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  font-weight: 700;
}

.project-desc {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 3px var(--space-2);
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.project-links a {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.project-links a:hover { color: var(--secondary); }

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.skill-cat-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.skill-cat-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.skill-list { display: flex; flex-direction: column; gap: var(--space-3); }

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.skill-item:last-child { border-bottom: none; padding-bottom: 0; }

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 2px var(--space-2);
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.skill-level.learning { color: var(--secondary); border-color: rgba(6,182,212,.35); }
.skill-level.working { color: var(--success); border-color: rgba(34,197,94,.35); }

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

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--border), var(--border) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 1px);
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--secondary);
}
.timeline-item.is-future .timeline-dot { border-color: var(--border-hover); border-style: dashed; }
.timeline-item.is-current .timeline-dot { background: var(--secondary); box-shadow: 0 0 0 4px rgba(6,182,212,.18); }

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.timeline-title {
  margin-top: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Certifications ---------- */
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
}

.cert-badge {
  width: 76px; height: 76px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.cert-name { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); }
.cert-issuer { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-1); }

.cert-meta {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.cert-meta-item { font-size: var(--fs-xs); }
.cert-meta-item .label { display: block; font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 2px; }
.cert-meta-item .value { color: var(--text-secondary); font-weight: 500; }

.cert-future {
  margin-top: var(--space-6);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------- Journal ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.journal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.journal-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.journal-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.journal-title {
  margin-top: var(--space-3);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
}

.journal-excerpt {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.journal-status {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-10);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.channel-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.channel-label { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-muted); }
.channel-value { color: var(--text-primary); font-weight: 600; margin-top: 2px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-row { margin-bottom: var(--space-5); }
.form-row:last-of-type { margin-bottom: 0; }

.form-row label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-error {
  display: block;
  color: #F87171;
  font-size: var(--fs-xs);
  margin-top: var(--space-2);
  min-height: 1em;
}

.form-note {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form-status {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: rgba(34,197,94,.4); color: var(--success); }

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

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

.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-role { font-size: var(--fs-sm); color: var(--text-muted); }

.footer-links { display: flex; gap: var(--space-6); }
.footer-links a { font-size: var(--fs-sm); color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* Layout and scroll state use classes to keep inline styles disabled by CSP. */
.cert-card + .cert-card {
  margin-top: 1.5rem;
}

.contact-note .btn {
  margin-top: 1.5rem;
}

.navbar.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(2, 6, 23, 0.6);
}
