/* Nocturne — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0,0,0,0.65);

  /* Overrides desta página: fundo mais escuro que o token genérico acima
     (vem do handoff de design, README "Design tokens" — reference.html
     hardcoda essas cores em vez de usar --color-bg/--color-surface). */
  --page-bg: #0e0f18;
  --page-nav-bg: rgba(18, 19, 31, .72);
  --page-menu-bg: #1a1c2b;
  --status-online: #5ddba0;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  background-color: var(--page-bg);
}

/* Constelação de fundo (public/constellation.js) — canvas fixo cobrindo o
   viewport inteiro, atrás de todo o conteúdo, presente em qualquer seção
   da página (não só no hero). */
#constellation { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0;
}
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0; }
a { color: var(--color-accent); text-underline-offset: 3px; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background .16s, border-color .16s;
}
.btn svg, .btn img { display: block; }
.btn-primary { color: var(--color-accent-400); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent-400); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

/* ══════════════════════════════════════════════════════════════════════════
   Página — hugonicolau.dev, direção 4a ("Nocturne")
   ══════════════════════════════════════════════════════════════════════ */

.page { position: relative; }

/* Largura de leitura centralizada — usado dentro de cada faixa (nav, hero,
   work, blog, contato) pra manter o conteúdo em ~1000px mesmo que a faixa
   em si (fundo, divisor, blur) se estenda pela tela toda. */
.band-inner { max-width: 1000px; margin: 0 auto; }

/* — progress track — */
.progress-track {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 3px; background: rgba(233,233,237,.07);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #9184d9, #b5abfc);
  box-shadow: 0 0 12px rgba(145,132,217,.55);
  transition: width .08s linear;
}

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--color-divider);
  background: var(--page-nav-bg);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  padding: 15px 38px;
}
.nav-brand {
  font: 500 15px Inter, sans-serif; letter-spacing: -.01em;
  margin-right: auto; display: flex; align-items: center; gap: 10px;
  color: var(--color-text);
}
.nav-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(145,132,217,.2);
}
.nav-link { font-size: 13px; color: rgba(233,233,237,.6); }
.nav-link:hover { color: var(--color-accent-400); }
.nav-visits {
  display: inline-flex; align-items: center; gap: 5px;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em; color: rgba(233,233,237,.5);
}
.nav-visits svg { width: 13px; height: 13px; color: var(--status-online); }
.nav-locale {
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a79bea; border: 1px solid rgba(145,132,217,.45);
  border-radius: 999px; padding: 3px 10px;
}
.nav-locale:hover { background: rgba(145,132,217,.12); }

/* — mobile nav menu — hamburger hidden on desktop, where .nav-link already
   lists every section. */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid rgba(233,233,237,.16); background: transparent;
  color: rgba(233,233,237,.75); cursor: pointer;
}
.nav-toggle:hover { background: rgba(233,233,237,.07); }
.nav-toggle svg { width: 17px; height: 17px; }
.nav-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px 20px 14px; flex-direction: column; gap: 2px;
  background: var(--page-menu-bg);
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.nav-menu.is-open { display: flex; }
.nav-menu-link {
  padding: 10px 4px; font-size: 14px; color: rgba(233,233,237,.75);
  border-radius: 6px;
}
.nav-menu-link:hover { color: var(--color-accent-400); background: rgba(233,233,237,.05); }

/* — back to top — */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--page-menu-bg); color: rgba(233,233,237,.8);
  border: 1px solid rgba(233,233,237,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s, border-color .2s, color .2s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { color: var(--color-accent-400); border-color: rgba(145,132,217,.5); }
.back-to-top svg { width: 18px; height: 18px; }

/* — hero — */
.hero-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 46px 38px 34px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 190px; gap: 44px; align-items: start; }
.hero-kicker {
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em; color: #a79bea; margin-bottom: 18px;
}
.hero-heading {
  font: 500 52px/1.02 Inter, sans-serif; letter-spacing: -.04em;
  max-width: 20ch; text-wrap: pretty; color: var(--color-text);
}
.typing-cursor {
  color: var(--color-accent-400); font-weight: 400;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.typing-wave {
  display: inline-block; opacity: 0; margin-left: 4px;
  transform-origin: 70% 70%;
}
/* a mão só aparece (e acena) depois do texto todo digitado */
.hero-heading[data-typing-phase="waving"] .typing-cursor { opacity: 0; animation: none; }
.hero-heading[data-typing-phase="waving"] .typing-wave {
  opacity: 1; animation: wave-hand .65s ease-in-out 2;
}
@keyframes wave-hand {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) {
  .typing-cursor { animation: none; }
  .hero-heading[data-typing-phase="waving"] .typing-wave { animation: none; }
}
.hero-body {
  font-size: 16px; line-height: 1.6; color: rgba(233,233,237,.7);
  max-width: 56ch; margin-top: 20px;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero-actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-contact-label {
  font: 500 17px Inter, sans-serif; letter-spacing: -.01em;
  color: var(--color-text);
  margin-right: 2px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(233,233,237,.04); border: 1px solid rgba(233,233,237,.1);
  font-size: 13px; color: rgba(233,233,237,.85);
  transition: background .15s, border-color .15s, transform .15s;
}
.hero-chip:hover { background: rgba(145,132,217,.1); border-color: rgba(145,132,217,.4); transform: translateY(-1px); }
.hero-chip img, .hero-chip svg { width: 16px; height: 16px; display: block; }
.hero-chip.is-primary { border-color: rgba(145,132,217,.55); color: var(--color-accent-400); }
.hero-chip.is-primary:hover { background: rgba(145,132,217,.14); }
.hero-chip-linkedin {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; background: #0A66C2; color: #fff; font: 600 9px Inter, sans-serif; letter-spacing: .02em;
}
.hero-photo {
  width: 190px; height: 190px; border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(233,233,237,.14);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.stack-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; position: relative; z-index: 1; }
.stack-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 8px; border-radius: 999px;
  background: rgba(233,233,237,.04); border: 1px solid rgba(233,233,237,.1);
  font-size: 12.5px; color: rgba(233,233,237,.82);
  transition: background .15s, border-color .15s, transform .15s;
}
.stack-chip:hover {
  background: rgba(145,132,217,.12); border-color: rgba(145,132,217,.5);
  transform: translateY(-1px);
}
.stack-chip img { width: 15px; height: 15px; }

/* — section header (Projects / Path / Blog) — sem linha divisória: a
   separação entre seções vem do próprio título, grande e claro. */
.section-header {
  padding: 46px 38px 14px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.section-header h2 { margin: 0; font-size: 34px; letter-spacing: -.02em; color: var(--color-text); }
.section-subtitle { font-size: 13px; color: rgba(233,233,237,.45); margin-right: auto; }
.section-count {
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.35);
}
.section-header-link {
  font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; margin-left: auto;
}

/* — featured project cards — */
.featured-grid { padding: 12px 38px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.featured-card {
  border-radius: var(--radius-md); background: rgba(233,233,237,.03);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(233,233,237,.1);
  transition: box-shadow .22s, transform .22s, background .22s;
}
.featured-card:hover {
  transform: translateY(-9px) scale(1.015);
  background: rgba(145,132,217,.08);
  box-shadow: 0 0 0 1px rgba(145,132,217,.6), 0 28px 50px rgba(0,0,0,.55);
}
.featured-thumb { width: 100%; height: 168px; object-fit: cover; object-position: top; }
.featured-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.featured-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.featured-title { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em;
  color: var(--status-online); border: 1px solid rgba(93,219,160,.45);
  background: rgba(93,219,160,.08); border-radius: 3px; padding: 2px 6px;
}
.live-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--status-online); box-shadow: 0 0 0 3px rgba(93,219,160,.18); }
.featured-visits { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.45); margin-left: auto; }
.featured-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(233,233,237,.68); flex: 1; }
.hard-part {
  font: 12.5px/1.5 Inter, sans-serif; color: rgba(233,233,237,.68);
  background: rgba(145,132,217,.09); border-radius: 6px; padding: 10px 12px;
}
.hard-part-label {
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em;
  color: #a79bea; display: block; margin-bottom: 4px;
}
.card-icons { display: flex; gap: 7px 9px; align-items: center; flex-wrap: wrap; }
.card-icons img { width: 15px; height: 15px; opacity: .92; }
.featured-actions { display: flex; gap: 8px; margin-top: 2px; }
.featured-actions .btn { font-size: 12px; padding: 5px 10px; }

/* — compact project cards — */
.compact-grid { padding: 0 38px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compact-card {
  border-radius: var(--radius-md); background: rgba(233,233,237,.03);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(233,233,237,.09);
  transition: box-shadow .2s, transform .2s, background .2s;
}
.compact-card:hover {
  transform: translateY(-7px) scale(1.015);
  background: rgba(145,132,217,.08);
  box-shadow: 0 0 0 1px rgba(145,132,217,.55), 0 22px 38px rgba(0,0,0,.5);
}
.compact-thumb { width: 100%; height: 104px; object-fit: cover; object-position: top; }
.compact-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.compact-title-row { display: flex; align-items: baseline; gap: 8px; }
.compact-title { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.compact-visits { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.4); margin-left: auto; }
.compact-desc { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(233,233,237,.6); flex: 1; }
.compact-footer { display: flex; align-items: center; gap: 7px; }
.compact-icons { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.compact-footer img { width: 14px; height: 14px; opacity: .92; }
.tech-badge {
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(233,233,237,.5); letter-spacing: .02em;
  white-space: nowrap;
}
.compact-link { margin-left: auto; font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* — path (trajetória) — */
.path-list {
  list-style: none; display: flex; flex-direction: column;
  margin: 6px 38px 44px; padding: 0 0 0 20px;
  border-left: 1px solid var(--color-divider);
}
.path-entry { position: relative; padding-bottom: 20px; }
.path-entry:last-child { padding-bottom: 0; }
.path-dot {
  position: absolute; left: -25.5px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(233,233,237,.28);
}
.path-dot.is-current { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(145,132,217,.2); }
.path-role { font-size: 14.5px; font-weight: 500; color: var(--color-text); }
.path-meta { font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.45); margin-top: 4px; }

/* — blog — */
.blog-inner { padding: 0 38px 34px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  color: var(--color-text); border-radius: var(--radius-md); padding: 16px 17px;
  background: rgba(233,233,237,.03); box-shadow: 0 0 0 1px rgba(233,233,237,.09);
  display: flex; flex-direction: column; gap: 7px;
  transition: box-shadow .2s, transform .2s, background .2s;
}
.blog-card:hover {
  transform: translateY(-7px) scale(1.015);
  background: rgba(145,132,217,.08);
  box-shadow: 0 0 0 1px rgba(145,132,217,.55), 0 22px 38px rgba(0,0,0,.5);
}
.blog-card-title { font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.blog-card-desc { font-size: 12.5px; line-height: 1.5; color: rgba(233,233,237,.55); }
.blog-mock-notice { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.35); padding-top: 14px; }

/* — contact footer — */
.contact-footer {
  margin-top: 20px;
  background: rgba(233,233,237,.02);
}
.contact-inner {
  padding: 28px 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.contact-headline { font: 500 23px Inter, sans-serif; letter-spacing: -.025em; }
.contact-sub { font-size: 13px; color: rgba(233,233,237,.5); margin-top: 4px; }
.contact-text { margin-right: auto; }
.contact-widget { position: relative; display: flex; align-items: center; gap: 10px; }
.btn-gmail {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(145,132,217,.5); color: #c9c1ff;
  font-size: 13.5px;
}
.btn-gmail:hover { background: rgba(145,132,217,.12); border-color: rgba(145,132,217,.8); }
.btn-gmail img { width: 16px; height: 16px; }
.contact-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid rgba(233,233,237,.16); background: transparent;
  color: rgba(233,233,237,.7); cursor: pointer; font-size: 13px;
}
.contact-toggle:hover { background: rgba(233,233,237,.06); }
.contact-menu {
  display: none; position: absolute; right: 0; bottom: calc(100% + 8px);
  min-width: 230px; padding: 6px; border-radius: var(--radius-md);
  background: var(--page-menu-bg);
  box-shadow: 0 0 0 1px rgba(233,233,237,.12), 0 18px 40px rgba(0,0,0,.55);
  z-index: 9;
}
.contact-menu.is-open { display: block; }
.contact-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--color-text); font: 13px Inter, sans-serif; text-align: left; cursor: pointer;
}
.contact-menu-item:hover { background: rgba(233,233,237,.07); }
.contact-menu-icon { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #a79bea; width: 16px; text-align: center; }
.contact-menu-icon img { width: 16px; height: 16px; display: block; }
.contact-menu-linkedin {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; background: #0A66C2; color: #fff; font: 600 9px Inter, sans-serif; letter-spacing: .02em;
}
.wordmark { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(233,233,237,.35); }

/* — cursor customizado — */
/* só troca o cursor nativo em ponteiro fino (mouse); toque continua normal */
@media (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  border-radius: 50%; opacity: 0;
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 6px; height: 6px; background: var(--color-accent-400);
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1.5px solid rgba(145,132,217,.55);
  transition: width .2s, height .2s, margin .2s, border-color .2s, box-shadow .2s;
}
.cursor-dot { margin: -3px 0 0 -3px; }
.cursor-ring.is-hover {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: rgba(145,132,217,.9);
  box-shadow: 0 0 20px rgba(145,132,217,.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   Responsivo — a largura real da tela varia por monitor; abaixo de 900px
   entra layout de tablet, abaixo de 620px, de celular.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-inner { padding: 13px 20px; gap: 12px; position: relative; }
  .nav-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { padding: 34px 20px 26px; }
  .hero-grid {
    grid-template-columns: 1fr; gap: 18px;
    justify-items: center; text-align: center;
  }
  .hero-photo { order: -1; width: 128px; height: 128px; }
  .hero-kicker { margin-bottom: 14px; }
  .hero-heading { font-size: 36px; max-width: none; }
  .hero-body { margin: 18px auto 0; }
  .hero-actions { align-items: center; }
  .hero-actions-row { justify-content: center; }
  .stack-row { justify-content: center; }
  .section-header, .featured-grid, .compact-grid, .blog-inner, .contact-inner { padding-left: 20px; padding-right: 20px; }
  .path-list { margin-left: 20px; margin-right: 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  .compact-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-visits { display: none; }
  .hero-inner { padding: 28px 16px 22px; }
  .hero-photo { width: 108px; height: 108px; }
  .hero-heading { font-size: 28px; }
  .hero-body { font-size: 15px; }
  .hero-actions-row { gap: 8px; }
  .section-header, .featured-grid, .compact-grid, .blog-inner, .contact-inner { padding-left: 16px; padding-right: 16px; }
  .path-list { margin-left: 16px; margin-right: 16px; }
  .compact-grid, .blog-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-widget { width: 100%; }
  .btn-gmail { flex: 1; justify-content: center; }
  .contact-menu { right: auto; left: 0; }
  .back-to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card, .compact-card, .blog-card { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
