/* ==========================================================================
   Portfolio page — bronze / golden-brown edition (portfolio.html only)
   ========================================================================== */
.pf {
  --pf-gold: #e8c98f;
  --pf-gold-2: #f3d9a4;
  --pf-cream: #fbefd5;
  --pf-cream-2: #f0dcb4;
  --pf-line: rgba(232, 201, 143, 0.38);
  --pf-shadow: 0 24px 60px -24px rgba(20, 10, 2, 0.85);
  position: relative;
  color: var(--pf-cream-2);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #9a6a34 0%, #7a4f24 42%, #4e3016 100%) top / 100% 1400px no-repeat,
    linear-gradient(180deg, #4e3016 0%, #3f2611 55%, #2f1c0c 100%);
  overflow: clip;
  isolation: isolate;
}
.pf::before { /* faint paper grain + warm vignette */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 38%, rgba(255, 220, 160, 0.10), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 5px);
}
.pf h1, .pf h2, .pf h3 { font-family: var(--f-display); color: var(--pf-cream); font-weight: 600; letter-spacing: 0.005em; }
.pf a:not(.btn) { color: var(--pf-gold); }
.pf .crumbs { color: rgba(251, 239, 213, 0.72); }
.pf .crumbs i { color: var(--pf-gold); }
.pf .crumbs a { color: rgba(251, 239, 213, 0.85); }

.pf-kicker { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pf-gold); }
.pf-rule { width: 84px; height: 1px; margin: 22px auto; border: 0; background: linear-gradient(90deg, transparent, var(--pf-gold), transparent); }

/* gold shimmer on headings (text stays readable when gradients are unsupported) */
.pf-shimmer {
  background: linear-gradient(100deg, var(--pf-cream) 0%, var(--pf-cream) 38%, #ffe7b0 46%, #fff8e6 50%, #ffe7b0 54%, var(--pf-cream) 62%, var(--pf-cream) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--pf-cream);
  animation: pf-shimmer 7s ease-in-out infinite;
}
@keyframes pf-shimmer { 0%, 55% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* ── hero ─────────────────────────────────────────────────────────────── */
.pf-hero { text-align: center; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.pf-hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: 1.02; margin: 16px 0 6px; }
.pf-hero__sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--pf-cream-2); margin: 0; }
.pf-hero__lede { max-width: 62ch; margin: 0 auto; color: #f3e3c3; font-size: clamp(1rem, 0.4vw + 0.9rem, 1.12rem); }
.pf-hero__act { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.pf .btn--fill { background: linear-gradient(120deg, #d9ae62, #f6dfab); color: #2a1808; box-shadow: 0 14px 34px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,236,190,.35) inset; }
.pf .btn--quiet { border-color: rgba(251,239,213,.55); color: var(--pf-cream); }
.pf .btn--quiet:hover { color: var(--pf-cream); border-color: var(--pf-gold); background: rgba(232,201,143,.12); }
.pf-dl { font-size: 0.78rem; padding: 18px 30px; }
.pf-dl svg { width: 16px; height: 16px; flex: none; }
.pf-hero__meta { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,239,213,.7); }

/* ── four covers ──────────────────────────────────────────────────────── */
.pf-covers { list-style: none; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; max-width: 1120px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); }
.pf-covers li { margin: 0; }
.pf-cover { display: block; text-align: center; text-decoration: none; color: inherit; }
.pf-cover__img { display: block; border-radius: 4px; overflow: hidden; box-shadow: var(--pf-shadow); aspect-ratio: 2 / 3; background: #3a2410; }
.pf-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-cover__t { display: block; margin-top: 14px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.2; color: var(--pf-cream); }
.pf-cover__j { display: block; margin-top: 4px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pf-gold); }
@media (max-width: 760px) { .pf-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; } }

/* ── shared image treatment: hover lift + warm glow ─────────────────── */
.pf-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; background: none; cursor: zoom-in; border-radius: 4px; color: inherit; font: inherit;
  transition: transform .6s var(--e-out), box-shadow .6s var(--e-out), filter .6s var(--e-out); box-shadow: var(--pf-shadow); }
.pf-zoom img { display: block; width: 100%; height: auto; border-radius: 4px; }
.pf-zoom::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; box-shadow: 0 0 0 1px rgba(232,201,143,.22) inset; transition: box-shadow .6s var(--e-out); }
.pf-zoom:hover, .pf-zoom:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 70px -26px rgba(15,7,0,.95), 0 0 46px -6px rgba(232,201,143,.38); }
.pf-zoom:hover::after, .pf-zoom:focus-visible::after { box-shadow: 0 0 0 1px rgba(243,217,164,.6) inset; }
.pf-zoom:focus-visible { outline: 2px solid var(--pf-gold); outline-offset: 5px; }
.pf-cover:hover .pf-cover__img, .pf-cover:focus-visible .pf-cover__img { transform: translateY(-6px); box-shadow: 0 34px 70px -26px rgba(15,7,0,.95), 0 0 46px -6px rgba(232,201,143,.38); }
.pf-cover__img { transition: transform .6s var(--e-out), box-shadow .6s var(--e-out); }
.pf-cover:focus-visible { outline: none; }
.pf-cover:focus-visible .pf-cover__img { outline: 2px solid var(--pf-gold); outline-offset: 5px; }
.pf-zoom__hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(40,22,6,.72); color: var(--pf-gold-2); opacity: 0; transform: scale(.85); transition: opacity .4s, transform .4s var(--e-out); }
.pf-zoom__hint svg { width: 16px; height: 16px; }
.pf-zoom:hover .pf-zoom__hint, .pf-zoom:focus-visible .pf-zoom__hint { opacity: 1; transform: none; }

/* ── one section per book ──────────────────────────────────────────── */
.pf-book { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid rgba(232,201,143,.18); text-align: center; }
.pf-book__n { display: block; font-family: var(--f-display); font-style: italic; color: var(--pf-gold); font-size: 1.1rem; margin-bottom: 4px; }
.pf-book h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 10px; }
.pf-wrap { margin: clamp(26px, 3.4vw, 40px) auto 0; max-width: 1080px; }
.pf-interiors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); max-width: 820px; margin: 18px auto 0; align-items: start; }
.pf-interiors figure, .pf-wrap { margin-inline: auto; }
.pf-interiors figure { margin-block: 0; }
.pf-fig figcaption { margin-top: 14px; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-cream-2); }
.pf-wrap figcaption { margin-top: 16px; }
.pf-sub { margin-top: clamp(40px, 5vw, 64px); }
.pf-sub .pf-rule { margin: 0 auto 14px; }
@media (max-width: 520px) { .pf-interiors { gap: 14px; } .pf-fig figcaption { font-size: 0.66rem; letter-spacing: .1em; } }

/* ── services + CTA ──────────────────────────────────────────────── */
.pf-about { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid rgba(232,201,143,.18); }
.pf-about__g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pf-about h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 10px 0 0; line-height: 1.05; }
.pf-about__lead { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; color: var(--pf-cream); margin: 22px 0 0; }
.pf-about p { color: #f3e3c3; }
.pf-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pf-line); }
.pf-svc li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 4px 12px; padding: 20px 4px; border-bottom: 1px solid var(--pf-line); transition: background .4s, padding .4s var(--e-out); }
.pf-svc li:hover { background: rgba(232,201,143,.06); padding-left: 12px; }
.pf-svc__i { grid-row: span 2; font-family: var(--f-display); font-style: italic; color: var(--pf-gold); font-size: 1.15rem; line-height: 1.6; }
.pf-svc b { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; color: var(--pf-cream); line-height: 1.2; }
.pf-svc span:last-child { font-size: 0.94rem; color: var(--pf-cream-2); }
@media (max-width: 860px) { .pf-about__g { grid-template-columns: 1fr; } }

.pf-cta { text-align: center; padding-block: clamp(64px, 8vw, 120px) clamp(80px, 9vw, 140px); border-top: 1px solid rgba(232,201,143,.18);
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(232,201,143,.12), transparent 70%); }
.pf-cta h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); margin: 12px 0 8px; line-height: 1.06; }
.pf-cta p { max-width: 54ch; margin: 0 auto; color: #f3e3c3; }
.pf-cta .pf-hero__act { margin-top: 30px; }

/* ── scroll reveal (only below-the-fold elements are hidden, by JS) ── */
.pf-rv { transition: opacity 1s var(--e-out), transform 1s var(--e-out); }
.pf-rv[data-pf-in="false"] { opacity: 0; transform: translateY(34px); }
.pf-rv--l[data-pf-in="false"] { transform: translateX(-40px); }
.pf-rv--r[data-pf-in="false"] { transform: translateX(40px); }
.pf-rv--z[data-pf-in="false"] { transform: scale(.96) translateY(20px); }

/* ── lightbox ───────────────────────────────────────────────────────── */
.pf-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: clamp(14px, 4vw, 48px) clamp(56px, 8vw, 110px) 18px; background: rgba(22, 12, 4, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.pf-lb[hidden] { display: none; }
.pf-lb.is-open { opacity: 1; }
.pf-lb__img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.7); transform: scale(.97); transition: transform .45s var(--e-out), opacity .25s; }
.pf-lb.is-open .pf-lb__img { transform: none; }
.pf-lb__cap { margin: 14px 0 0; text-align: center; color: var(--pf-cream, #fbefd5); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.pf-lb__cap b { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; text-transform: none; display: block; color: #fbefd5; }
.pf-lb__cap span { color: #e8c98f; }
.pf-lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(232,201,143,.5); background: rgba(60,34,12,.7); color: #f3d9a4;
  display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.pf-lb__btn:hover, .pf-lb__btn:focus-visible { background: rgba(232,201,143,.22); border-color: #f3d9a4; }
.pf-lb__btn:focus-visible { outline: 2px solid #e8c98f; outline-offset: 3px; }
.pf-lb__btn svg { width: 20px; height: 20px; }
.pf-lb__close { top: 16px; right: 16px; }
.pf-lb__prev { left: 14px; top: 50%; margin-top: -24px; }
.pf-lb__next { right: 14px; top: 50%; margin-top: -24px; }
.pf-lb__count { position: absolute; top: 28px; left: 24px; font-size: .7rem; letter-spacing: .2em; color: rgba(251,239,213,.7); }
@media (max-width: 620px) {
  .pf-lb { padding: 64px 10px 16px; }
  .pf-lb__prev, .pf-lb__next { top: auto; bottom: 14px; margin: 0; }
  .pf-lb__img { max-height: calc(100dvh - 190px); }
  .pf-lb__cap { margin-bottom: 64px; }
}
body.pf-lock { overflow: hidden; }

/* ── motion preferences ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pf-shimmer { animation: none; background-position: 100% 0; }
  .pf-rv, .pf-rv[data-pf-in="false"] { opacity: 1; transform: none; transition: none; }
  .pf-zoom, .pf-cover__img, .pf-lb, .pf-lb__img, .pf-svc li { transition: none; }
  .pf-zoom:hover, .pf-zoom:focus-visible, .pf-cover:hover .pf-cover__img { transform: none; }
}
@media print { .pf-rv[data-pf-in="false"] { opacity: 1; transform: none; } .pf-lb { display: none; } }
.pf-about p + p { margin-top: 1.1em; }
