:root {
  --ink: #f6f1e9;
  --dark: #17120f;
  --line: rgba(246, 241, 233, .42);
  --accent: #d1a477;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

button, a { color: inherit; }

.experience {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px clamp(24px, 4.2vw, 72px);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .22em;
}

.brand-mark {
  border: 1px solid currentColor;
  border-radius: 50%;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  font: italic 600 17px/1 "Playfair Display", serif;
  letter-spacing: 0;
}

.tagline { margin: 0; text-align: center; line-height: 1.5; opacity: .85; }

.menu-button {
  justify-self: end;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 8px 0 8px 8px;
}

.menu-button span { display: block; width: 25px; height: 1px; background: currentColor; }
.menu-button span:last-child { width: 16px; justify-self: end; }

.slider { position: relative; min-height: max(650px, 100svh); overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.008);
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 4s cubic-bezier(.22,.61,.36,1), transform 4s cubic-bezier(.22,.61,.36,1);
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.025);
  transition: transform 9.5s cubic-bezier(.2,.55,.3,1);
}

.slide.is-active img { transform: scale(1); }

.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,10,7,.6) 0%, rgba(15,10,7,.17) 49%, rgba(15,10,7,.25) 100%), linear-gradient(0deg, rgba(15,10,7,.5) 0%, transparent 38%);
}

.slide-copy {
  position: absolute;
  left: clamp(24px, 12vw, 210px);
  top: 50%;
  width: min(620px, 72vw);
  transform: translateY(-42%);
}

.eyebrow {
  margin: 0 0 23px;
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font: 500 clamp(52px, 7vw, 122px)/.93 "Playfair Display", Georgia, serif;
  letter-spacing: -.055em;
}

h1 em { font-weight: 500; color: #e3c6a8; }

.lead {
  max-width: 390px;
  margin: 30px 0;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
  color: rgba(246,241,233,.84);
}

.text-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s, border-color .25s;
}

.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-size: 16px; font-weight: 400; }

.slide-caption {
  position: absolute;
  bottom: 42px;
  right: clamp(24px, 4.2vw, 72px);
  margin: 0;
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(246,241,233,.72);
}

.slide-navigation {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4.2vw, 72px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(23,18,15,.14);
  cursor: pointer;
  font-size: 17px;
  transition: background .25s, color .25s;
}

.arrow:hover { background: var(--ink); color: var(--dark); }

.slide-count { display: flex; align-items: center; gap: 9px; font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.count-line { height: 1px; width: 32px; background: var(--line); }

.progress { position: absolute; z-index: 3; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,.16); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 5s linear; }
.progress.is-running span { width: 100%; transition-duration: 6.5s; }

.footer {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 31px clamp(24px, 4.2vw, 72px);
  background: #1b1511;
  color: rgba(246,241,233,.73);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.65;
  text-transform: uppercase;
}

.footer p { margin: 0; }
.footer a { justify-self: center; align-self: center; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.location { justify-self: end; text-align: right; }

@media (max-width: 680px) {
  .topbar { grid-template-columns: 1fr auto; padding-top: 19px; }
  .tagline { display: none; }
  .slider { min-height: 700px; }
  .slide-copy { top: 48%; width: calc(100% - 48px); transform: translateY(-35%); }
  h1 { font-size: clamp(51px, 16vw, 83px); }
  .lead { margin: 24px 0; max-width: 305px; font-size: 13px; }
  .slide-shade { background: linear-gradient(90deg, rgba(15,10,7,.58), rgba(15,10,7,.05)), linear-gradient(0deg, rgba(15,10,7,.83) 0%, rgba(15,10,7,.13) 58%); }
  .slide-caption { bottom: 118px; right: 22px; font-size: 8px; }
  .slide-navigation { bottom: 29px; gap: 12px; }
  .arrow { width: 36px; height: 36px; }
  .footer { min-height: 191px; grid-template-columns: 1fr 1fr; padding-top: 28px; padding-bottom: 28px; font-size: 9px; }
  .footer a { justify-self: end; align-self: start; }
  .location { grid-column: 1 / -1; justify-self: start; text-align: left; }

  .slide img {
    transform: scale(1.16);
    transform-origin: 50% 50%;
    transition: none;
    will-change: transform;
  }

  .slide.is-active img {
    animation: mobile-pan-0 6.5s linear both;
  }

  .slide.motion-1.is-active img { animation-name: mobile-pan-1; }
  .slide.motion-2.is-active img { animation-name: mobile-pan-2; }
  .slide.motion-3.is-active img { animation-name: mobile-pan-3; }

  @keyframes mobile-pan-0 {
    from { transform: translate3d(-6%, -4%, 0) scale(1.27); }
    to { transform: translate3d(6%, 4%, 0) scale(1.13); }
  }

  @keyframes mobile-pan-1 {
    from { transform: translate3d(6%, -4%, 0) scale(1.13); }
    to { transform: translate3d(-6%, 4%, 0) scale(1.27); }
  }

  @keyframes mobile-pan-2 {
    from { transform: translate3d(0, 6%, 0) scale(1.25); }
    to { transform: translate3d(0, -6%, 0) scale(1.14); }
  }

  @keyframes mobile-pan-3 {
    from { transform: translate3d(-6%, 4%, 0) scale(1.14); }
    to { transform: translate3d(6%, -4%, 0) scale(1.25); }
  }
}

@keyframes pan-0 {
  from { transform: translate3d(-6%, -4%, 0) scale(1.27); }
  to { transform: translate3d(6%, 4%, 0) scale(1.13); }
}

@keyframes pan-1 {
  from { transform: translate3d(6%, -4%, 0) scale(1.13); }
  to { transform: translate3d(-6%, 4%, 0) scale(1.27); }
}

@keyframes pan-2 {
  from { transform: translate3d(0, 6%, 0) scale(1.25); }
  to { transform: translate3d(0, -6%, 0) scale(1.14); }
}

@keyframes pan-3 {
  from { transform: translate3d(-6%, 4%, 0) scale(1.14); }
  to { transform: translate3d(6%, -4%, 0) scale(1.25); }
}

.slide.is-active img {
  animation: pan-0 6.5s linear both !important;
  transition: none;
  will-change: transform;
}

.slide.motion-1.is-active img { animation-name: pan-1 !important; }
.slide.motion-2.is-active img { animation-name: pan-2 !important; }
.slide.motion-3.is-active img { animation-name: pan-3 !important; }
