@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500&family=Unbounded:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --about-aegean: #03192f;
  --about-white: #ffffff;
  --about-focus: #8deaff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--about-aegean);
  scrollbar-color: rgba(255, 255, 255, 0.35) var(--about-aegean);
  scrollbar-width: thin;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--about-aegean);
  color: var(--about-white);
  font-family: "Sora", sans-serif;
}

body::-webkit-scrollbar {
  width: 9px;
}

body::-webkit-scrollbar-track {
  background: var(--about-aegean);
}

body::-webkit-scrollbar-thumb {
  border: 2px solid var(--about-aegean);
  background: rgba(255, 255, 255, 0.35);
}

::selection {
  background: var(--about-focus);
  color: #01111f;
}

.about-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.about-return {
  position: fixed;
  top: clamp(22px, 4vw, 44px);
  left: clamp(22px, 4vw, 52px);
  z-index: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--about-white);
  font-family: "Unbounded", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.about-return svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.4;
}

.about-return span {
  border-bottom: 1px solid transparent;
  padding: 5px 0;
}

.about-return:hover span,
.about-return:focus-visible span {
  border-bottom-color: currentColor;
}

.about-return:focus-visible,
.about-socials a:focus-visible,
.about-copy a:focus-visible {
  outline: 2px solid var(--about-white);
  outline-offset: 6px;
}

.about-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  contain: paint;
  overflow: clip;
  display: grid;
  place-items: center;
  padding: clamp(96px, 12svh, 132px) clamp(18px, 3vw, 52px) clamp(56px, 8svh, 88px);
}

.about-composition {
  position: relative;
  width: min(1180px, 94vw);
  display: grid;
  grid-template-columns:
    clamp(105px, 12.5vw, 173px)
    minmax(0, 790px)
    clamp(105px, 12.5vw, 173px);
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.about-identity {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
}

.about-column {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(438px, 67.5svh, 523px);
  pointer-events: none;
}

.about-column canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(280px, 26vw, 350px);
  height: 100%;
  display: block;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-column.is-loaded canvas {
  opacity: 0.86;
}

.about-intro {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(174px, 18vw, 218px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 72px);
}

.about-portrait {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
}

.about-portrait picture,
.about-portrait img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-portrait img {
  object-fit: cover;
}

.about-copy {
  max-width: 490px;
}

.about-copy h1 {
  margin: 0 0 22px;
  color: var(--about-white);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.about-copy p {
  max-width: 46ch;
  margin: 0;
  color: var(--about-white);
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  font-weight: 300;
  line-height: 1.75;
}

.about-copy a {
  color: inherit;
  font-weight: 400;
  text-decoration-color: rgba(255, 255, 255, 0.52);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}

.about-copy a:hover {
  text-decoration-color: var(--about-white);
}

.about-socials {
  width: min(650px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6svh, 58px);
}

.about-socials a {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px;
  color: var(--about-white);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.62rem, 0.78vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.about-socials a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-socials a:hover::after,
.about-socials a:focus-visible::after {
  transform: scaleX(1);
}

.about-socials svg,
.about-socials img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.about-socials svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.35;
}

.about-socials .social-mark--filled {
  fill: currentColor;
  stroke: none;
}

.about-socials img {
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

@media (max-width: 700px) {
  .about-stage {
    padding: 90px 0 48px;
  }

  .about-composition {
    width: 100%;
    display: block;
  }

  .about-identity {
    width: min(72vw, 300px);
    margin-inline: auto;
  }

  .about-column {
    position: absolute;
    top: 38%;
    width: clamp(90px, 27.5vw, 110px);
    height: min(588px, 85svh);
    transform: translateY(-50%);
  }

  .about-column--left {
    left: 0;
  }

  .about-column--right {
    right: 0;
  }

  .about-column canvas {
    width: min(92vw, 370px);
  }

  .about-column--left canvas {
    left: 38%;
    -webkit-mask-image: linear-gradient(to right, var(--about-white) 62%, transparent 90%);
    mask-image: linear-gradient(to right, var(--about-white) 62%, transparent 90%);
  }

  .about-column--right canvas {
    left: 62%;
    -webkit-mask-image: linear-gradient(to left, var(--about-white) 62%, transparent 90%);
    mask-image: linear-gradient(to left, var(--about-white) 62%, transparent 90%);
  }

  .about-column.is-loaded canvas {
    opacity: 0.54;
  }

  .about-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
  }

  .about-portrait {
    width: clamp(148px, 43vw, 184px);
  }

  .about-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .about-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .about-copy p {
    max-width: 35ch;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .about-socials {
    margin-top: 34px;
  }

  .about-socials a {
    flex-direction: column;
    gap: 7px;
    padding-inline: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}

@media (max-height: 690px) and (min-width: 701px) {
  .about-stage {
    padding-block: 78px 42px;
  }

  .about-composition {
    width: min(1060px, 92vw);
  }

  .about-intro {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .about-socials {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-column canvas,
  .about-socials a::after {
    transition: none;
  }
}
