/* Example pages: "viewfinder" template. Loaded only on /portfolio/* pages. */
.vf { position: relative; height: min(88vh, 860px); min-height: 600px; overflow: hidden; isolation: isolate; background: #000; }
.vf-media { position: absolute; inset: 0; z-index: -3; }
.vf-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); transform: scale(1.06); animation: vfDrift 24s ease-in-out infinite alternate; }
.vf-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; opacity: 0; animation: vfIn 1.2s .3s ease forwards; }
@keyframes vfDrift { to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes vfIn { to { opacity: 1; } }
.vf-tint { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 55% 55% at 50% 52%, rgba(8,9,12,.55), rgba(8,9,12,.25) 70%), linear-gradient(180deg, rgba(8,9,12,.7), rgba(8,9,12,.15) 30%, rgba(8,9,12,.35) 70%, var(--bg)); transition: opacity .6s; }
.vf-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }

/* Camera HUD (never blocks the tour) */
.vf-hud { position: absolute; inset: 96px 32px 32px; z-index: 3; pointer-events: none; font: 600 .72rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.vf-c { position: absolute; width: 44px; height: 44px; border: 2px solid var(--lime); filter: drop-shadow(0 0 6px rgba(212,255,58,.5)); }
.vf-c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-tag { position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .65rem; border-radius: 8px; background: rgba(8,9,12,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vf-tag--tl { top: 14px; left: 58px; }
.vf-tag--tr { top: 14px; right: 58px; }
.vf-tag--bl { bottom: 14px; left: 58px; }
.vf-tag--br { bottom: 14px; right: 58px; }
.vf-rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: vfBlink 1.4s steps(2, start) infinite; }
@keyframes vfBlink { to { visibility: hidden; } }
.vf-compass { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); }
.vf-compass span { position: absolute; inset: 0; }
.vf-compass span::before { content: ""; position: absolute; left: 50%; top: 2px; margin-left: -3.5px; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 7px solid var(--lime); }
.vf-hint-live { display: none !important; }
.vf--live .vf-hint-idle { display: none !important; }
.vf--live .vf-hint-live { display: inline-flex !important; color: var(--lime); }

/* Center title + "Step inside" button */
.vf-center { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 24px 72px; transition: opacity .5s, transform .5s; }
.vf--live .vf-center { opacity: 0; transform: scale(.96); pointer-events: none; }
.vf--live .vf-tint { opacity: 0; }
.vf--live .vf-scan { opacity: .4; }
.vf--live .vf-media img { animation: none; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1.2rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs span[aria-current] { color: var(--lime); }
.vf h1 { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.8rem); max-width: 20ch; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.55); }
.vf-dek { max-width: 640px; margin: 1rem auto 1.8rem; font-size: 1.15rem; color: rgba(255,255,255,.88); text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.vf-go { display: block; flex-shrink: 0; text-decoration: none; position: relative; width: 176px; height: 176px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #0a0b0f; }
.vf-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; overflow: visible; }
.vf-ring text { font: 700 11.5px/1 var(--sans); letter-spacing: .2em; fill: #fff; }
.vf-go-core { position: absolute; inset: 34px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; background: var(--lime); font: 700 .95rem/1.05 var(--display); letter-spacing: -.01em; animation: vfPulse 2.4s ease-out infinite; transition: transform .25s; }
.vf-go:hover .vf-go-core { transform: scale(1.07); }
.vf-play { width: 0; height: 0; border-left: 13px solid #0a0b0f; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
@keyframes vfPulse { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.55); } 80%, 100% { box-shadow: 0 0 0 26px rgba(212,255,58,0); } }

/* Tour file strip */
.tourfile { position: relative; z-index: 5; margin-top: -44px; display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(15,17,22,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); padding: 0; }
.tf-title, .tf-item { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.tf-item { border-left: 1px solid var(--line); }
.tf-title { background: var(--lime); color: #0a0b0f; }
.tf-title span, .tf-item span { font: 600 .68rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.tf-item span { color: var(--dim); }
.tf-title strong { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }
.tf-item strong { font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }

/* Benefits */
.ex-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ex-benefit { position: relative; padding: 32px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s; }
.ex-benefit::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,255,58,.18), transparent 70%); opacity: 0; transition: opacity .3s; }
.ex-benefit:hover { border-color: rgba(212,255,58,.4); transform: translateY(-4px); }
.ex-benefit:hover::after { opacity: 1; }
.ex-benefit h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.ex-benefit p { color: var(--muted); }

/* Behind the shoot */
.ex-story-sec { padding-top: 40px; }
.ex-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.ex-photo { position: relative; margin: 0; }
.ex-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; border: 1px solid var(--line-2); transform: rotate(-2deg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.ex-sticker { position: absolute; right: -18px; top: 28px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--lime); color: #0a0b0f; font: 700 .9rem/1.05 var(--display); transform: rotate(10deg); box-shadow: 0 10px 30px rgba(212,255,58,.3); }
.ex-quote { margin: 0 0 1.4rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.2; letter-spacing: -.025em; }
.ex-quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; margin-bottom: .3rem; color: var(--lime); }
.ex-story .sub + .sub { margin-top: .9rem; }

/* Challenge / free check card */
.ex-challenge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 32px 36px; margin-top: 8px; border-radius: var(--r); border: 1.5px dashed rgba(212,255,58,.55); background: linear-gradient(120deg, rgba(212,255,58,.08), rgba(61,224,255,.05)); }
.ex-q { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: #0a0b0f; font: 700 2.4rem/1 var(--display); transform: rotate(-6deg); }
.ex-challenge .label { margin-bottom: .4rem; }
.ex-challenge h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.ex-challenge-text { font-size: 1.1rem; color: var(--text); max-width: 46rem; }
.ex-checkup-actions { display: flex; flex-direction: column; gap: .6rem; }
.card a { display: block; height: 100%; color: inherit; text-decoration: none; }

@media (max-width: 991px) {
  .tourfile { grid-template-columns: 1fr 1fr; margin-top: -32px; }
  .tf-title { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tf-item { border-top: 1px solid var(--line); }
  .tf-item:nth-child(even) { border-left: 0; }
  .ex-benefits { grid-template-columns: 1fr; }
  .ex-story { grid-template-columns: 1fr; gap: 48px; }
  .ex-photo { max-width: 460px; }
  .ex-challenge { grid-template-columns: auto 1fr; }
  .ex-challenge > .btn, .ex-checkup-actions { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .vf { height: 82vh; min-height: 560px; }
  .vf-hud { inset: 84px 14px 14px; font-size: .6rem; }
  .vf-c { width: 28px; height: 28px; }
  .vf-tag--tl, .vf-tag--bl { left: 34px; }
  .vf-tag--tr { right: 34px; }
  .vf-tag--br { display: none !important; }
  .vf-go { width: 148px; height: 148px; }
  .vf-go-core { inset: 28px; }
  .tourfile { grid-template-columns: 1fr; }
  .tf-item { border-left: 0 !important; }
  .ex-challenge { padding: 24px; gap: 18px; }
  .ex-q { width: 56px; height: 56px; font-size: 1.9rem; }
  .ex-sticker { right: -6px; width: 86px; height: 86px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-media img, .vf-ring, .vf-go-core, .vf-rec { animation: none; }
}

/* SEO content sections */
.ex-intro-sec { padding-bottom: 40px; }
.ex-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.ex-intro h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); }
.ex-intro-body p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; margin: 0 0 1.1rem; }
.ex-intro-body strong { color: var(--text); font-weight: 600; }

.ex-capture { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.ex-capture-head { position: sticky; top: 120px; }
.ex-capture-head h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); }
.ex-shotlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ex-shotlist li { position: relative; padding: 24px 24px 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.ex-shotlist li::before { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-top: 2px solid var(--lime); border-right: 2px solid var(--lime); opacity: .5; transition: opacity .25s; }
.ex-shotlist li:hover { border-color: rgba(212,255,58,.4); background: var(--panel-2); }
.ex-shotlist li:hover::before { opacity: 1; }
.ex-shot-no { display: block; font: 600 .68rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .16em; color: var(--lime); margin-bottom: .8rem; }
.ex-shotlist h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.ex-shotlist p { color: var(--muted); font-size: .95rem; }

.ex-included { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.ex-inc-card, .ex-steps { padding: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.ex-inc-card { background: linear-gradient(160deg, rgba(212,255,58,.1), rgba(61,224,255,.04) 60%), var(--panel); border-color: rgba(212,255,58,.3); }
.ex-inc-card h2 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); margin-bottom: 1.6rem; }
.ex-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.ex-checks li { position: relative; padding-left: 2.1rem; color: var(--muted); }
.ex-checks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0a0b0f; font-size: .8rem; font-weight: 700; }
.ex-checks strong { color: var(--text); }
.ex-steps ol { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.ex-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.ex-step-no { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(212,255,58,.5); color: var(--lime); font: 700 1.2rem/1 var(--display); }
.ex-steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.ex-steps p { color: var(--muted); font-size: .95rem; }

.ex-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; }
.ex-links span { color: var(--dim); margin-right: .3rem; }
.ex-links a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.ex-links a:hover { color: var(--lime); border-color: var(--lime); }

@media (max-width: 991px) {
  .ex-intro, .ex-capture, .ex-included { grid-template-columns: 1fr; gap: 32px; }
  .ex-capture-head { position: static; }
}
@media (max-width: 640px) {
  .ex-shotlist { grid-template-columns: 1fr; }
  .ex-inc-card, .ex-steps { padding: 26px; }
}

/* No-photo poster (e.g. interactive tours without a still) */
.vf-media--abstract { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(61,224,255,.28), transparent 55%), radial-gradient(circle at 70% 75%, rgba(212,255,58,.22), transparent 55%), #0b0d12; }
.vf-abstract { font: 700 clamp(10rem, 34vw, 30rem)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14); animation: vfDrift 24s ease-in-out infinite alternate; }
