/* =============================================
   PORTFOLIO — Zax Phooi
   Layers on top of style.css; reuses its tokens.
   ============================================= */

.pf-body { background: #F4EBD6; }

/* ---------- HERO ---------- */
.pf-hero {
  position: relative;
  padding: 9.5rem 0 5rem;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(212,165,0,0.16) 0%, transparent 55%),
    linear-gradient(160deg, #2A1708 0%, #1C0E04 55%, #140A03 100%);
  overflow: hidden;
}
.pf-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,0,0.55), transparent);
}
.pf-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}
.pf-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFD100;
  margin-bottom: 1.4rem;
}
.pf-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #FBF4E4;
  margin-bottom: 0.5rem;
}
.pf-years {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: #E0B93C;
  margin-bottom: 1.75rem;
}
.pf-years-num { font-style: normal; font-weight: 700; }
.pf-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #E3CDA2;
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.pf-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.pf-hero-figure {
  position: relative;
  margin: 0;
}
.pf-hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(212,165,0,0.35);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.pf-hero-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B08F4E;
  text-align: center;
}

/* ---------- METRICS ---------- */
.pf-metrics {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #F7CE2A 0%, #E4B60C 45%, #C99A02 100%);
  border-top: 2px solid rgba(90,55,0,0.22);
  border-bottom: 2px solid rgba(90,55,0,0.28);
  padding: 4rem 0 3.5rem;
}
/* light sweeps once across the band when it enters view */
.pf-metrics-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,0.42) 50%, transparent 62%);
  transform: translateX(-120%);
}
.pf-metrics.visible .pf-metrics-sheen {
  animation: pfSheen 2.4s cubic-bezier(0.65,0,0.35,1) 0.35s 1 both;
}
@keyframes pfSheen {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

.pf-metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.pf-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  padding: 0.5rem 0.75rem 1.9rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.5s var(--ease-lux);
}
/* hairline divider between metrics, drawn on entry */
.pf-metric + .pf-metric::before {
  content: '';
  position: absolute;
  left: calc(-0.625rem - 1px);
  top: 12%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(60,35,0,0.32), transparent);
  transform: scaleY(0);
  transition: transform 1.1s var(--ease-lux) 0.35s;
}
.pf-metric.visible + .pf-metric::before,
.pf-metric + .pf-metric.visible::before { transform: scaleY(1); }

/* ---- the ring ---- */
.pf-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(104px, 11vw, 136px);
  aspect-ratio: 1;
}
.pf-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.pf-ring circle {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.5;
}
.pf-ring-track { stroke: rgba(60,35,0,0.16); }
.pf-ring-fill {
  stroke: #2A1704;
  stroke-dasharray: 326.7;      /* 2πr, r=52 */
  stroke-dashoffset: 326.7;     /* JS animates this to its final value */
  transition: stroke 0.4s ease, filter 0.4s ease;
}
.pf-metric:hover .pf-ring-fill,
.pf-metric:focus-visible .pf-ring-fill {
  stroke: #140A02;
  filter: drop-shadow(0 2px 6px rgba(40,22,0,0.45));
}

.pf-metric-num {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: #1A0D02;
  transition: transform 0.45s var(--ease-lux);
}
/* small pulse the moment the count lands */
.pf-metric-num.pf-landed { animation: pfPop 0.6s var(--ease-lux) 1; }
@keyframes pfPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.13); }
  100% { transform: scale(1); }
}

.pf-metric-label {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  color: #3A2202;
  max-width: 15rem;
}

/* detail line, revealed on hover / focus / tap */
.pf-metric-detail {
  position: absolute;
  left: 0; right: 0; bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #5C3703;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-lux);
}
.pf-metric:hover,
.pf-metric:focus-visible { transform: translateY(-5px); }
.pf-metric:hover .pf-metric-detail,
.pf-metric:focus-visible .pf-metric-detail,
.pf-metric.pf-open .pf-metric-detail { opacity: 1; transform: none; }
.pf-metric:hover .pf-metric-num,
.pf-metric:focus-visible .pf-metric-num { transform: scale(1.06); }
.pf-metric:focus-visible { outline: 2px solid #2A1704; outline-offset: 6px; border-radius: 12px; }
.pf-metric:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .pf-metrics-sheen { display: none; }
  .pf-ring-fill { transition: none; }
  .pf-metric-num.pf-landed { animation: none; }
  .pf-metric + .pf-metric::before { transform: scaleY(1); }
}

/* ---------- STORY ---------- */
.pf-story {
  padding: 6rem 0;
  background:
    linear-gradient(165deg, rgba(250,241,222,0.72) 0%, rgba(247,236,212,0.66) 100%),
    url('../images/why-bg.jpg') center center / cover no-repeat;
}
.pf-story-head { text-align: center; margin-bottom: 3.25rem; }
.pf-story-head .section-title { color: #1B0E03; }
.pf-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.pf-story-col p {
  font-size: 0.97rem;
  line-height: 1.95;
  color: #3A2408;
  margin-bottom: 1.15rem;
}
.pf-story-col strong { color: #1B0E03; font-weight: 700; }
.pf-story-col em { color: #6B3F00; }
.pf-chapter {
  font-family: var(--serif);
  font-size: 1.22rem !important;
  font-weight: 700;
  color: #1B0E03 !important;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem !important;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.pf-story-col > .pf-chapter:first-child { margin-top: 0; }
.pf-chapter-n {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #A8781A;
  font-family: var(--sans);
}
.pf-quote {
  margin: 2.5rem 0 0;
  padding: 1.75rem 1.9rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.55);
  border-radius: 0 14px 14px 0;
}
.pf-quote p {
  font-family: var(--serif);
  font-size: 1.28rem !important;
  font-style: italic;
  line-height: 1.55 !important;
  color: #1B0E03 !important;
  margin-bottom: 0.75rem !important;
}
.pf-quote cite {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A5A0A;
}

/* ---------- AWARDS ---------- */
.pf-awards {
  padding: 6rem 0;
  background:
    linear-gradient(165deg, rgba(30,16,5,0.90) 0%, rgba(22,11,3,0.93) 100%),
    url('../images/reviews-bg.jpg') center center / cover no-repeat;
  border-top: 1px solid rgba(212,165,0,0.22);
  border-bottom: 1px solid rgba(212,165,0,0.22);
}
.pf-awards-head { text-align: center; margin-bottom: 3rem; }
.pf-awards .eyebrow { color: #FFD100; }
.pf-awards .section-title { color: #FBF4E4; }
.pf-awards-sub {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: #D7BC85;
}
.pf-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.25rem;
}
.pf-award {
  background: rgba(255,235,190,0.06);
  border: 1px solid rgba(212,165,0,0.30);
  border-radius: 16px;
  padding: 1.9rem 1.6rem;
  transition: transform 0.5s var(--ease-lux), border-color 0.4s ease, background 0.4s ease, box-shadow 0.5s ease;
}
.pf-award:hover {
  transform: translateY(-5px);
  border-color: var(--gold2);
  background: rgba(255,235,190,0.10);
  box-shadow: 0 16px 36px rgba(8,4,1,0.42);
}
.pf-award-tier {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A0D02;
  background: var(--gold2);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.pf-award h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FBF4E4;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.pf-award p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #D7BC85;
}

.pf-awards-media {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* ---------- FIGURES ---------- */
.pf-figure { margin: 0; }
.pf-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(212,165,0,0.28);
  box-shadow: 0 14px 34px rgba(10,5,1,0.34);
  transition: transform 0.6s var(--ease-lux), box-shadow 0.5s ease;
}
.pf-figure:hover img {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(10,5,1,0.44);
}
.pf-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #B08F4E;
}

/* ---------- TEAM ---------- */
.pf-team {
  padding: 6rem 0;
  background: #F4EBD6;
}
.pf-team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.pf-team .section-title { color: #1B0E03; margin-bottom: 1.25rem; }
.pf-team-copy p {
  font-size: 0.97rem;
  line-height: 1.95;
  color: #3A2408;
  margin-bottom: 1.15rem;
}
.pf-team-copy .btn-primary { margin-top: 0.75rem; }
.pf-team .pf-figure figcaption { color: #6B4A12; }

/* ---------- GALLERY ---------- */
.pf-gallery {
  padding: 5.5rem 0 6.5rem;
  background:
    linear-gradient(165deg, rgba(28,15,5,0.88) 0%, rgba(20,10,3,0.92) 100%),
    url('../images/areas-bg.jpg') center center / cover no-repeat;
  border-top: 1px solid rgba(212,165,0,0.22);
}
.pf-gallery .eyebrow { color: #FFD100; }
.pf-gallery .section-title { color: #FBF4E4; margin-bottom: 2.75rem; }
.pf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pf-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pf-hero-figure { max-width: 420px; margin: 0 auto; }
  .pf-story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pf-team-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pf-awards-media { grid-template-columns: 1fr 1fr; }
  .pf-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 900px) {
  .pf-hero { padding: 7.5rem 0 4rem; text-align: center; }
  .pf-hero-inner { padding: 0 1.5rem; }
  .pf-lede { margin-left: auto; margin-right: auto; }
  .pf-hero-cta { justify-content: center; }
  .pf-hero-cta .btn-primary,
  .pf-hero-cta .btn-wa { width: 100%; max-width: 22rem; justify-content: center; min-height: 48px; align-items: center; }
  .pf-awards-grid { grid-template-columns: 1fr; }
  .pf-awards-media { grid-template-columns: 1fr; }
  .pf-gallery-grid { grid-template-columns: 1fr; }
  .pf-team-copy { text-align: center; }
  .pf-team-copy p { margin-left: auto; margin-right: auto; max-width: 34rem; }
  .pf-story-col { text-align: left; }
  .pf-chapter { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .pf-metrics-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .pf-quote { padding: 1.4rem 1.3rem; }
}
