/* Featured projects: a large before/after stage above the gallery grid.
   Same language as the hero: big words, gold accents, labels that point at the work. */
.fx { margin: 0 0 3.5rem; }
.fx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.fx-heading { margin: 0; font: 800 clamp(2.2rem, 5.2vw, 4.4rem)/0.98 Inter, system-ui, sans-serif; letter-spacing: -0.04em; text-transform: lowercase; }
.fx-lead { max-width: 26rem; margin: 0; color: var(--text-muted, #5b6478); }

.fx-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: stretch; padding: clamp(0.9rem, 2vw, 1.6rem); border-radius: 22px; background: var(--navy-900, #0b1640); color: #fff; box-shadow: 0 30px 60px -30px rgba(8, 14, 40, 0.55); }

/* the photo */
.fx-media { --pos: 94%; position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 16px; background: #060c26; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.fx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.fx-media.is-ready .fx-img { opacity: 1; }
.fx-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.fx-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold, #e9b949); box-shadow: 0 0 18px rgba(233, 185, 73, 0.7); pointer-events: none; }
.fx-line i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold, #e9b949); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6); }
.fx-line i::before, .fx-line i::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: solid #0b1640; border-width: 0 0 3px 3px; }
.fx-line i::before { left: 14px; transform: rotate(45deg); }
.fx-line i::after { right: 14px; transform: rotate(-135deg); }
.fx-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.fx-range:focus-visible + * , .fx-media:has(.fx-range:focus-visible) { outline: 3px solid var(--gold, #e9b949); outline-offset: 3px; }
.fx-tag { position: absolute; top: 1rem; z-index: 2; padding: 0.35rem 0.75rem; border-radius: 999px; font: 700 0.72rem/1 Inter, system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; transition: opacity 0.3s ease; }
.fx-tag--b { left: 1rem; background: rgba(8, 14, 40, 0.78); color: #fff; }
.fx-tag--a { right: 1rem; background: var(--gold, #e9b949); color: #0b1640; }

/* labels on the finished side; they appear once most of the "after" is showing */
.fx-pins { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.fx-pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fx-media.is-after .fx-pin { opacity: 1; transform: none; transition-delay: calc(var(--i) * 140ms); }
.fx-pin i { flex: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid #fff; border-radius: 50%; background: var(--gold, #e9b949); box-shadow: 0 0 0 5px rgba(233, 185, 73, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5); }
.fx-pin b { position: relative; margin-left: 26px; padding: 0.36rem 0.62rem; border-radius: 6px; background: rgba(255, 255, 255, 0.97); color: #0b1640; font: 700 0.78rem/1.2 Inter, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); }
.fx-pin b::before { content: ''; position: absolute; right: 100%; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: #fff; }
.fx-pin--l { flex-direction: row-reverse; transform: translate(-100%, 6px); }
.fx-media.is-after .fx-pin--l { transform: translateX(-100%); }
.fx-pin--l i { margin: -6px -6px 0 0; }
.fx-pin--l b { margin: 0 26px 0 0; }
.fx-pin--l b::before { right: auto; left: 100%; }

/* the job sheet */
.fx-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(0.25rem, 1.5vw, 1.5rem) clamp(0.25rem, 1vw, 1rem) clamp(0.25rem, 1.5vw, 1.5rem) 0; }
.fx-count { margin: 0 0 0.6rem; font: 600 0.85rem/1 Inter, system-ui, sans-serif; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.fx-count b { color: var(--gold, #e9b949); font-size: 1.4rem; font-weight: 800; }
.fx-title { margin: 0 0 0.7rem; font: 800 clamp(1.7rem, 3.3vw, 3rem)/1.02 Inter, system-ui, sans-serif; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.fx-sum { max-width: 34rem; margin: 0 0 1.2rem; color: rgba(255, 255, 255, 0.86); line-height: 1.55; }
.fx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0 1.1rem; }
.fx-facts div { padding: 0.65rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.fx-facts dt { margin-bottom: 0.2rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold, #e9b949); }
.fx-facts dd { margin: 0; font-weight: 600; line-height: 1.3; }
.fx-did { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.fx-did li { position: relative; padding: 0.42rem 0 0.42rem 1.9rem; border-top: 1px solid rgba(255, 255, 255, 0.12); line-height: 1.4; }
.fx-did li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.fx-did li::before { content: ''; position: absolute; left: 0.35rem; top: 0.62rem; width: 0.5rem; height: 0.9rem; border: solid var(--gold, #e9b949); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.fx-actions { margin-bottom: 1.4rem; }
.fx-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.fx-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #060c26; cursor: pointer; opacity: 0.62; transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.fx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-thumb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fx-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.fx-thumb.is-on { opacity: 1; border-color: var(--gold, #e9b949); }
.fx-thumb:focus-visible { outline: 3px solid var(--gold, #e9b949); outline-offset: 2px; }

@media (max-width: 900px) {
  .fx-stage { grid-template-columns: 1fr; padding: 0.75rem; border-radius: 18px; }
  .fx-media { max-height: none; }
  .fx-panel { padding: 0.4rem 0.35rem 0.5rem; }
  .fx-facts { grid-template-columns: 1fr 1fr; }
  .fx-facts div:last-child { grid-column: 1 / -1; }
  .fx-pin b { font-size: 0.72rem; }
  .fx-line i { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .fx-line i::before { left: 12px; } .fx-line i::after { right: 12px; }
  .fx-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fx-img, .fx-pin, .fx-thumb { transition: none; } }

/* ---------- Featured projects page: every job, one stage after another ---------- */
.fx-lead a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.fx--page { margin: 2rem 0 3rem; }
.fx--page .fx-stage + .fx-stage { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 901px) {
  .fx-stage--flip .fx-media { order: 2; }
  .fx-stage--flip .fx-panel { padding: clamp(0.25rem, 1.5vw, 1.5rem) 0 clamp(0.25rem, 1.5vw, 1.5rem) clamp(0.25rem, 1vw, 1rem); }
}
/* plain list shown before the script runs, and to search engines */
.fx-static { display: grid; gap: 1.5rem; }
.fx-static article { padding: 1rem; border: 1px solid rgba(15, 31, 87, 0.15); border-radius: 14px; }
.fx-static .fx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fx-static img { width: 100%; height: auto; border-radius: 10px; }
/* on the featured page the stages use the full page width, not the narrow reading column */
.svc-body > .fx--page { max-width: none; }
.fx-media { min-width: 0; }

/* ================= Premium pass (29 Nov 2026) ================= */
/* richer stage: deep gradient, gold hairline, soft light from the photo side */
.fx-stage { position: relative; isolation: isolate; border: 1px solid rgba(233, 185, 73, 0.38); background: radial-gradient(120% 90% at 0% 0%, #1a2a6b 0%, #0b1640 46%, #070d2b 100%); box-shadow: 0 40px 80px -40px rgba(8, 14, 40, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.fx-stage--flip { background: radial-gradient(120% 90% at 100% 0%, #1a2a6b 0%, #0b1640 46%, #070d2b 100%); }
.fx-media { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* gold corner marks on the photo, like a framed print */
.fx-corner { position: absolute; z-index: 2; width: 26px; height: 26px; pointer-events: none; border: 2px solid var(--gold, #e9b949); opacity: 0.9; }
.fx-corner--tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.fx-corner--br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.fx-tag--b { left: 3rem; } .fx-tag--a { right: 1rem; }

/* big outline number behind the job sheet */
.fx-panel { position: relative; }
.fx-ghost { position: absolute; right: 0; top: -0.12em; z-index: -1; font: 800 clamp(7rem, 15vw, 14rem)/1 Inter, system-ui, sans-serif; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(233, 185, 73, 0.2); pointer-events: none; user-select: none; }
.fx-stage--flip .fx-ghost { right: auto; left: 0; }
.fx-title { background: linear-gradient(180deg, #fff 30%, #f3dfa6 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fx-facts div { background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border-color: rgba(233, 185, 73, 0.28); }

/* buttons */
.fx-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fx-actions .btn-outline-light { border-color: rgba(255, 255, 255, 0.45); }
.fx-arrows { position: absolute; right: 0; top: 0; display: flex; gap: 0.4rem; }
.fx-arrows button { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.fx-arrows button:hover { background: var(--gold, #e9b949); border-color: var(--gold, #e9b949); color: #0b1640; transform: translateY(-1px); }
.fx-arrows button:focus-visible { outline: 3px solid var(--gold, #e9b949); outline-offset: 2px; }

/* full-screen view */
.fx-expand { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; background: rgba(8, 14, 40, 0.72); color: #fff; font: 700 0.76rem/1 Inter, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s ease; }
.fx-expand:hover { background: var(--gold, #e9b949); color: #0b1640; border-color: var(--gold, #e9b949); }
.fx-close { display: none; }
/* the photo keeps its 4:5 shape and grows to the largest size the window allows, on a dark backdrop */
.fx-media.is-full { position: fixed; inset: 0; z-index: 9999; margin: auto; width: min(100vw, 80vh); width: min(100vw, 80dvh); height: min(100vh, 125vw); height: min(100dvh, 125vw); max-height: none; aspect-ratio: auto; border-radius: 0; background: #04081c; box-shadow: 0 0 0 100vmax #04081c; }
.fx-media.is-full .fx-expand, .fx-media.is-full .fx-corner { display: none; }
.fx-media.is-full .fx-close { display: block; position: absolute; right: 1rem; top: 1rem; z-index: 4; padding: 0.7rem 1.1rem; border: 0; border-radius: 999px; background: var(--gold, #e9b949); color: #0b1640; font: 800 0.85rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
html.fx-lock { overflow: hidden; }

/* more photos of the finished job */
.fx-more { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.2rem; }
.fx-more span { margin-left: 0.4rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.fx-shot { overflow: hidden; width: 52px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #060c26; cursor: pointer; opacity: 0.65; transition: opacity 0.2s ease, border-color 0.2s ease; }
.fx-shot img { width: 100%; height: 100%; object-fit: cover; }
.fx-shot.is-on, .fx-shot:hover { opacity: 1; border-color: var(--gold, #e9b949); }

/* job sheet rises in, one line after another, the first time a stage is seen */
@media (prefers-reduced-motion: no-preference) {
  .fx-anim .fx-stage .fx-panel > *:not(.fx-ghost) { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .fx-anim .fx-stage.is-in .fx-panel > *:not(.fx-ghost) { opacity: 1; transform: none; }
  .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(2) { transition-delay: 0.05s; } .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(3) { transition-delay: 0.12s; }
  .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(4) { transition-delay: 0.19s; } .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(5) { transition-delay: 0.26s; }
  .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(6) { transition-delay: 0.33s; } .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(7) { transition-delay: 0.4s; }
  .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(8) { transition-delay: 0.47s; } .fx-anim .fx-stage.is-in .fx-panel > *:nth-child(9) { transition-delay: 0.54s; }
  .fx-anim .fx-stage .fx-media { transform: scale(0.965); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
  .fx-anim .fx-stage.is-in .fx-media { transform: none; }
  .fx-anim .fx-stage .fx-media.is-full { transform: none; }
  .fx-ghost { transition: opacity 1.2s ease 0.2s; opacity: 0; } .fx-stage.is-in .fx-ghost { opacity: 1; }
}

/* featured page: numbered rail on the right edge, and a facts strip under the intro */
.fx-rail { position: fixed; right: 0.9rem; top: 50%; z-index: 40; transform: translateY(-50%); }
.fx-rail ol { display: grid; gap: 0.35rem; margin: 0; padding: 0.5rem 0.4rem; list-style: none; border: 1px solid rgba(233, 185, 73, 0.4); border-radius: 999px; background: rgba(11, 22, 64, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fx-rail a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: rgba(255, 255, 255, 0.7); font: 700 0.7rem/1 Inter, system-ui, sans-serif; text-decoration: none; font-variant-numeric: tabular-nums; transition: background 0.2s ease, color 0.2s ease; }
.fx-rail a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.fx-rail a.is-on { background: var(--gold, #e9b949); color: #0b1640; }
@media (max-width: 1560px) { .fx-rail { display: none; } }
.fx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; max-width: none !important; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.fx-stats li { padding: 1rem 1.1rem; border-radius: 14px; background: var(--navy-900, #0b1640); color: #fff; border: 1px solid rgba(233, 185, 73, 0.38); }
.fx-stats b { display: block; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 Inter, system-ui, sans-serif; letter-spacing: -0.03em; color: var(--gold, #e9b949); }
.fx-stats span { display: block; margin-top: 0.35rem; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85); }
.fx--page .fx-stage { scroll-margin-top: 96px; }

@media (max-width: 900px) {
  .fx-ghost { font-size: 6.5rem; top: -0.1em; }
  .fx-expand span { display: none; } .fx-expand { padding: 0.55rem; left: 0.7rem; bottom: 0.7rem; }
  .fx-tag--b { left: 2.6rem; }
  .fx-stats { grid-template-columns: 1fr; }
  .fx-actions .btn { width: 100%; justify-content: center; }
}

/* Google review prompt in the reviews section */
.g-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; margin: 1rem 0 0; }
.g-review span { color: var(--text-muted, #5b6478); font-size: 0.95rem; }

/* area chips that link to an area page */
.area-chips li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.area-chips li a:hover { text-decoration-thickness: 2px; }
.area-more { margin: 1.2rem 0 0; text-align: center; }
