:root {
  color-scheme: dark;
  --black: #050505;
  --white: #f5f5f0;
  --soft-white: rgba(245, 245, 240, 0.72);
  --muted: rgba(245, 245, 240, 0.46);
  --line: rgba(255, 255, 255, 0.16);
  --card-radius: clamp(14px, 1.35vw, 22px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

body {
  color: var(--white);
  font-family: "Onest", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.site-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 38%, rgba(35, 35, 35, 0.16), transparent 42%),
    var(--black);
}

.site-header,
.site-footer,
.progress {
  position: absolute;
  z-index: 40;
  pointer-events: none;
}

.site-shell.profile-open .experience {
  opacity: 0.2;
  filter: blur(10px);
  transition: opacity 420ms ease, filter 420ms ease;
}

.site-header {
  inset: 27px clamp(20px, 5.35vw, 76px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
}

.brand,
.header-action,
.footer-link,
.view-nav,
.progress {
  font-size: 10px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.brand,
.header-action,
.footer-link,
.view-nav-link {
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.brand,
.header-action,
.footer-link {
  font-weight: 700;
}

.brand:hover,
.header-action:hover,
.footer-link:hover,
.view-nav-link:hover,
.view-nav-link:focus-visible {
  opacity: 0.56;
}

.header-action {
  color: var(--white);
}

.experience,
.slider-shell {
  position: absolute;
  inset: 0;
}

.slider-shell {
  z-index: 5;
  perspective: 1400px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.slider-shell.is-dragging {
  cursor: grabbing;
}

.slide-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(45vw, 680px);
  aspect-ratio: 1.5;
  border-radius: var(--card-radius);
  transform-style: preserve-3d;
  pointer-events: auto;
  backface-visibility: hidden;
  will-change: transform, filter;
  transition: none;
}

.slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  background: #1c1c1c;
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.34),
    0 1px 1px rgba(255, 255, 255, 0.08) inset;
  isolation: isolate;
}

.slide-link::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.76) 100%);
  pointer-events: none;
}

.slide-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

.slide-media,
.slide-media img {
  width: 100%;
  height: 100%;
}

.slide-media {
  position: relative;
  overflow: hidden;
}

.slide-media img {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(0.98);
  transform: scale(1.035);
  transition: transform 1.2s cubic-bezier(0.2, 0.72, 0.18, 1), filter 760ms ease;
}

.slide:hover .slide-media img,
.slide.is-active .slide-media img {
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1.08);
}

.slide-topline,
.slide-title,
.slide-description,
.slide-index,
.slide-arrow {
  position: absolute;
  z-index: 6;
}

.slide-topline {
  top: 16px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.slide-title {
  right: 18px;
  bottom: 17px;
  left: 18px;
  color: #fff;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.slide-description {
  right: 82px;
  bottom: 18px;
  max-width: 44%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1.16;
  text-align: right;
}

.slide-index {
  bottom: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1;
}

.slide-arrow {
  right: 16px;
  bottom: 14px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.slide:hover .slide-arrow {
  color: #050505;
  background: #fff;
  transform: translate(1px, -1px);
}

.progress {
  right: auto;
  left: clamp(20px, 5.35vw, 76px);
  bottom: 28px;
  color: var(--soft-white);
  pointer-events: none;
}

.progress-divider {
  display: inline-block;
  margin: 0 3px;
  color: var(--muted);
}

.site-footer {
  right: clamp(20px, 5.35vw, 76px);
  bottom: 28px;
  left: clamp(20px, 5.35vw, 76px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-transform: uppercase;
}

.view-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.view-nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.view-nav-link:not(.is-active) {
  color: rgba(255, 255, 255, 0.48);
}

.view-nav-divider {
  color: rgba(255, 255, 255, 0.38);
}

.team-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 180ms ease;
}

.team-link:hover,
.team-link:focus-visible {
  opacity: 0.62;
}

.team-link img {
  display: block;
  width: clamp(28px, 2.35vw, 38px);
  height: clamp(28px, 2.35vw, 38px);
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-panel {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px clamp(28px, 8vw, 140px);
  background: rgba(5, 5, 5, 0.88);
  opacity: 0;
  transition: opacity 420ms ease;
}

.profile-panel[hidden] {
  display: none;
}

.profile-panel.is-open {
  opacity: 1;
}

.profile-panel-inner {
  width: min(740px, 100%);
}

.profile-eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-panel h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 9vw, 132px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.profile-panel h2 em {
  display: block;
  color: rgba(245, 245, 240, 0.52);
  font-family: "Onest", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.profile-copy {
  max-width: 370px;
  margin: 42px 0 32px;
  color: var(--soft-white);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.profile-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-panel-inner > a {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.profile-close {
  position: absolute;
  top: 27px;
  right: clamp(20px, 5.35vw, 76px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-close:first-letter {
  font-size: 18px;
  font-weight: 300;
}

.profile-close:hover {
  opacity: 0.56;
}

@media (max-width: 700px) {
  html,
  body {
    overflow: hidden;
  }

  .site-shell {
    min-height: 0;
    height: 100dvh;
  }

  .site-header {
    inset: 27px 20px auto;
  }

  .slider-shell {
    overflow-x: hidden;
    overflow-y: auto;
    cursor: default;
    perspective: none;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
  }

  .slide-track {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    padding: calc(50dvh - 33.333vw + 13.333px) 20px;
    pointer-events: auto;
    transform: none;
  }

  .slide {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: 14px;
    transform: none !important;
    opacity: 1 !important;
    scroll-snap-align: center;
  }

  .slide-link {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  }

  .slide-topline {
    top: 13px;
    right: 14px;
    left: 14px;
    font-size: 8px;
  }

  .slide-title {
    right: 14px;
    bottom: 15px;
    left: 14px;
    font-size: 17px;
  }

  .slide-description {
    right: 70px;
    bottom: 16px;
    max-width: 48%;
    font-size: 8px;
  }

  .slide-index {
    bottom: 16px;
    left: 14px;
    font-size: 8px;
  }

  .slide-arrow {
    right: 13px;
    bottom: 12px;
    width: 25px;
    height: 25px;
  }

  .progress {
    top: auto;
    right: auto;
    bottom: 28px;
    left: 20px;
    font-size: 9px;
  }

  .site-footer {
    right: 20px;
    bottom: 28px;
    left: 20px;
  }

  .team-links {
    gap: 8px;
  }

  .team-link {
    gap: 7px;
    font-size: 12px;
  }

  .team-link img {
    width: 30px;
    height: 30px;
  }

  .brand,
  .header-action,
  .progress {
    font-size: 9px;
  }

  .profile-panel {
    padding: 80px 20px;
  }

  .profile-panel h2 {
    font-size: clamp(54px, 17vw, 92px);
  }

  .profile-copy {
    margin-top: 34px;
    font-size: 14px;
  }

  .profile-meta {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
