.fin {
  --copper: #964526;
  position: relative;
  z-index: 2;
  color: #231c18;
  background: #efe6d8;
}

.fin.is-sequenced {
  height: calc(var(--pin-height, 100svh) + 125svh);
}

.fin__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.8vh, 48px) clamp(22px, 5.7vw, 105px);
  background: radial-gradient(ellipse at 69% 41%, #e5d6c2, transparent 62%), #efe6d8;
  isolation: isolate;
}

.fin.is-sequenced .fin__pin {
  position: sticky;
  top: var(--pin-top, 0);
}

.fin__pin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../../public/tex/grain.png') repeat;
  opacity: .05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.fin__edition,
.fin__bar {
  color: #514338;
}

.fin__edition {
  border-bottom: 1px solid #a99b8a;
  padding-bottom: 14px;
}

.fin .scene-label {
  color: #514338;
}

.fin__spread {
  flex: 1;
  width: 100%;
  max-width: 1450px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 5%;
  padding: clamp(24px, 4vh, 60px) 0;
}

.fin__copy h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: #241e1a;
  font-size: clamp(46px, 5.7vw, 106px);
  line-height: 1.0;
}

.fin__copy h2 em {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  color: #964526;
  font-size: .54em;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin-bottom: .16em;
}

.fin__copy h2 em::after {
  content: '';
  display: block;
  width: clamp(28px, 3.8vw, 56px);
  height: 1.5px;
  background: linear-gradient(90deg, #964526, rgba(150, 69, 38, 0));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .85s var(--ease-out) .28s;
}

.fin.is-entered .fin__copy h2 em::after {
  transform: scaleX(1);
}

.fin__copy h2 strong {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .16em;
  padding-bottom: .14em;
  font: 400 1em/.94 var(--disp);
  text-transform: uppercase;
  letter-spacing: .012em;
  white-space: nowrap;
}

.fin__copy h2 strong>span:first-child {
  background: linear-gradient(155deg, #16100d 0%, #2c2018 58%, #77381f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fin__copy h2 .fin__init {
  color: rgba(158, 56, 32, .16);
  -webkit-text-stroke: 1.8px #963720;
  letter-spacing: .03em;
}

.fin__copy h2 strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #241c17 0%, #9e3920 55%, rgba(158, 57, 32, 0) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .95s var(--ease-out) .36s;
}

.fin.is-entered .fin__copy h2 strong::after {
  transform: scaleX(1);
}

.fin__copy>p {
  max-width: 33ch;
  margin: 24px 0;
  color: #55483d;
}

.fin__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.fin__notice {
  font: 500 12px/1.35 var(--ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--copper);
}

.fin__email {
  display: inline-flex;
  align-items: center;
  gap: 1.7em;
  padding: .85em 1.2em;
  background: #29211c;
  color: #fff7e8 !important;
  font: 500 15px/1.25 var(--ui);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fin__email:hover {
  background: #753c26;
}

.fin__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em;
  margin-top: 18px;
}

.fin__links a,
.fin__bar a {
  font: 500 13px/1.7 var(--ui);
  letter-spacing: .085em;
  text-transform: uppercase;
  border-bottom: 1px solid #8b7765;
}

.fin__bar a span {
  display: inline-block;
  transition: transform .32s var(--ease-out);
}

.fin__bar a:hover span,
.fin__bar a:focus-visible span,
.fin__bar a.is-scrolling span {
  transform: translateY(-2px);
}

.fin__links a:hover,
.fin__bar a:hover {
  color: var(--copper);
}

.fin__portrait {
  justify-self: center;
  width: min(100%, 52svh, 610px);
}

.fin__film {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid #2a231e;
  background: #b89d7b;
  box-shadow: 0 16px 32px -18px #4a321f77;
}

.fin__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0;
}

.fin__photo--profile {
  object-position: 50% 69%;
}

.fin__photo.is-current {
  opacity: 1;
  z-index: 2;
}

.fin__photo.is-previous {
  opacity: 1;
  z-index: 1;
}

.fin__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 5px;
  color: #624f42;
}

.fin__frames {
  display: flex;
  gap: 4px;
}

.fin__frames button {
  min-width: 37px;
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.fin__frames button[aria-pressed="true"] {
  color: #793719;
  border-color: currentColor;
}

.fin__frames button:hover {
  background: #dacbb8;
}

.fin__bar {
  border-top: 1px solid #a99b8a;
  padding-top: 12px;
}

.fin__bar small {
  font-size: 11px;
}

@keyframes portrait-reveal {
  from {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.035);
  }

  to {
    clip-path: inset(0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fin__pin {
    transform: scale(calc(0.965 + var(--enter, 1) * 0.035));
    border-radius: calc((1 - var(--enter, 1)) * 18px);
    transform-origin: 50% 45%;
    box-shadow: 0 -24px 64px rgba(0, 0, 0, .42);
  }

  .fin__edition,
  .fin__copy h2 em,
  .fin__copy h2 strong,
  .fin__copy>p,
  .fin__actions,
  .fin__links,
  .fin__portrait,
  .fin__bar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .75s var(--ease-out), transform .92s var(--ease-out);
  }

  .fin__portrait {
    transform: translateY(26px) scale(.965);
  }

  .fin.is-entered .fin__edition {
    opacity: 1;
    transform: none;
    transition-delay: .06s;
  }

  .fin.is-entered .fin__copy h2 em {
    opacity: 1;
    transform: none;
    transition-delay: .14s;
  }

  .fin.is-entered .fin__copy h2 strong {
    opacity: 1;
    transform: none;
    transition-delay: .24s;
  }

  .fin.is-entered .fin__copy>p {
    opacity: 1;
    transform: none;
    transition-delay: .34s;
  }

  .fin.is-entered .fin__actions {
    opacity: 1;
    transform: none;
    transition-delay: .43s;
  }

  .fin.is-entered .fin__links {
    opacity: 1;
    transform: none;
    transition-delay: .52s;
  }

  .fin.is-entered .fin__portrait {
    opacity: 1;
    transform: none;
    transition-delay: .20s;
  }

  .fin.is-entered .fin__bar {
    opacity: 1;
    transform: none;
    transition-delay: .60s;
  }

  .fin__film.is-playing .is-current {
    animation: portrait-reveal .78s var(--ease-out) both;
  }
}

@media (prefers-reduced-motion: reduce) {

  .fin__copy h2 em::after,
  .fin__copy h2 strong::after {
    transform: none;
    transition: none;
  }
}

@media (max-width: 740px) {
  .fin__pin {
    padding: 18px clamp(18px, 5vw, 36px);
  }

  .fin__edition {
    padding-bottom: 10px;
    font-size: 10px;
  }

  .fin__edition .scene-label {
    font-size: 10px;
    gap: .7em;
  }

  .fin__spread {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 19px 0;
  }

  .fin__copy h2 {
    font-size: clamp(36px, 9.2vw, 62px);
  }

  .fin__copy h2 em {
    font-size: .58em;
  }

  .fin__copy h2 .fin__init {
    -webkit-text-stroke: 1.25px #963720;
  }

  .fin__copy>p {
    font-size: 14px;
    line-height: 1.4;
    max-width: none;
    margin: 10px 0 14px;
  }

  .fin__email {
    padding: 10px 14px;
    font-size: 12px;
    gap: .6em;
  }

  .fin__links {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0 0;
    gap: 16px;
  }

  .fin__links a {
    font-size: 12px;
  }

  .fin__portrait {
    width: min(100%, 35svh, 355px);
  }

  .fin__film {
    border-width: 4px;
  }

  .fin__strip {
    padding-top: 2px;
  }

  .fin__bar {
    padding-top: 8px;
  }

  .fin__bar,
  .fin__bar small,
  .fin__bar a {
    font-size: 10px;
  }
}

@media (max-height: 520px) and (min-width: 741px) {
  .fin__copy h2 {
    font-size: clamp(54px, 6.4vw, 80px);
  }

  .fin__copy>p {
    margin: 12px 0;
  }

  .fin__links {
    margin-top: 8px;
  }

  .fin__spread {
    padding: 14px 0;
  }
}