/* ==================================================
   Portfolio hero -- banner with the "after" photo as the base. On
   desktop a small soft lens (driven by portfolio-hero.js) reveals the
   "before" photo under the cursor. Same fonts/orange as the homepage.
   ================================================== */
.pf-hero {
    --pf-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --pf-orange: #ff5e14;
    --pf-orange-light: #ff7c3d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 460px;
    max-height: 680px;
    overflow: hidden;
    background: #1a1a1a;
}

.pf-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pf-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Before layer: invisible until the lens is active, then only shows
   inside the soft radial mask (custom props set by the JS). */
.pf-before {
    z-index: 1;
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle var(--pf-r, 0px) at var(--pf-x, 50%) var(--pf-y, 50%), #000 0%, #000 50%, transparent 100%);
    mask-image: radial-gradient(circle var(--pf-r, 0px) at var(--pf-x, 50%) var(--pf-y, 50%), #000 0%, #000 50%, transparent 100%);
}

.pf-hero.pf-lens-on .pf-before { opacity: 1; }

.pf-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.42);
}

/* Small label that trails the cursor */
.pf-ring {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pf-hero.pf-lens-hover .pf-ring { opacity: 1; }

.pf-ring-label {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.pf-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
    font-family: var(--pf-font);
}

.pf-content .pf-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.pf-content .pf-heading {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    font-family: var(--pf-font);
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pf-content .pf-heading::after { content: none; }

.pf-content .pf-heading em {
    font-style: normal;
    color: var(--pf-orange-light);
    position: relative;
    white-space: nowrap;
}

.pf-content .pf-heading em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background: var(--pf-orange);
}

.pf-content .pf-sub {
    margin: 0 auto 26px;
    padding: 0;
    max-width: 560px;
    font-family: var(--pf-font);
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.pf-content .pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--pf-orange);
    color: #fff;
    font-family: var(--pf-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pf-content .pf-btn:hover { background: var(--pf-orange-light); color: #fff; text-decoration: none; }
.pf-content .pf-btn svg { width: 14px; height: 14px; }

.pf-hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 74px;
    z-index: 4;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: opacity 0.5s ease;
}

.pf-hero.pf-lens-used .pf-hint { opacity: 0; }

/* Lens hint only for mouse users on desktop widths */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .pf-hint { display: block; }
}

/* Mobile: static "after" banner, no lens, no "before" image */
@media (max-width: 768px) {
    .pf-hero { aspect-ratio: auto; min-height: 380px; max-height: none; }
    .pf-content { padding: 56px 18px; }
    .pf-content .pf-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 10px; }
    .pf-content .pf-heading { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
    .pf-content .pf-sub { font-size: 13.5px; margin-bottom: 20px; }
    .pf-content .pf-btn { font-size: 13.5px; padding: 11px 20px; }
    .pf-before, .pf-ring, .pf-hint { display: none !important; }
}
