/* =============================================================
   Touseef Murtaza — personal site
   Single stylesheet, no preprocessor.
   Theme: dark by default, indigo accent, light toggle.
   ============================================================= */

/* ---------- Tokens (dark) ---------- */
:root,
[data-theme="dark"] {
  --bg:           #0b0b10;
  --surface:      #13131c;
  --surface-2:    #1a1a26;
  --surface-hover:#20202d;
  --text:         #f5f5f7;
  --text-muted:   #a1a1aa;
  --text-faint:   #71717a;
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.16);
  --accent:       #6366f1;
  --accent-hover: #818cf8;
  --accent-soft:  rgba(99, 102, 241, 0.18);
  --accent-text:  #a5b4fc;
  --on-accent:    #ffffff;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.30);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.30);
  --shadow-lg:    0 24px 48px rgba(0,0,0,0.40);
  --ring:         0 0 0 3px rgba(99, 102, 241, 0.45);
}

[data-theme="light"] {
  --bg:           #fafafa;
  --surface:      #ffffff;
  --surface-2:    #f4f4f5;
  --surface-hover:#ececf0;
  --text:         #18181b;
  --text-muted:   #52525b;
  --text-faint:   #71717a;
  --border:       rgba(0, 0, 0, 0.08);
  --border-strong:rgba(0, 0, 0, 0.16);
  --accent:       #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft:  rgba(79, 70, 229, 0.10);
  --accent-text:  #4338ca;
  --on-accent:    #ffffff;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:    0 24px 48px rgba(0,0,0,0.10);
  --ring:         0 0 0 3px rgba(79, 70, 229, 0.30);
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --container-pad: 1.25rem;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --header-h: 72px; --container-pad: 2rem; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* Scroll padding for anchor offset (header height) */
html { scroll-padding-top: calc(var(--header-h) + 16px); }

/* Selection */
::selection { background: var(--accent-soft); color: var(--text); }

/* Focus rings: visible everywhere */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}
.btn:focus-visible,
.icon-btn:focus-visible,
.chip:focus-visible {
  box-shadow: var(--ring);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  width: 100%;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.section-alt { background: var(--surface); }

@media (min-width: 768px) {
  .section { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section { padding-top: 7.5rem; padding-bottom: 7.5rem; }
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 3.5rem; }
}

.section-eyebrow,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}
.accent-text { color: var(--accent-text); }
.inline-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 160ms var(--easing);
}
.inline-link:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 160ms var(--easing), background 160ms var(--easing), border-color 160ms var(--easing), color 160ms var(--easing);
  cursor: pointer;
  text-decoration: none;
}
.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 8px 20px -8px var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 160ms var(--easing), background 160ms var(--easing), border-color 160ms var(--easing);
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 0.9375rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.brand-name { white-space: nowrap; }

.nav-desktop {
  display: none;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 1rem;
}
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 160ms var(--easing);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
.menu-toggle { display: inline-flex; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none !important; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem var(--container-pad) 2rem;
  gap: 1.5rem;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.875rem 0.5rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-link:hover { color: var(--accent-text); }
.mobile-cta {
  margin-top: auto;
  width: 100%;
}

body.is-locked { overflow: hidden; }

/* ---------- Theme toggle icons ---------- */
.icon-sun, .icon-moon { transition: opacity 200ms var(--easing), transform 200ms var(--easing); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero { padding-top: 7rem; padding-bottom: 7rem; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 9rem; padding-bottom: 9rem; }
}

.hero-blob {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 700px;
  height: 700px;
  background:
    radial-gradient(closest-side, rgba(99,102,241,0.50), rgba(99,102,241,0) 70%),
    radial-gradient(closest-side, rgba(168,85,247,0.30), rgba(168,85,247,0) 70%);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero-blob { opacity: 0.40; }

@media (prefers-reduced-motion: no-preference) {
  .hero-blob { animation: blob 18s ease-in-out infinite alternate; }
}
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 40px) scale(1.05); }
  100% { transform: translate(40px, -30px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.hero-meta-label {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}
.about-copy p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
}
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  max-width: 480px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
}

/* ---------- Cards (shared) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .cards-grid { gap: 1.5rem; }
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 200ms var(--easing), transform 200ms var(--easing), box-shadow 200ms var(--easing);
}
@media (min-width: 768px) { .card { padding: 1.75rem; } }
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}
[data-theme="light"] .card { background: var(--surface); }
[data-theme="dark"] .section-alt .card { background: var(--surface-2); }
[data-theme="light"] .section-alt .card { background: var(--surface); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .card-title { font-size: 1.1875rem; } }
.card-body {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.card-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.card-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Work cards ---------- */
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.work-company { color: var(--accent-text); font-weight: 600; }
.work-role { color: var(--text-faint); }

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}
.chips-grid { gap: 0.625rem; margin-top: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 160ms var(--easing), background 160ms var(--easing), border-color 160ms var(--easing);
}
[data-theme="light"] .chip { background: var(--surface-2); }
.chip-lg { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

/* ---------- Approach ---------- */
.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .approach-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1100px) {
  .approach-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.approach-step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 200ms var(--easing), transform 200ms var(--easing);
}
[data-theme="light"] .approach-step { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .approach-step:hover { transform: translateY(-2px); border-color: var(--border-strong); }
}
.approach-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
}
.approach-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.approach-step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { grid-template-columns: 1fr; }
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card blockquote {
  margin: 0;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}
.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}
.contact-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 2rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text);
}
.contact-list li:last-child { border-bottom: 1px solid var(--border); }
.contact-list-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}
@media (min-width: 768px) { .contact-form { padding: 2rem; } }
.form-row {
  display: grid;
  gap: 0.375rem;
}
.form-row label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 160ms var(--easing), box-shadow 160ms var(--easing), background 160ms var(--easing);
}
[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea { background: var(--surface-2); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #f87171;
  min-height: 1.2em;
}
[data-theme="light"] .form-error { color: #dc2626; }
.form-submit { justify-self: start; margin-top: 0.25rem; }
.form-success {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--accent-text);
  padding: 0.75rem 0.875rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.form-failure {
  padding: 0.75rem 0.875rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  min-height: 0;
}
.form-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
/* Honeypot — kept in the layout flow for bots, hidden from humans + AT */
.form-row-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}
.footer-brand .brand-name { display: block; font-weight: 600; font-size: 1rem; }
.footer-microcopy {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 0.25rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 160ms var(--easing), background 160ms var(--easing);
}
.footer-social a:hover { color: var(--text); background: var(--surface-hover); }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------- Reveal animation ----------
   Gated on .js so non-JS clients see content unanimated and there's no
   flash-of-visible-then-hidden on initial paint.
*/
@media (prefers-reduced-motion: no-preference) {
  html.js .section-head,
  html.js .hero-inner > *,
  html.js .card,
  html.js .approach-step,
  html.js .chip-lg,
  html.js .about-photo,
  html.js .about-copy > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--easing), transform 600ms var(--easing);
    will-change: opacity, transform;
  }
  html.js .is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .footer-social, .hero-blob, .header-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding: 1rem 0; }
  a { color: #000; text-decoration: underline; }
}
