/*! single-project.css — page styles (faithful to source project.html) + corrected responsive behavior */

/* ===================== Defensive overflow reset (scoped to this page) ===================== */
.pp, .pp-detail, .pp-top, .pp-gallery, .pp-stage, .pp-thumbs { box-sizing: border-box; max-width: 100%; }
.pp-stage img, .pp-stage video,
.pp-thumb img,
.pp-report-cell img,
.ocard-img img,
.lb-media { max-width: 100%; }
.pp-gallery, .pp-top { overflow-x: hidden; }
.pp-stage { max-width: 100%; }

/* ===================== Base / hero ===================== */
.svc-hero { position: relative; padding: 56px 0 120px; overflow: hidden; }
.svc-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--border) 1px, transparent 1px); background-size: 16.66% 100%; opacity: 0.4; pointer-events: none; }
.svc-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.svc-eyebrow { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--brass); margin-bottom: 36px; display: flex; align-items: center; gap: 16px; }
.svc-eyebrow::before { content: ''; width: 40px; height: 0.5px; background: var(--brass); }
.svc-title { font-family: var(--serif); font-size: clamp(38px, 6vw, 92px); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.svc-title em { font-style: italic; color: var(--brass-soft); font-weight: 300; }
.svc-sub { margin-top: 36px; font-size: 16px; color: var(--ink-muted); max-width: 480px; line-height: 1.85; }
.svc-actions { margin-top: 52px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

section.block { padding: 140px 0; position: relative; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* ===================== Project hero / top ===================== */
.pp { padding-top: 120px; }
.pp-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; margin-top: 28px; }
.pp-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.pp-name { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; color: var(--ink); margin-bottom: 24px; word-break: break-word; }
.pp-name em { font-style: italic; color: var(--brass-soft); }
.pp-price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.pp-price .from { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.pp-price .val { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); color: var(--brass-deep); line-height: 1; }
.pp-price .val em { font-style: italic; font-size: 22px; color: var(--brass); }
.pp-specs { list-style: none; margin-bottom: 32px; }
.pp-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 0.5px solid var(--border); font-size: 14px; }
.pp-specs li .k { color: var(--ink-muted); }
.pp-specs li .v { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.pp-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pp-actions .btn-primary,
.pp-actions .btn-secondary { text-align: center; }
.pp-short { font-size: 15px; line-height: 1.85; color: var(--ink-muted); margin-bottom: 32px; }

.pp-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pbadge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); background: var(--bg-card); border: 0.5px solid var(--border); padding: 10px 16px; cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.pbadge:hover { color: var(--bg); background: var(--brass-deep); border-color: var(--brass-deep); }
.pbadge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.pp-desc-card .pp-desc-body { color: var(--ink); }
.pp-desc-card .pp-desc-body h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); margin-bottom: 18px; }
.pp-desc-card .pp-desc-body p { font-size: 15px; line-height: 1.9; color: var(--ink); margin-bottom: 16px; }
.pp-desc-card .pp-desc-body p:last-child { margin-bottom: 0; }

/* ===================== Photo / video report ===================== */
.pp-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pp-report-cell { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; background: var(--bg-deep); filter: brightness(0.95); transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); padding: 0; border: 0; }
.pp-report-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-report-cell:hover { filter: brightness(1.05); transform: translateY(-3px); }

.pp-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pp-video-item { margin: 0; }
.pp-video-item video, .pp-video-frame { width: 100%; aspect-ratio: 16/9; background: #000; display: block; box-shadow: 0 30px 64px -36px rgba(42,37,32,0.42); }
.pp-video-frame { position: relative; }
.pp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-video-item figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-muted); }

/* ===================== Related projects ===================== */
.other-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ocard { background: var(--bg-card); border: 0.5px solid var(--border); overflow: hidden; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.ocard:hover { transform: translateY(-5px); }
.ocard-img { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); }
.ocard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard-body { padding: 24px 24px 28px; }
.ocard-name { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.ocard-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }

/* ===================== Main gallery stage ===================== */
.pp-gallery { display: flex; flex-direction: column; gap: 12px; max-width: 700px; width: 100%; }
.pp-stage { position: relative; width: 100%; aspect-ratio: 4/3; background-color: var(--bg-deep); box-shadow: 0 30px 64px -36px rgba(42,37,32,0.42); cursor: zoom-in; overflow: hidden; }
.pp-stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; filter: brightness(0.96) contrast(1.03); }
.pp-stage-media.is-active { display: block; }
.pp-stage-video.is-active { display: block; cursor: default; filter: none; }
.pp-stage .tag { position: absolute; top: 20px; left: 20px; z-index: 3; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-soft); background: var(--bg-trans-85); padding: 8px 14px; backdrop-filter: blur(8px); }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-trans-85); color: var(--ink); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background 0.3s ease, transform 0.3s ease; cursor: pointer; border: 0; }
.pp-arrow.prev { left: 18px; }
.pp-arrow.next { right: 18px; }
.pp-arrow:hover { background: #fff; }
.pp-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.pp-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
.pp-zoom { position: absolute; bottom: 18px; right: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-trans-85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s ease; border: 0; }
.pp-zoom:hover { background: #fff; }
.pp-zoom svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.pp-counter { position: absolute; bottom: 20px; left: 20px; z-index: 3; font-size: 12px; letter-spacing: 0.1em; color: var(--ink); background: var(--bg-trans-85); padding: 7px 13px; backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }

.pp-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pp-thumb { position: relative; flex: 0 0 auto; width: 96px; height: 72px; cursor: pointer; filter: brightness(0.78); outline: 1.5px solid transparent; outline-offset: -1.5px; transition: filter 0.3s ease, outline-color 0.3s ease; overflow: hidden; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { filter: brightness(1); }
.pp-thumb.active { filter: brightness(1.05); outline-color: var(--brass); }
.pp-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; background: rgba(0,0,0,0.35); pointer-events: none; }

/* ===================== Lightbox ===================== */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(20,17,14,0.92); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; animation: lbIn 0.3s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 88vw; height: 84vh; }
.lb-media { max-width: 88vw; max-height: 84vh; object-fit: contain; display: none; }
.lb-media.is-active { display: block; }
.lb-close { position: absolute; top: 24px; right: 28px; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); transition: background 0.3s ease; cursor: pointer; border: 0; }
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; color: #fff; font-size: 32px; line-height: 1; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); transition: background 0.3s ease; cursor: pointer; border: 0; }
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-nav.prev { left: 28px; }
.lb-nav.next { right: 28px; }
.lb-counter { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 13px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }

/* ===================== Tabs / panels ===================== */
.pp-detail { background: var(--bg-soft); border-top: 0.5px solid var(--border); padding: 110px 0; }
.pp-tabs { display: flex; gap: 8px; border-bottom: 0.5px solid var(--border); margin-bottom: 56px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tab { flex: 0 0 auto; white-space: nowrap; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); padding: 0 4px 18px; margin-bottom: -1px; border-bottom: 2px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; background: none; border-top: 0; border-left: 0; border-right: 0; }
.pp-tab + .pp-tab { margin-left: 28px; }
.pp-tab:hover { color: var(--brass-deep); }
.pp-tab.active { color: var(--ink); border-bottom-color: var(--brass); }
.pp-panel { display: none; }
.pp-panel.active { display: block; animation: fadeUp 0.5s ease; }

.pp-desc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.pp-desc-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin-bottom: 24px; }
.pp-desc-grid p { font-size: 16px; line-height: 1.9; color: var(--ink); margin-bottom: 18px; }

.pp-aside { background: var(--bg-card); border: 0.5px solid var(--border); padding: 36px 32px; }
.pp-aside .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 22px; }
.pp-aside ul { list-style: none; }
.pp-aside li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 0.5px solid var(--border); font-size: 14px; }
.pp-aside li:last-child { border-bottom: none; }
.pp-aside li .k { color: var(--ink-muted); }
.pp-aside li .v { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); text-align: right; }

.pp-facts { list-style: none; }
.pp-facts li { position: relative; display: block; padding: 13px 0 13px 26px; border-bottom: 0.5px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--ink); }
.pp-facts li:last-child { border-bottom: none; }
.pp-facts li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 9px; height: 5px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg); }

.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 16px 0; border-bottom: 0.5px solid var(--border); font-size: 15px; vertical-align: top; }
.spec-table td:first-child { color: var(--ink-muted); width: 42%; padding-right: 20px; }
.spec-table td:last-child { color: var(--ink); font-weight: 500; }

/* ===================== Breakpoints ===================== */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .pp-top { grid-template-columns: 1fr; gap: 32px; }
    .other-grid { grid-template-columns: 1fr; }
    .pp-desc-grid { grid-template-columns: 1fr; gap: 40px; }
    .spec-cols { grid-template-columns: 1fr; gap: 0; }
    .svc-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .pp-gallery { max-width: 100%; }
}

/* Tablets / large phones */
@media (max-width: 768px) {
    .pp { padding-top: 72px; }
    .pp-detail { padding: 64px 0; }
    section.block { padding: 80px 0; }
    .svc-hero { padding: 40px 0 64px; }

    .pp-top { gap: 24px; margin-top: 18px; }
    .pp-eyebrow { margin-bottom: 12px; }
    .pp-name { margin-bottom: 16px; }
    .pp-price { padding: 16px 0; margin-bottom: 20px; }
    .pp-actions { gap: 14px; }
    .pp-actions a { width: 100%; }

    .pp-tabs { margin-bottom: 32px; }
    .pp-tab { padding-bottom: 14px; font-size: 11px; }
    .pp-tab + .pp-tab { margin-left: 20px; }

    .pp-aside { padding: 24px 20px; }
    .pp-desc-grid { gap: 24px; }

    .pp-report-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pp-video-grid { grid-template-columns: 1fr; gap: 16px; }

    .pp-arrow { width: 40px; height: 40px; font-size: 20px; }
    .pp-arrow.prev { left: 10px; }
    .pp-arrow.next { right: 10px; }
    .pp-zoom { width: 38px; height: 38px; bottom: 12px; right: 12px; }
    .pp-counter { bottom: 12px; left: 12px; font-size: 11px; padding: 6px 10px; }
    .pp-stage .tag { top: 12px; left: 12px; font-size: 9px; padding: 6px 10px; }

    .pp-thumb { width: 72px; height: 54px; }

    .other-grid { gap: 20px; }
    .ocard-body { padding: 18px 18px 22px; }
}

/* Phones */
@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .pp { padding-top: 56px; }
    .pp-detail { padding: 48px 0; }
    section.block { padding: 56px 0; }
    .svc-hero { padding: 32px 0 48px; }

    .pp-name { font-size: clamp(24px, 7vw, 32px); }
    .pp-price .val { font-size: clamp(24px, 8vw, 30px); }

    .pp-actions { flex-direction: column; align-items: stretch; }
    .pp-actions a { text-align: center; }

    .pp-stage { aspect-ratio: 1/1; }

    .pp-report-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

    .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .lb-nav { width: 44px; height: 44px; font-size: 22px; }
    .lb-nav.prev { left: 8px; }
    .lb-nav.next { right: 8px; }
    .lb-stage { width: 96vw; height: 74vh; }
    .lb-media { max-width: 96vw; max-height: 74vh; }
    .lb-counter { bottom: 14px; font-size: 12px; }

    .spec-table td { font-size: 14px; padding: 12px 0; }
    .pp-facts li, .pp-aside li { font-size: 13px; }
}