/* Markii Portfolio Slider — styles */
:root {
  --pfs-serif: 'Cormorant Garamond', Georgia, serif;
  --pfs-script: 'Parisienne', cursive;
  --pfs-sans: 'Inter', sans-serif;
  --pfs-ink: #0d0d0d;
  --pfs-white: #ffffff;
  --pfs-off: #f5f5f0;
  --pfs-hair: rgba(13,13,13,.15);
}

.pf-slider, .pf-slider * , .pf-slider *::before, .pf-slider *::after { box-sizing: border-box; }
.pf-slider { font-family: var(--pfs-sans); background: var(--pfs-white); padding: 0; --ease: cubic-bezier(.2,.7,.2,1); }
.pf-slider a { color: inherit; text-decoration: none; }
.pf-slider button { font-family: var(--pfs-sans); background: none; border: none; cursor: pointer; }

.pf-slider .textlink {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pfs-ink); border-bottom: 1px solid var(--pfs-ink); padding-bottom: 2px;
  transition: opacity .3s;
}
.pf-slider .textlink:hover { opacity: .55; }

.pf-slider__stage {
  position: relative;
  min-height: min(78vh, 720px);
  background: var(--pfs-off);
  overflow: hidden;
}

.pf-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.15fr 1fr;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .8s var(--ease), visibility .8s;
}
.pf-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.pf-slide__media { position: relative; overflow: hidden; }
.pf-slide__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  clip-path: inset(0 0 100% 0);
  transition: transform 1.4s var(--ease), clip-path 1.2s var(--ease);
}
.pf-slide.is-active .pf-slide__media img { transform: scale(1); clip-path: inset(0 0 0 0); }
.pf-slide.is-prev .pf-slide__media img { transform: scale(1.04); clip-path: inset(0 0 100% 0); }

.pf-slide__bignum {
  position: absolute; left: 36px; bottom: 28px; z-index: 3;
  font-family: var(--pfs-serif); font-style: italic; font-weight: 300;
  font-size: clamp(48px,7vw,96px); line-height: .9;
  color: var(--pfs-white); letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s;
  pointer-events: none;
}
.pf-slide__bignum em {
  font-family: var(--pfs-script); font-style: normal;
  font-size: .5em; vertical-align: .6em; opacity: .85; margin-left: .2em;
}
.pf-slide.is-active .pf-slide__bignum { opacity: 1; transform: translateY(0); }

.pf-slide__text {
  position: relative;
  padding: clamp(50px,7vw,90px) clamp(40px,6vw,80px) calc(78px + clamp(30px,4vw,50px));
  display: flex; flex-direction: column; justify-content: center;
}

.pf-slide__text > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.pf-slide.is-active .pf-slide__text > * { opacity: 1; transform: translateY(0); }
.pf-slide.is-active .pf-slide__text > :nth-child(1) { transition-delay: .30s; }
.pf-slide.is-active .pf-slide__text > :nth-child(2) { transition-delay: .40s; }
.pf-slide.is-active .pf-slide__text > :nth-child(3) { transition-delay: .50s; }
.pf-slide.is-active .pf-slide__text > :nth-child(4) { transition-delay: .60s; }
.pf-slide.is-active .pf-slide__text > :nth-child(5) { transition-delay: .72s; }

.pf-slide__num {
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(13,13,13,.55); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.pf-slide__num::before {
  content: ""; width: 36px; height: 1px; background: var(--pfs-ink); opacity: .6;
}
.pf-slide__h {
  font-family: var(--pfs-serif); font-weight: 300;
  font-size: clamp(32px,3.6vw,52px); margin: 0 0 22px; line-height: 1.1;
}
.pf-slide__h em {
  font-family: var(--pfs-script); font-style: normal;
  font-weight: 400; font-size: 1.05em; padding: 0 .04em;
}
.pf-slide__meta {
  display: flex; gap: 28px; flex-wrap: wrap; margin: 0 0 26px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(13,13,13,.55);
}
.pf-slide__meta span::before { content: "— "; opacity: .5; }
.pf-slide__p {
  font-size: 15px; line-height: 1.85;
  color: rgba(13,13,13,.72); margin: 0 0 32px; max-width: 46ch;
}
.pf-slide__cta { align-self: flex-start; }

.pf-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(28px,4vw,48px); height: 78px;
  border-top: 1px solid var(--pfs-hair);
  background: rgba(245,245,240,.7); backdrop-filter: blur(6px); z-index: 4;
}
.pf-arrow {
  width: 46px; height: 46px; border: 1px solid var(--pfs-hair); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--pfs-ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.pf-arrow:hover { background: var(--pfs-ink); color: var(--pfs-white); border-color: var(--pfs-ink); }
.pf-arrow:active { transform: scale(.94); }
.pf-arrow svg { width: 14px; height: 14px; }
.pf-arrows { display: flex; gap: 10px; }

.pf-dots { display: flex; align-items: center; gap: 22px; }
.pf-dot {
  position: relative; padding: 14px 2px;
  font-family: var(--pfs-serif); font-style: italic; font-weight: 300; font-size: 15px;
  color: rgba(13,13,13,.4); transition: color .4s var(--ease);
}
.pf-dot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px; background: var(--pfs-ink); transform: scaleX(0);
  transform-origin: left; transition: transform .5s var(--ease);
}
.pf-dot.is-active { color: var(--pfs-ink); }
.pf-dot.is-active::after { transform: scaleX(1); }

.pf-dot__bar {
  position: absolute; left: 0; bottom: 8px; height: 1px; width: 0;
  background: var(--pfs-ink); opacity: .35;
}
.pf-dot.is-active .pf-dot__bar { animation: pfProgress 7s linear forwards; }
.pf-slider.is-paused .pf-dot.is-active .pf-dot__bar { animation-play-state: paused; }
@keyframes pfProgress { from { width: 0; } to { width: 100%; } }

.pf-count {
  font-size: 10px; letter-spacing: .36em; text-transform: uppercase;
  color: rgba(13,13,13,.55); font-variant-numeric: tabular-nums;
}
.pf-count strong { color: var(--pfs-ink); font-weight: 400; }

@media (max-width: 900px) {
  .pf-slider__stage { min-height: 0; overflow: hidden; }
  .pf-slide { position: absolute; inset: 0; grid-template-columns: 1fr; grid-template-rows: 64vw auto; }
  .pf-slide__media { height: 64vw; max-height: 520px; }
  .pf-slide__text { padding: 24px 8vw calc(72px + 16px); justify-content: flex-start; }
  .pf-slide__num { margin-bottom: 12px; }
  .pf-slide__h { font-size: clamp(26px, 6vw, 36px); margin: 0 0 12px; }
  .pf-slide__meta { gap: 0; row-gap: 4px; column-gap: 12px; margin: 0 0 14px; letter-spacing: .18em; }
  .pf-slide__p { font-size: 13.5px; line-height: 1.7; margin: 0 0 20px; }
  .pf-controls { height: 72px; padding: 0 6vw; }
  .pf-dots { gap: 14px; }
}
