/* Focused overrides for the professional portfolio content. */
.header {
  width: min(92%, 960px);
}

.header h1,
.header h2,
.header p {
  padding: 0;
}

.header .site-title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.02;
}

.header .site-description {
  margin: 0.55rem 0 0;
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  line-height: 1.15;
  font-weight: 600;
}

.header .site-focus {
  margin: 0.8rem 0 0;
  color: #d8f3f0;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-summary {
  max-width: 820px;
  margin: 1rem auto 0;
  font-size: clamp(0.88rem, 1.65vw, 1.08rem);
  line-height: 1.5;
}

.header-summary p {
  margin: 0.55rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.header-links.hero-actions .link {
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.header-links.hero-actions .link:hover,
.header-links.hero-actions .link:focus {
  color: #0b535a;
  background: #fff;
}

.header .header-icons .icon {
  width: 18px;
  height: 18px;
  padding: 8px;
  margin: 3px;
  font-size: 18px;
}

.tech {
  flex: 1;
  padding: 0 1rem;
}

.tech h2 {
  font-size: 1.35rem;
}

.tech p {
  line-height: 1.6;
}

.user-projects {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
  padding: 2.5rem 0;
  margin: 0 auto;
}

.user-projects + .user-projects {
  border-top: 1px solid #e1eceb;
}

.user-projects > div {
  float: none !important;
  width: auto !important;
  margin-top: 0 !important;
}

.user-projects .images-left,
.user-projects .contents-left {
  grid-column: 1;
}

.user-projects .images-right,
.user-projects .contents-right {
  grid-column: 2;
}

.user-projects .contents-left,
.user-projects .images-right {
  grid-row: 1;
}

.user-projects .images-left img,
.user-projects .images-right img {
  float: none;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.user-projects h3 {
  padding-top: 0.75rem;
}

.project-kicker {
  margin-top: -0.45rem;
  color: #0b535a;
  font-size: 1.03rem;
  font-weight: 700;
}

.project-facts {
  font-size: 0.93rem;
  line-height: 1.65;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-logo-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.project-logo-pair img {
  float: none !important;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #fff;
}

.other-work {
  clear: both;
  margin: 4rem 0 1rem;
  text-align: center;
}

.other-work h2 {
  font-size: 1.7rem;
}

.other-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.other-projects a {
  display: flex;
  box-sizing: border-box;
  min-height: 130px;
  padding: 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid #d9e3e2;
  border-radius: 10px;
  color: #0b535a;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-projects a:hover,
.other-projects a:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 83, 90, 0.12);
}

.other-projects img {
  width: 100%;
  height: 70px;
  object-fit: contain;
}

.other-projects span {
  font-weight: 700;
}

#cv {
  margin-top: 3rem;
  padding: 2.75rem 1rem;
  background: #eff7f6;
}

#cv .user-resume {
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
}

#cv h1 {
  margin-top: 0;
  padding-top: 0;
}

.footer {
  margin-top: 0;
}

a:focus-visible {
  outline: 3px solid #f4c95d;
  outline-offset: 3px;
}

@media only screen and (min-width: 550px) and (max-width: 849px) {
  .other-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (min-width: 850px) {
  .other-projects {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 549px) {
  .header-summary {
    font-size: 0.83rem;
    line-height: 1.35;
  }

  .header-summary p {
    margin: 0.4rem auto;
  }

  .header .site-focus {
    letter-spacing: 0.04em;
  }

  .header-links.hero-actions .link {
    font-size: 0.9rem;
  }

  .header .header-icons .icon {
    width: 16px;
    height: 16px;
    padding: 6px;
    font-size: 16px;
  }

  .tech {
    padding: 0;
  }

  .project-logo-pair {
    grid-template-columns: 1fr 1fr;
  }

  .user-projects {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 2rem 0;
  }

  .user-projects .images-left,
  .user-projects .images-right,
  .user-projects .contents-left,
  .user-projects .contents-right {
    grid-row: auto;
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #particles-js .particles-js-canvas-el {
    display: none;
  }

  .other-projects a {
    transition: none;
  }
}
