/* =====================================================
   ORENO -- portfolio.css  v2.0
   Standalone portfolio page -- vertical scroll.
===================================================== */

/* ── PAGE BASE ── */
html, body { height: auto; overflow-y: auto; }

body#page-portfolio { background: #0A0A0A; }

/* ── HERO ── */
.pf-hero {
  position: relative;
  min-height: 100svh;
  background: #0A0A0A;
  color: #F5F3EE;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem,12vw,10rem) var(--pad-x) clamp(3rem,6vw,5rem);
  overflow: hidden;
}

.pf-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pf-hero-label {
  color: rgba(245,243,238,0.28);
  margin-bottom: clamp(1.5rem,4vw,3rem);
  display: block;
}

.pf-hero-title { margin: 0; line-height: 0.87; }

.pf-title-row { display: block; overflow: hidden; }

.pf-title-text {
  display: block;
  font-size: clamp(4.5rem, 13vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F5F3EE;
}

.pf-hero-sub {
  margin-top: clamp(2rem,4vw,3rem);
  font-size: clamp(0.8rem,1.4vw,0.92rem);
  font-weight: 400;
  color: rgba(245,243,238,0.36);
  max-width: 40ch;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.pf-scroll-hint {
  position: absolute;
  bottom: clamp(2rem,5vw,4rem);
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.18);
}

.pf-scroll-hint-line {
  width: 1px;
  height: 48px;
  background: rgba(245,243,238,0.1);
  overflow: hidden;
  position: relative;
}

.pf-scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245,243,238,0.5);
  animation: pf-line-fall 1.6s ease-in-out infinite;
}

@keyframes pf-line-fall {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── STORY SECTIONS ── */
.pf-story {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.pf-story-inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  will-change: transform;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(2rem,5vw,4.5rem) var(--pad-x);
  gap: clamp(1.5rem,3vw,2.5rem);
}

.pf-story--dark  { background: #0A0A0A; color: #F5F3EE; }
.pf-story--light { background: #F5F3EE; color: #0A0A0A; }

.pf-story-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: clamp(1rem,2vw,1.5rem);
  border-bottom: 1px solid currentColor;
  opacity: 0.12;
}

.pf-story-num,
.pf-story-tag {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pf-story-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,8rem);
  align-items: center;
}

.pf-story-text {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem,1.5vw,1.25rem);
}

.pf-story-title {
  font-size: clamp(3rem,8vw,8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.pf-story-desc {
  font-size: clamp(0.78rem,1.2vw,0.88rem);
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.48;
  max-width: 30ch;
}

.pf-story-img {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: hidden;
}

.pf-story-img img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .pf-story-body {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(1.5rem,4vw,2.5rem);
  }
  .pf-story-img { max-height: 48vw; order: -1; }
  .pf-story-img img { max-height: 48vw; }
}

/* ── GALLERY SECTION ── */
.pf-gallery {
  background: #F5F3EE;
  color: #0A0A0A;
  padding: clamp(4rem,10vw,9rem) var(--pad-x);
}

/* ── FAN TEASER ── */
.pf-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem,6vw,5rem);
}

.pf-fan {
  position: relative;
  width: 220px;
  height: 280px;
  flex-shrink: 0;
}

.pf-fan-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid #F5F3EE;
  box-shadow: 0 20px 55px rgba(0,0,0,0.18), 0 4px 14px rgba(0,0,0,0.1);
  transform: rotate(var(--rot)) translateX(var(--tx));
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer;
  will-change: transform;
}

.pf-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.pf-fan:hover .pf-fan-card:nth-child(1) {
  transform: rotate(calc(var(--rot) * 0.55)) translateX(var(--tx)) translateY(-10px);
}
.pf-fan:hover .pf-fan-card:nth-child(2) {
  transform: rotate(calc(var(--rot) * 0.55)) translateX(var(--tx)) translateY(-16px);
}
.pf-fan:hover .pf-fan-card:nth-child(3) {
  transform: rotate(calc(var(--rot) * 0.55)) translateX(var(--tx)) translateY(-10px);
}

.pf-teaser-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pf-teaser-heading {
  font-size: clamp(3rem,9vw,8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.87;
  color: #0A0A0A;
}

.pf-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(10,10,10,0.18);
  padding-bottom: 0.35rem;
  font-size: clamp(0.72rem,1.2vw,0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.52);
  transition: color 0.2s ease, gap 0.22s ease, border-color 0.2s ease;
}

.pf-expand-btn:hover {
  color: #0A0A0A;
  border-color: rgba(10,10,10,0.55);
  gap: 1.25rem;
}

/* ── GALLERY FULL / GRID ── */
.pf-gallery-full[hidden] { display: none; }

.pf-gallery-nav { margin-bottom: 2rem; }

.pf-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.32);
  transition: color 0.2s ease;
  padding: 0;
}

.pf-back-btn:hover { color: #0A0A0A; }

#pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
}

/* ── CARDS (text-free) ── */
.pf-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: rgba(10,10,10,0.06);
}

.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              filter 0.55s ease;
  filter: brightness(0.95);
}

.pf-card:hover img,
.pf-card:focus-within img {
  transform: scale(1.05);
  filter: brightness(1.03);
}

/* ── LIGHTBOX ── */
.pf-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pf-lb[hidden] { display: none; }

.pf-lb-bd {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pf-lb-img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  animation: pf-lb-img-in 0.28s ease;
}

@keyframes pf-lb-img-in {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.pf-lb-close,
.pf-lb-prev,
.pf-lb-next {
  position: fixed;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245,243,238,0.65);
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s ease;
  line-height: 1;
}

.pf-lb-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.5rem;
}

.pf-lb-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.5rem 0.75rem;
}

.pf-lb-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.5rem 0.75rem;
}

.pf-lb-close:hover,
.pf-lb-prev:hover,
.pf-lb-next:hover { color: #F5F3EE; }

.pf-lb-count {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.32);
}

/* ── CTA ── */
.pf-cta {
  background: #0A0A0A;
  color: #F5F3EE;
  padding: clamp(4rem,10vw,9rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem,3vw,2.5rem);
}

.pf-cta-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.26);
}

.pf-cta-heading {
  font-size: clamp(3rem,9vw,9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.pf-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.72rem,1.2vw,0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,243,238,0.18);
  padding-bottom: 0.35rem;
  width: fit-content;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.pf-cta-link:hover {
  color: #F5F3EE;
  border-color: rgba(245,243,238,0.65);
  gap: 1.25rem;
}

/* ── FOOTER ── */
.pf-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(245,243,238,0.07);
  padding: clamp(1.5rem,3vw,2rem) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pf-footer-logo {
  font-size: clamp(0.68rem,1.1vw,0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pf-footer-logo:hover { color: rgba(245,243,238,0.88); }

.pf-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.pf-footer-links a {
  font-size: clamp(0.55rem,0.9vw,0.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.26);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pf-footer-links a:hover,
.pf-footer-links a[aria-current="page"] { color: rgba(245,243,238,0.72); }

.pf-footer-copy {
  font-size: clamp(0.52rem,0.85vw,0.62rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.16);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .pf-fan   { width: 170px; height: 220px; }
  #pf-grid  { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .pf-lb-prev { left: 0.4rem; font-size: 2.2rem; }
  .pf-lb-next { right: 0.4rem; font-size: 2.2rem; }
  .pf-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
  .pf-cta {
    padding-bottom: calc(clamp(4rem,10vw,9rem) + env(safe-area-inset-bottom, 0px));
  }
}
