* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(224, 53, 67, 0.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(224, 53, 67, 0.035) 2px, transparent 2px),
    radial-gradient(circle at 50% -10%, rgba(181, 34, 49, 0.16), transparent 42%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,0.012) 7px 8px),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.42));
}

::selection {
  background: var(--red-500);
  color: #fff;
}

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

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

button, input, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4 {
  line-height: 1.08;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

main {
  display: block;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--red-700) 0 18px, var(--red-950) 18px 36px);
  opacity: 0.8;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-header h2 {
  margin: 16px 0 14px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--red-900), 7px 7px 0 var(--black);
}

.section-header p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.68;
}

#team-showcase {
  padding-top: 150px;
  min-height: 80vh;
}

@media (max-width: 820px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 70px 0;
  }

  #team-showcase {
    padding-top: 110px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 58px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    text-shadow: 3px 3px 0 var(--red-900), 5px 5px 0 var(--black);
  }
}
