/* Signal Pictures — services overview + service detail pages (v1).
   Builds on the base sp- tokens from the main stylesheet. */

/* ---------- Shared ---------- */
.sv-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 18px; }
.sv-kicker::before { content: ''; width: 28px; height: 2px; background: var(--sp-accent); }
.sv-h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; }
.sv-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sp-accent); }

/* ---------- Overview hero ---------- */
.sv-hero { background: #000; color: #fff; position: relative; overflow: hidden; padding: clamp(72px, 10vw, 150px) 0 clamp(56px, 7vw, 96px); }
.sv-hero__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); opacity: .32; }
.sv-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.sv-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, #000 92%); }
.sv-hero .sp-wrap { position: relative; }
.sv-hero h1 { font-weight: 800; letter-spacing: -.045em; line-height: .92; font-size: clamp(3.4rem, 11vw, 10rem); margin: 0; }
.sv-hero__sub { max-width: 640px; font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 500; line-height: 1.45; color: rgba(255,255,255,.78); margin: 26px 0 0; }
.sv-index { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.sv-index a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .92rem; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.sv-index a span { color: var(--sp-accent); font-size: .78rem; font-weight: 700; }
.sv-index a:hover { background: #fff; color: #000 !important; border-color: #fff; }

/* ---------- Overview rows ---------- */
.sv-list { display: grid; gap: clamp(64px, 9vw, 140px); }
.sv-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 120px; }
.sv-row:nth-child(even) .sv-row__media { order: 2; }
.sv-row__media { position: relative; display: block; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; background: #111; }
.sv-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sv-row__media:hover img { transform: scale(1.05); }
.sv-row__media .sv-row__badge { position: absolute; left: 20px; top: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
.sv-row .sv-row__num { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #c8c8c8; margin: 0 0 8px; }
.sv-row h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(2rem, 3.6vw, 3.2rem); margin: 0 0 18px; }
.sv-row p { font-size: 1.1rem; line-height: 1.6; font-weight: 500; color: #333; margin: 0; max-width: 520px; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sv-tags li { padding: 7px 14px; border-radius: 999px; background: var(--sp-card); font-weight: 600; font-size: .86rem; }
.sv-more { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-weight: 700; color: #000 !important; text-decoration: none !important; }
.sv-more i { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #000; color: #fff; font-style: normal; transition: transform .25s ease, background .25s ease; }
.sv-more:hover i { transform: translateX(6px); background: var(--sp-accent); color: #000; }

/* ---------- Process ---------- */
.sv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 60px); counter-reset: sv; }
.sv-step { border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }
.sv-step b { display: block; color: var(--sp-accent); font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; }
.sv-step h3 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.sv-step p { color: rgba(255,255,255,.66); font-size: 1rem; line-height: 1.55; margin: 0; }

/* ---------- Detail hero ---------- */
.sv-dhero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #000; }
.sv-dhero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sv-zoom 14s ease-out both; }
.sv-dhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.88) 100%); }
.sv-dhero .sp-wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 84px); }
.sv-crumbs { display: flex; gap: 10px; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; color: rgba(255,255,255,.75); }
.sv-crumbs a { color: #fff !important; text-decoration: none !important; }
.sv-crumbs a:hover { color: var(--sp-accent) !important; }
.sv-dhero h1 { font-weight: 800; letter-spacing: -.045em; line-height: .94; font-size: clamp(2.8rem, 8.5vw, 8rem); margin: 0; max-width: 14ch; text-wrap: balance; }
.sv-dhero__tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.sv-dhero__tags li + li::before { content: '/'; margin-right: 22px; color: var(--sp-accent); font-style: normal; }
.sv-dhero .sp-btns { justify-content: flex-start; margin-top: 34px; }
.sv-dhero .sp-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.45); }
.sv-scroll { position: absolute; right: var(--sp-gutter); bottom: clamp(40px, 6vw, 84px); z-index: 1; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; color: #fff !important; text-decoration: none !important; animation: sv-bob 2.4s ease-in-out infinite; }
@keyframes sv-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes sv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Detail intro ---------- */
.sv-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.sv-intro__lead { font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1.3; letter-spacing: -.015em; margin: 0; }
.sv-offer { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sp-line-dark); }
.sv-offer li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--sp-line-dark); font-weight: 600; font-size: 1.08rem; transition: padding-left .25s ease; }
.sv-offer li:hover { padding-left: 8px; }
.sv-offer li span { font-size: .8rem; font-weight: 700; color: var(--sp-accent); letter-spacing: .06em; }
.sv-intro .sp-btns { justify-content: flex-start; margin-top: 36px; }

/* ---------- Bento gallery ---------- */
.sv-gal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.sv-gal-head p { margin: 0; color: var(--sp-muted); font-weight: 600; }
.sv-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense; gap: 12px; }
.sv-bento figure { margin: 0; border-radius: 18px; overflow: hidden; background: #111; cursor: zoom-in; position: relative; }
.sv-bento figure:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
.sv-bento figure:nth-child(8n+6) { grid-column: span 2; }
.sv-bento img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.sv-bento figure:hover img { transform: scale(1.06); }
.sv-bento.is-collapsed figure:nth-child(n+9) { display: none; }
.sv-gal-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Lightbox ---------- */
.sv-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.sv-lb.is-open { display: flex; }
.sv-lb img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.sv-lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sv-lb button:hover { background: #fff; color: #000; }
.sv-lb__close { top: 18px; right: 18px; }
.sv-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.sv-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.sv-lb__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-weight: 600; font-size: .9rem; }

/* ---------- Other services rail ---------- */
.sv-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, calc((100% - 64px) / 5)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.sv-rail a { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff !important; text-decoration: none !important; background: #111; }
.sv-rail img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.sv-rail a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%); }
.sv-rail a:hover img { transform: scale(1.06); }
.sv-rail__txt { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.sv-rail__txt span { display: block; color: var(--sp-accent); font-weight: 700; font-size: .8rem; letter-spacing: .1em; margin-bottom: 6px; }
.sv-rail__txt strong { display: block; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sv-row, .sv-intro { grid-template-columns: 1fr; }
  .sv-row:nth-child(even) .sv-row__media { order: 0; }
  .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .sv-hero__bg { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .sv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 8px; }
  .sv-bento figure:nth-child(8n+6) { grid-column: span 2; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-dhero { min-height: 78vh; }
  .sv-scroll { display: none; }
  .sv-rail { grid-auto-columns: 78%; }
  .sv-lb { padding: 56px 12px; }
  .sv-lb__prev, .sv-lb__next { top: auto; bottom: 10px; transform: none; }
  .sv-row__media { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-dhero > img, .sv-scroll { animation: none; }
  .sv-row__media img, .sv-bento img, .sv-rail img { transition: none; }
}
.sv-ghost-dark { color: #000 !important; border-color: rgba(0,0,0,.25) !important; }
