/* Общая отделка страниц: белые заголовки и голубая спортивная графика. */
h1,
h1 span,
h2,
h3,
.hero h1,
.hero h1 span,
.contact h2 {
  color: #fff;
}
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 15px 4px 0;
  font-size: 38px;
  letter-spacing: -2px;
  transform: skewX(-8deg);
}
.logo::after {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 5px;
  height: 30px;
  background: var(--mint);
  box-shadow: 7px 0 0 #58c8d54d;
  transform: skewX(-15deg);
}
header {
  border-bottom-color: #58c8d53d;
}
nav a {
  transition: color 0.2s;
}
nav {
  scrollbar-width: none;
}
nav::-webkit-scrollbar {
  display: none;
}
.button,
.button.primary {
  background: transparent;
  border-color: var(--mint);
  color: #fff;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.button:hover,
.button.primary:hover {
  background: transparent;
  border-color: var(--mint);
  color: var(--mint);
}
section {
  padding-top: 80px;
  padding-bottom: 80px;
}
section > h2,
.section-head h2,
.about h2 {
  position: relative;
  padding-bottom: 22px;
}
section > h2::after,
.section-head h2::after,
.about h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--mint);
  box-shadow: 12px 7px 0 #58c8d54d;
}
.section-divider {
  display: none;
}
/* Сама верхняя кромка секции вырезана волной и перекрывает предыдущую. */
.section-divider + section {
  --wave-height: 64px;
  position: relative;
  margin-top: calc(-1 * var(--wave-height));
  padding-top: calc(80px + var(--wave-height));
  mask-image: url("../assets/section-wave.svg"), linear-gradient(#000, #000);
  mask-size:
    100% var(--wave-height),
    100% calc(100% - var(--wave-height) + 1px);
  mask-position: top, bottom;
  mask-repeat: no-repeat;
  -webkit-mask-image:
    url("../assets/section-wave.svg"), linear-gradient(#000, #000);
  -webkit-mask-size:
    100% var(--wave-height),
    100% calc(100% - var(--wave-height) + 1px);
  -webkit-mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
}
.about {
  background: #102128;
}
.about > div:last-child {
  border-left: 1px solid #58c8d544;
  padding: 20px 0 20px 32px;
}
.about .bodycopy {
  font-size: 16px;
}
.about {
  align-items: start;
}
.about-biography {
  max-width: none;
}
.about-biography p {
  margin: 0 0 1em;
}
.about-biography p:last-child {
  margin-bottom: 0;
}
.about-biography p:first-child {
  color: #fff;
  font-size: 18px;
}
.about-photo {
  border: 1px solid #58c8d54d;
}
#achievements {
  background: var(--bg);
}
#gallery {
  background: #102128;
}
#achievements .milestones {
  gap: 16px;
}
#achievements .milestones article {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid #58c8d530;
  background: linear-gradient(135deg, #58c8d509, transparent);
}
#achievements .milestones article::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--mint);
  border-right: 2px solid var(--mint);
}
#achievements .milestones h3 {
  margin: 0;
  line-height: 1.35;
}

/* Квадратные фото заполняют кадр, названия лежат на фоне самой секции. */
.gallery.editorial-grid,
.gallery.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: 1fr;
  gap: 26px 20px;
}
.gallery .tile.story-tile,
.gallery .tile.story-tile:first-child,
.gallery .tile.story-tile:nth-child(6) {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  grid-column: auto;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  transition: opacity 0.25s;
}
.gallery .tile.story-tile img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
  will-change: auto;
  background: #0d181e;
}
.gallery .tile.story-tile .story-caption {
  display: block;
  position: absolute;
  inset: auto 0 0;
  padding: 64px 44px 22px 22px;
  background: linear-gradient(transparent, #061018e8);
  transform: none;
  border: 0;
}
.gallery .tile.story-tile .story-caption::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: auto;
  bottom: 24px;
  color: var(--mint);
  font:
    20px Arial,
    sans-serif;
}
.gallery .tile.story-tile .story-caption strong {
  color: #fff;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.3;
}
.gallery .tile.story-tile:hover,
.gallery .tile.story-tile:focus-visible {
  box-shadow: none;
  outline: 1px solid var(--mint);
  outline-offset: 6px;
}
#lightbox img.story-photo {
  object-fit: contain;
  background: #0d181e;
  min-height: 0;
  max-height: 75vh;
}
#interests {
  background: var(--bg);
}
#interests .hobby-photo > h3 {
  position: absolute;
  top: auto;
  left: 24px;
  right: 20px;
  bottom: 20px;
  margin: 0;
  max-width: none;
  color: #fff;
}
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #102b38;
  color: #e3edf0;
  border-top: 0;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -220px;
  top: -250px;
  border: 1px solid #58c8d544;
  border-radius: 50%;
  box-shadow:
    0 0 0 45px #58c8d508,
    0 0 0 90px #58c8d508,
    0 0 0 135px #58c8d508;
}
.contact .button {
  border-color: var(--mint);
  color: #fff;
}
.contact-links > a:not(.button):hover {
  color: var(--mint);
}
footer {
  border-top: 1px solid #58c8d530;
}
@media (max-width: 1000px) {
  #achievements .milestones article {
    padding: 24px;
  }
}
@media (max-width: 760px) {
  section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .section-divider + section {
    --wave-height: 36px;
    padding-top: calc(55px + var(--wave-height));
  }
  .about > div:last-child {
    padding-left: 20px;
  }
  .gallery.editorial-grid,
  .gallery.archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .gallery .tile.story-tile .story-caption {
    padding: 40px 28px 14px 12px;
  }
  .gallery .tile.story-tile .story-caption::after {
    right: 10px;
    top: auto;
    bottom: 16px;
    font-size: 16px;
  }
  .gallery .tile.story-tile .story-caption strong {
    font-size: clamp(17px, 3.7vw, 23px);
  }
  #achievements .milestones {
    gap: 12px;
  }
  #achievements .milestones article {
    padding: 20px 14px;
  }
  .contact h2 {
    font-size: clamp(32px, 8vw, 50px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .tile.story-tile,
  .button {
    transition: none;
  }
}
