.root {
  --thumb-scale: 0.11;
  --thumb-gap: 14px;
  --thumb-bottom: 28px;
  --zoom-duration: 0.8s;
  --zoom-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: #0b0b0f;
  color: #fff;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

@media (width <= 640px) {
  .root {
    --thumb-scale: 0.16;
    --thumb-gap: 10px;
    --thumb-bottom: 20px;
  }
}

.gallery {
  height: 100%;
}

.track {
  height: 100%;
  overflow: visible !important;
}

.item {
  inset: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  transform: none !important;
  width: auto !important;
}

.item[data-active="true"] {
  z-index: 1 !important;
}

.item[data-active="false"] {
  z-index: 10 !important;
}

.slide {
  border-radius: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  transform: translate(0, 0) scale(1);
  transition:
    transform var(--zoom-duration) var(--zoom-ease),
    border-radius var(--zoom-duration) var(--zoom-ease),
    filter 0.25s ease;
  will-change: transform;
}

.item[data-active="false"] .slide {
  border-radius: 48px;
  filter: brightness(0.7);
  transform: translate(
      calc(var(--offset) * (var(--thumb-scale) * 100vw + var(--thumb-gap))),
      calc((50vh - var(--thumb-scale) * 50vh) - var(--thumb-bottom))
    )
    scale(var(--thumb-scale));
}

.item[data-active="false"] .slide:hover {
  filter: brightness(1);
}

.image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.thumbButton {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
}

.rail {
  align-items: flex-start;
  background: linear-gradient(90deg, rgb(0 0 0 / 60%), transparent);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  inset: 0 auto 0 0;
  justify-content: center;
  max-width: min(520px, 70%);
  padding: 0 3.5rem 0 3rem;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

@media (width <= 640px) {
  .rail {
    max-width: 90%;
    padding: 0 1.5rem;
  }
}

.content {
  animation: content-in 0.6s var(--zoom-ease) calc(var(--zoom-duration) * 0.4) backwards;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.kicker {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.7;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
}

.description {
  color: rgb(255 255 255 / 85%);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  margin: 0;
}

.controls {
  display: flex;
  gap: 0.75rem;
  pointer-events: auto;
}

.navBtn {
  align-items: center;
  appearance: none;
  backdrop-filter: blur(8px);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 3rem;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
  width: 3rem;
}

.navBtn:hover:not(:disabled) {
  background: rgb(255 255 255 / 22%);
  border-color: rgb(255 255 255 / 40%);
}

.navBtn:disabled {
  cursor: default;
  opacity: 0.35;
}

.visuallyHidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.siteNav {
  display: flex;
  gap: 0.5rem;
  position: fixed;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 40;
}

.siteNavLink {
  appearance: none;
  backdrop-filter: blur(10px);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: rgb(255 255 255 / 75%);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.siteNavLink:hover {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}

.siteNavLink[data-active="true"] {
  background: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 40%);
  color: #fff;
}

.profile {
  background: #0b0b0f;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.profileBackdrop {
  inset: 0;
  position: absolute;
}

.profileCover {
  display: block;
  filter: saturate(0.85);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profileScrim {
  background:
    linear-gradient(90deg, rgb(11 11 15 / 92%) 0%, rgb(11 11 15 / 72%) 48%, rgb(11 11 15 / 45%) 100%),
    linear-gradient(180deg, rgb(11 11 15 / 35%) 0%, rgb(11 11 15 / 88%) 100%);
  inset: 0;
  position: absolute;
}

.profileInner {
  animation: content-in 0.7s var(--zoom-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-content: center;
  max-width: min(560px, 92vw);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 5.5rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

@media (width >= 768px) {
  .profileInner {
    padding-left: 3.5rem;
  }
}

.profileHero {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.profileAvatar {
  border: 2px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  height: 88px;
  object-fit: cover;
  width: 88px;
}

.profileIntro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profileKicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0;
  opacity: 0.7;
  text-transform: uppercase;
}

.profileName {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0;
}

.profileLocation {
  color: rgb(255 255 255 / 75%);
  font-size: 0.95rem;
  margin: 0;
}

.profileBio {
  color: rgb(255 255 255 / 85%);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  margin: 0;
  max-width: 42ch;
}

.profileStats {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profileStat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profileStatValue {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.profileStatLabel {
  color: rgb(255 255 255 / 65%);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profileCta {
  appearance: none;
  align-self: flex-start;
  background: rgb(255 255 255 / 92%);
  border: 0;
  border-radius: 999px;
  color: #0b0b0f;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  transition:
    background 0.2s,
    transform 0.2s;
}

.profileCta:hover {
  background: #fff;
  transform: translateY(-1px);
}

.contact {
  background: #0b0b0f;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.contactBackdrop {
  inset: 0;
  position: absolute;
}

.contactCover {
  display: block;
  filter: saturate(0.85);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.contactScrim {
  background:
    linear-gradient(90deg, rgb(11 11 15 / 94%) 0%, rgb(11 11 15 / 78%) 52%, rgb(11 11 15 / 50%) 100%),
    linear-gradient(180deg, rgb(11 11 15 / 30%) 0%, rgb(11 11 15 / 90%) 100%);
  inset: 0;
  position: absolute;
}

.contactInner {
  animation: content-in 0.7s var(--zoom-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-content: center;
  max-width: min(520px, 92vw);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 5.5rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

@media (width >= 768px) {
  .contactInner {
    padding-left: 3.5rem;
  }
}

.contactIntro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contactKicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0;
  opacity: 0.7;
  text-transform: uppercase;
}

.contactTitle {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0;
}

.contactNote {
  color: rgb(255 255 255 / 85%);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  margin: 0;
  max-width: 42ch;
}

.contactDetails {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contactDetails li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contactDetailLabel {
  color: rgb(255 255 255 / 55%);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contactDetailValue {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

a.contactDetailValue:hover {
  text-decoration: underline;
}

.contactForm {
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.contactField {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contactField span {
  color: rgb(255 255 255 / 70%);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.contactField input,
.contactField textarea {
  appearance: none;
  background: rgb(0 0 0 / 35%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  padding: 0.75rem 0.85rem;
  resize: vertical;
}

.contactField input:focus,
.contactField textarea:focus {
  border-color: rgb(255 255 255 / 45%);
  outline: none;
}

.contactSubmit {
  appearance: none;
  align-self: flex-start;
  background: rgb(255 255 255 / 92%);
  border: 0;
  border-radius: 999px;
  color: #0b0b0f;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.25rem;
  padding: 0.85rem 1.4rem;
  transition:
    background 0.2s,
    transform 0.2s;
}

.contactSubmit:hover {
  background: #fff;
  transform: translateY(-1px);
}

.contactThanks {
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  color: rgb(255 255 255 / 90%);
  line-height: 1.55;
  margin: 0;
  padding: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }

  .content,
  .profileInner,
  .contactInner {
    animation: none;
  }
}
