html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  max-width: 100vw;
  overflow-x: clip;
}

/* =========================
   PORTFOLIO HERO
========================= */


.pf-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #f7f5f2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* inner wrap */
.pf-hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* image */
.pf-hero-media {
  position: absolute;
  inset: 0;
}

.pf-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* content overlay */
.pf-hero-content {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 0 1.5rem;
  max-width: 720px;
}

/* brand small text */
.pf-hero-brand {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* main title */
.pf-hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* subtitle */
.pf-hero-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* meta bar */
.pf-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  color: #444;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* mobile */
@media (max-width: 768px) {
  .pf-hero-meta {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* GRID */
/* =========================
   PORTFOLIO GRID
========================= */

.pf-grid-section {
  padding-block: clamp(3rem, 6vw, 6rem);
  background: #ffffff;
}

/* main grid */
.pf-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 2vw, 2rem);
}

/* left big image */
.pf-grid-main {
  position: relative;
  overflow: hidden;
}

.pf-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* right grid */
.pf-grid-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.pf-grid-item {
  position: relative;
  overflow: hidden;
}

.pf-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* optional: keep fashion proportions */
.pf-grid-main {
  aspect-ratio: 3 / 4;
}

.pf-grid-item {
  aspect-ratio: 3 / 4;
}

/* responsive */
@media (max-width: 991px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf-grid-side {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .pf-grid-side {
    grid-template-columns: 1fr;
  }
}

/* =========================
   EDITORIAL SPLIT
========================= */

.pf-editorial {
  background: #ffffff;
  padding-block: clamp(3rem, 6vw, 6rem);
}

.pf-editorial-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 100%;
}

/* Left image */
.pf-editorial-media {
  position: relative;
  overflow: hidden;
}

.pf-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right content */
.pf-editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1rem, 3vw, 3rem);
}

/* meta */
.pf-editorial-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 1.25rem;
}

.pf-editorial-meta .dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

/* eyebrow */
.pf-editorial-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #999;
}

/* title */
.pf-editorial-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* sub image */
.pf-editorial-image {
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.pf-editorial-image img {
  width: 100%;
  display: block;
}

/* description */
.pf-editorial-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  max-width: 420px;
  margin-bottom: 2rem;
}

/* link */
.pf-editorial-link {
  font-size: 0.75rem;
  text-decoration: underline;
  color: #000;
  align-self: flex-start;
}

/* responsive */
@media (max-width: 991px) {
  .pf-editorial-inner {
    grid-template-columns: 1fr;
  }

  .pf-editorial-content {
    padding-right: 0;
  }

  .pf-editorial-media {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 991px) {
  .pf-editorial-content {
    padding-inline: clamp(1rem, 5vw, 2rem);
  }
}

.pf-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: clamp(4rem, 8vw, 10rem);
  max-width: 520px;
  color: #111;
}

.pf-hero-title,
.pf-hero-sub,
.pf-hero-brand {
  color: inherit;
}

@media (max-width: 1024px) {
  .pf-hero-content {
    justify-content: flex-end;
    align-items: center;
    padding: 0 1.5rem 3rem;
    max-width: 100%;
    color: #fff;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .pf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.15),
      transparent 60%
    );
    pointer-events: none;
  }
}

.pf-editorial-link {
  position: relative;
  display: inline-block;

  margin-top: 1.5rem;
  padding-bottom: 4px;

  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #111;
}

.pf-editorial-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;
  background: currentColor;

  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform .35s ease;
}

.pf-editorial-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .pf-editorial-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

/* =========================
   PORTFOLIO FADE SYSTEM
========================= */

/* page fade */
body {
  opacity: 0;
  transition: opacity .8s ease;
}

body.page-loaded {
  opacity: 1;
}

/* reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.4,0,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* image reveal */
.reveal-img {
  overflow: hidden;
}

.reveal-img img {
  transform: scale(1.08);
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(.4,0,.2,1),
    opacity .9s ease;
}

.reveal-img.is-visible img {
  transform: scale(1);
  opacity: 1;
}
