/* ═══════════════════════════════════════════════════════════════
   THIAGO VALLS — GLOBAL STYLESHEET
   /styles/main.css
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────── */
:root {
  /* Navy palette */
  --navy:          #0f1b3d;
  --navy-light:    #1a2d5a;
  --navy-muted:    #2a3f6e;

  /* Blue accent */
  --blue-vivid:    #2563eb;
  --blue-glow:     #3b82f6;
  --blue-soft:     #dbeafe;

  /* Orange accent */
  --orange:        #e8722a;
  --orange-warm:   #f59e0b;
  --orange-soft:   #fef3c7;

  /* Neutrals */
  --white:         #ffffff;
  --gray-50:       #f8f9fb;
  --gray-100:      #f0f1f5;
  --gray-200:      #e2e4ea;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;

  /* Semantic */
  --text-primary:  var(--navy);
  --text-secondary: var(--navy-light);
  --text-muted:    var(--gray-600);
  --text-faint:    var(--gray-400);
  --accent:        var(--orange);
  --link:          var(--blue-vivid);
  --link-hover:    var(--blue-glow);
  --surface:       var(--white);
  --surface-alt:   var(--gray-50);
  --border:        var(--gray-200);
  --border-light:  rgba(226, 228, 234, 0.5);

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Nunito', sans-serif;

  /* Sizing scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.05rem;
  --text-lg:   1.2rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* Spacing scale */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1200px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(15,27,61,0.04), 0 1px 2px rgba(15,27,61,0.03);
  --shadow-md:   0 4px 16px rgba(15,27,61,0.06), 0 2px 6px rgba(15,27,61,0.03);
  --shadow-lg:   0 12px 40px rgba(15,27,61,0.08), 0 4px 12px rgba(15,27,61,0.04);
  --shadow-xl:   0 20px 60px rgba(15,27,61,0.12), 0 6px 20px rgba(15,27,61,0.05);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.12);

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  500ms;

  /* Z-index scale */
  --z-base:    1;
  --z-sticky:  100;
  --z-navbar:  500;
  --z-overlay: 900;
  --z-modal:   1000;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg,
      var(--white)    0%,
      var(--gray-50)  25%,
      var(--gray-100) 50%,
      var(--gray-50)  75%,
      var(--white)    100%
    );
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Watermark background — ass.png faded & centered, scrolls with page */
.has-watermark {
  position: relative;
}

.has-watermark::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vmin;
  height: 50vmin;
  background: url('/media/ass.png') center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }


/* ─────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────── */

/* Display — Bebas Neue (hero names, big statements) */
.display, .display-lg {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1;
}

.display    { font-size: clamp(2.5rem, 6vw, 4rem); }
.display-lg { font-size: clamp(3.2rem, 8vw, 5.5rem); }

/* Headings — Montserrat */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
}

h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

/* Body */
p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

p:last-child { margin-bottom: 0; }

small, .text-sm  { font-size: var(--text-sm); }
.text-xs         { font-size: var(--text-xs); }
.text-lg         { font-size: var(--text-lg); }
.text-muted      { color: var(--text-muted); }
.text-faint      { color: var(--text-faint); }
.text-accent     { color: var(--accent); }
.text-link       { color: var(--link); }
.text-center     { text-align: center; }
.text-uppercase  { text-transform: uppercase; letter-spacing: 0.06em; }

.highlight {
  color: var(--blue-vivid);
  font-weight: 600;
}

.highlight-orange {
  color: var(--orange);
  font-weight: 600;
}


/* ─────────────────────────────────────────
   LINKS
   ───────────────────────────────────────── */
.link {
  color: var(--link);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--link-hover);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.link:hover {
  color: var(--link-hover);
}

.link:hover::after {
  width: 100%;
}


/* ─────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.section {
  padding-block: var(--space-20);
}

.section-sm {
  padding-block: var(--space-12);
}


/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-4) var(--space-6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(248,249,251,0.82);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--duration-base) ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: var(--container-xl);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  transition: color var(--duration-fast) ease;
}

.navbar-brand:hover {
  color: var(--blue-vivid);
}

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

.navbar-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--navy);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out-expo);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.card-accent {
  border-left: 3px solid var(--orange);
}


/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo),
    background var(--duration-fast) ease;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-warm));
  color: var(--white);
}

.btn-accent:hover {
  box-shadow: 0 8px 24px rgba(232,114,42,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: var(--blue-soft);
}


/* ─────────────────────────────────────────
   BADGES / TAGS
   ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue-vivid);
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-navy {
  background: rgba(15,27,61,0.06);
  color: var(--navy);
}


/* ─────────────────────────────────────────
   DIVIDERS
   ───────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin-block: var(--space-10);
}

.divider-short {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-warm));
  border-radius: 2px;
}

.divider-short.center { margin-inline: auto; }


/* ─────────────────────────────────────────
   SOCIAL LINKS
   ───────────────────────────────────────── */
.social-row {
  display: flex;
  gap: var(--space-5);
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo),
    background var(--duration-fast) ease;
}

.social-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  background: var(--navy);
}

.social-row a svg {
  width: 18px;
  height: 18px;
  fill: var(--navy-light);
  transition: fill var(--duration-fast) ease;
}

.social-row a:hover svg {
  fill: var(--white);
}


/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered — add .reveal to elements, JS toggles .visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Stagger children inside .stagger-group */
.stagger-group .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-group .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-group .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-group .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-group .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger-group .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger-group .reveal:nth-child(7) { transition-delay: 480ms; }
.stagger-group .reveal:nth-child(8) { transition-delay: 560ms; }


/* ─────────────────────────────────────────
   PAGE HEADER (reusable top section)
   ───────────────────────────────────────── */
.page-header {
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-12);
  text-align: center;
  position: relative;
}

.page-header h1 {
  margin-bottom: var(--space-4);
}

.page-header .subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted);
  max-width: var(--container-sm);
  margin-inline: auto;
}


/* ─────────────────────────────────────────
   TIMELINE (profissional)
   ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-vivid), var(--orange));
  border-radius: 1px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 3px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-vivid);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: var(--space-2);
}

.timeline-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}


/* ─────────────────────────────────────────
   GRID UTILITIES
   ───────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}


/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer p {
  font-size: var(--text-sm);
  color: var(--text-faint);
}

.footer .quote {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}


/* ─────────────────────────────────────────
   DECORATIVE BLOBS (background ambiance)
   ───────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.blob-blue {
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
}

.blob-orange {
  background: radial-gradient(circle, rgba(232,114,42,0.05) 0%, transparent 70%);
}


/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2.4rem;
    --text-3xl: 1.875rem;
    --text-2xl: 1.5rem;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248,249,251,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-12);
  }

  .page-header {
    padding-top: calc(70px + var(--space-10));
    padding-bottom: var(--space-8);
  }

  .container {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.6rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ─────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }
.mx-auto     { margin-inline: auto; }
.mt-4        { margin-top: var(--space-4); }
.mt-8        { margin-top: var(--space-8); }
.mb-4        { margin-bottom: var(--space-4); }
.mb-8        { margin-bottom: var(--space-8); }
.mb-12       { margin-bottom: var(--space-12); }
.pt-0        { padding-top: 0; }
.pb-0        { padding-bottom: 0; }
.w-full      { width: 100%; }
.max-w-sm    { max-width: var(--container-sm); }
.max-w-md    { max-width: var(--container-md); }
.max-w-lg    { max-width: var(--container-lg); }
.relative    { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ─────────────────────────────────────────
   COURSE CATEGORIES (acadêmico)
   ───────────────────────────────────────── */
.course-category {
  margin-bottom: var(--space-10);
}

.course-category h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.course-category h3::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--blue-vivid), var(--orange));
  border-radius: 2px;
  flex-shrink: 0;
}

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

.course-list li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.course-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.course-list li a {
  color: var(--link);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.course-list li a:hover {
  color: var(--link-hover);
}

.cert-badge {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   PROSE (rich text blocks)
   ───────────────────────────────────────── */
.prose {
  max-width: var(--container-md);
  margin-inline: auto;
}

.prose h2 {
  margin-bottom: var(--space-4);
}

.prose p + p {
  margin-top: var(--space-4);
}


/* ─────────────────────────────────────────
   CONTACT BOX
   ───────────────────────────────────────── */
.contact-box {
  text-align: center;
  padding: var(--space-10);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: var(--container-sm);
  margin-inline: auto;
}

.contact-box h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.contact-box a {
  color: var(--link);
  font-weight: 600;
  transition: color var(--duration-fast) ease;
}

.contact-box a:hover {
  color: var(--link-hover);
}


/* ─────────────────────────────────────────
   MAIN CONTENT (z-index above watermark)
   ───────────────────────────────────────── */
main, .page-header, .footer {
  position: relative;
  z-index: var(--z-base);
}


/* ─────────────────────────────────────────
   SELECTION
   ───────────────────────────────────────── */
::selection {
  background: rgba(37,99,235,0.15);
  color: var(--navy);
}

::-moz-selection {
  background: rgba(37,99,235,0.15);
  color: var(--navy);
}


/* ─────────────────────────────────────────
   SCROLLBAR (webkit)
   ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}
