/* ============================================================
   SERVICE TEMPLATE — one reusable pillar page (Branding / Experience / Rich Media)
   Builds on system.css + home.css + case.css. Only service-specific bits live here.
   ============================================================ */

/* ---------- hero: pillar eyebrow + index ---------- */
.svc-hero-meta { display: flex; align-items: center; gap: 14px; }
.svc-hero-meta .svc-idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,.6); }
.svc-hero-meta .svc-idx b { color: var(--coral); font-weight: 500; }
/* hero facts re-used from case.css .cs-facts; one extra modifier so the labels read as disciplines */
.cs-hero--cine .cs-facts.svc-facts .fv { font-size: clamp(24px,2.4vw,36px); }

/* ============================================================
   DISCIPLINES INCLUDED — bleed grid, hairlines edge to edge
   ============================================================ */
.svc-disc { border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d);
  display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-disc .dcell { border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  padding: clamp(28px,3vw,48px) clamp(24px,2.4vw,40px); display: flex; flex-direction: column; gap: 16px; }
.svc-disc .dcell .dn { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--coral); }
.svc-disc .dcell h3 { font-weight: 600; font-size: clamp(22px,2vw,30px); letter-spacing: -0.018em;
  line-height: 1.04; color: var(--paper); }
.svc-disc .dcell p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.66); text-wrap: pretty; }
.svc-disc .dcell ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-disc .dcell ul li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(255,255,255,.78); border: 1px solid var(--line-d-strong);
  padding: 5px 9px; }
/* featured discipline icon — coral gradient + glow (mirrors homepage logo) */
.svc-disc .dcell .dicon { display: block; }
.svc-disc .dcell .dicon svg { width: clamp(30px,2.6vw,38px); height: auto; display: block; overflow: visible; }
@media (max-width: 860px){ .svc-disc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .svc-disc { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS SNAPSHOT — numbered bleed steps
   ============================================================ */
.svc-proc { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-proc .step { border-left: 1px solid var(--line); padding: clamp(28px,3vw,46px) clamp(20px,1.8vw,32px);
  display: flex; flex-direction: column; gap: 14px; min-height: clamp(220px,18vw,280px); }
.svc-proc .step:first-child { border-left: 0; }
.svc-proc .step .pn { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
  color: var(--coral); }
.svc-proc .step h4 { font-weight: 600; font-size: clamp(19px,1.6vw,24px); letter-spacing: -0.015em;
  line-height: 1.06; margin-top: 6px; }
.svc-proc .step p { font-size: 14px; line-height: 1.52; color: var(--graphite); text-wrap: pretty; margin-top: auto; }
.svc-proc-foot { display: flex; justify-content: flex-start; padding-top: var(--s6); }
@media (max-width: 860px){ .svc-proc { grid-template-columns: 1fr 1fr; }
  .svc-proc .step:nth-child(3), .svc-proc .step:nth-child(4) { border-top: 1px solid var(--line); }
  .svc-proc .step:nth-child(odd) { border-left: 0; } }
@media (max-width: 520px){ .svc-proc { grid-template-columns: 1fr; }
  .svc-proc .step { border-left: 0; border-top: 1px solid var(--line); } .svc-proc .step:first-child { border-top: 0; } }

/* ============================================================
   APPLICATIONS POWERED BY THIS PILLAR — static card grid (reuses .app)
   ============================================================ */
.svc-apps { border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-apps .app { flex: none; border: 0; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  min-height: clamp(190px,15vw,220px); background: var(--ink); }
.svc-apps .app h4 { color: var(--coral); }
.svc-apps .app-desc { color: rgba(255,255,255,.66); }
.svc-apps .app:hover { background: var(--coral); }
.svc-apps .app:hover h4, .svc-apps .app:hover .app-desc { color: var(--ink); }
@media (max-width: 900px){ .svc-apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .svc-apps { grid-template-columns: 1fr; } }

/* ============================================================
   UTILITIES + FULL-BLEED SHOWCASE BAND
   ============================================================ */
.svc-pb0 { padding-bottom: 0 !important; }
.svc-py0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.svc-bleed-img { display: block; background: var(--ink); }
.svc-bleed-img .svc-band-mask { display: block; width: 100%; }
.svc-bleed-img image-slot { display: block; width: 100%; height: clamp(360px, 44vw, 620px); }

/* ============================================================
   RELEVANT WORK — three project cards (uses .nr-mask clip reveal)
   ============================================================ */
.svc-work { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--s6) var(--s4); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.svc-work::-webkit-scrollbar { display: none; }
.svc-work.dragging { cursor: grabbing; scroll-snap-type: none; }
.svc-work .svc-proj { flex: 0 0 clamp(280px,30vw,380px); scroll-snap-align: start; margin-left: -1px; }
.svc-work .svc-proj:first-child { margin-left: 0; }
.svc-proj { display: flex; flex-direction: column; text-decoration: none; color: var(--paper); border: 1px solid var(--line-d); transition: border-color .3s; }
.svc-proj:hover { border-color: var(--coral); }
.svc-proj .pm { aspect-ratio: 16/9; overflow: hidden; outline: none; background: rgba(255,255,255,.04); }
.svc-proj .pm image-slot { display: block; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.16,.84,.3,1); }
.svc-proj:hover .pm image-slot { transform: scale(1.06); }
.svc-proj .pmeta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: var(--s5) var(--s5) 4px; border-top: 1px solid var(--line-d); margin-top: 0; }
.svc-proj .pmeta .pkind { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--coral); }
.svc-proj .pmeta .praise { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.6); }
.svc-proj h4 { font-weight: 600; font-size: clamp(20px,1.7vw,26px); letter-spacing: -0.018em; line-height: 1.05;
  margin: 10px var(--s5) var(--s5); transition: color .3s; }
.svc-proj:hover h4 { color: var(--coral); }
.svc-proj:hover .pm { outline: none; }
@media (max-width: 820px){ .svc-work .svc-proj { flex-basis: 78vw; } }
/* Relevant Work — red on black (coral titles on ink) */
#work .svc-proj h4 { color: var(--coral); }
#work .svc-proj:hover h4 { color: var(--paper); }
/* swiper nav arrows */
#work .svc-proc-foot { justify-content: space-between; align-items: center; }
.sw-nav { display: flex; gap: var(--s4); }
.sw-arrow { width: 50px; height: 50px; flex: 0 0 auto; border: 1px solid var(--line-d-strong); background: none;
  color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--mono); font-size: 18px; transition: background .18s, color .18s, border-color .18s; }
.sw-arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 560px){ .sw-nav { display: none; } }

/* ============================================================
   PRICING ENTRY — coral estimate band
   ============================================================ */
.svc-estimate { background: var(--ink); color: var(--paper); border-top: 0; padding-top: 0; padding-bottom: 0; position: relative; overflow: hidden; }
.svc-estimate .cs-wipe-line::after { background: var(--paper); }
.svc-estimate .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  align-items: stretch; padding-top: 0; padding-bottom: 0; position: relative; z-index: 1;
  min-height: clamp(320px,34vw,460px); }
.svc-estimate .est-lead { padding-right: clamp(32px,5vw,80px); display: flex; flex-direction: column; justify-content: center; }
.svc-estimate .est-side { border-left: 1px solid var(--line-d); padding-left: clamp(32px,5vw,80px); display: flex; flex-direction: column; justify-content: center; }
.svc-estimate .est-lead .est-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral); }
.svc-estimate .est-lead h2 { font-weight: 600; font-size: clamp(30px,4vw,56px); letter-spacing: -0.025em;
  line-height: 0.98; margin-top: var(--s5); text-wrap: balance; color: var(--coral); }
.svc-estimate .est-side p { font-size: 15.5px; line-height: 1.5; color: var(--coral); margin-bottom: var(--s6); text-wrap: pretty; }
.svc-estimate .est-side .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.svc-estimate .est-side .btn:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.svc-estimate .est-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--coral);
  margin-top: var(--s5); }
/* large rotated calculator as a background motif */
.est-bg { position: absolute; left: 32%; right: auto; top: 50%; transform: translateY(-50%) rotate(-14deg);
  width: clamp(200px,22vw,320px); z-index: 0; pointer-events: none; }
.est-bg svg { width: 100%; height: auto; display: block;
  fill: none; stroke: var(--coral); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; opacity: .32; }
@media (max-width: 760px){ .est-bg { left: -16%; width: 60vw; } }
@media (max-width: 760px){ .svc-estimate .wrap { grid-template-columns: 1fr; gap: var(--s6); min-height: 0;
    padding-top: clamp(44px,9vw,76px); padding-bottom: clamp(44px,9vw,76px); }
  .svc-estimate .est-lead { padding-right: 0; }
  .svc-estimate .est-side { border-left: 0; padding-left: 0; align-items: stretch; }
  .svc-estimate .est-side .btn { width: 100%; } }

/* ============================================================
   FAQ — accordion
   ============================================================ */
.svc-faq { border-left: 1px solid var(--line-d); }
.svc-faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px,5vw,80px); align-items: start; padding-left: var(--s6); }
.svc-faq-head { position: sticky; top: clamp(92px,12vh,124px); align-self: start; padding: clamp(44px,6vw,84px) 0; }
.svc-faq-head .aside, .svc-faq-head .svc-sechead h2 { color: var(--coral); }
@media (max-width: 860px){ .svc-faq-layout { grid-template-columns: 1fr; gap: var(--s6); } .svc-faq-head { position: static; } .svc-faq { border-left: 0; padding-left: 0; margin-left: calc(-1 * var(--s6)); } }
.svc-faq .q { border-bottom: 1px solid var(--line-d); }
.svc-faq .q-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s6);
  padding: clamp(22px,2.4vw,34px) var(--s6) clamp(22px,2.4vw,34px) clamp(32px,5vw,72px); background: none; border: 0; text-align: left; cursor: pointer; color: var(--paper); }
.svc-faq .q-head h3 { font-weight: 600; font-size: clamp(19px,1.9vw,27px); letter-spacing: -0.018em; line-height: 1.1; }
.svc-faq .q-head .qplus { font-family: var(--mono); font-size: 26px; line-height: 1; color: var(--coral);
  flex: 0 0 auto; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.svc-faq .q.open .q-head .qplus { transform: rotate(45deg); }
.svc-faq .q-body { display: grid; grid-template-rows: 0fr; overflow: hidden; opacity: 0; padding: 0 var(--s6) 0 clamp(32px,5vw,72px);
  transition: grid-template-rows .5s cubic-bezier(.4,0,.2,1), opacity .42s ease, margin .5s cubic-bezier(.4,0,.2,1); }
.svc-faq .q-body > p { overflow: hidden; min-height: 0; }
.svc-faq .q.open .q-body { grid-template-rows: 1fr; opacity: 1; margin-bottom: clamp(22px,2.4vw,34px); }
.svc-faq .q-body p { font-size: clamp(15px,1.15vw,17px); line-height: 1.6; color: rgba(255,255,255,.74);
  max-width: 70ch; text-wrap: pretty; }
.svc-faq .q-body p + p { margin-top: var(--s5); }
[data-motion="off"] .svc-faq .q-body, .no-anim .svc-faq .q-body { transition: none; }

/* ---------- shared: section intro head spacing on this template ---------- */
.svc-sechead { margin-bottom: clamp(36px,4vw,64px); }
.svc-sechead .aside { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--graphite); display: block; margin-bottom: var(--s5); }
.s--ink .svc-sechead .aside { color: var(--graphite-d); }
.s--coral .svc-sechead .aside { color: rgba(16,18,22,.6); }
.svc-sechead h2 { font-weight: 600; font-size: clamp(30px,4.2vw,60px); letter-spacing: -0.025em; line-height: 0.98; }
.svc-lede { font-size: clamp(17px,1.4vw,21px); line-height: 1.45; color: var(--graphite); max-width: 52ch;
  margin-top: var(--s6); text-wrap: pretty; }
.s--ink .svc-lede { color: rgba(255,255,255,.74); }

/* ============================================================
   TESTIMONIALS — large single-line marquee slides + reveal transition
   ============================================================ */
.svc-tmials { padding-top: clamp(40px,5vw,76px); padding-bottom: clamp(40px,5vw,76px); }
.svc-tmials .tm-carousel { position: relative; margin-top: clamp(18px,2.4vw,38px); }
.svc-tmials .tm-stage { position: relative; }
.svc-tmials .tm-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.svc-tmials .tm-slide.active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
/* full-bleed huge one-line quote scrolling left→right */
.svc-tmials .tm-marquee { overflow: hidden; width: 100%; padding-left: clamp(28px,4vw,60px); clip-path: inset(0 0 100% 0); }
.svc-tmials .tm-slide.tm-revealing .tm-marquee { animation: tm-reveal .8s cubic-bezier(.16,.84,.3,1) forwards; }
.svc-tmials .tm-marquee-inner { display: inline-flex; white-space: nowrap; will-change: transform; }
.svc-tmials .tm-quote { font-family: var(--sans); font-weight: 600; font-size: clamp(46px,8.5vw,128px);
  line-height: 1.08; letter-spacing: -0.025em; color: var(--coral); }
.svc-tmials .tm-quote::after { content: "•"; color: var(--coral); margin: 0 0.45em; }
@keyframes tm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tm-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tm-citein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.svc-tmials .tm-cite { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-top: clamp(24px,3vw,46px); }
.svc-tmials .tm-slide.tm-revealing .tm-cite { animation: tm-citein .6s .3s both cubic-bezier(.16,.84,.3,1); }
.svc-tmials .tm-av { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.svc-tmials .tm-av image-slot { display: block; width: 100%; height: 100%; }
.svc-tmials .tm-citetext { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.svc-tmials .tm-name { font-weight: 600; font-size: 16px; color: var(--paper); }
.svc-tmials .tm-role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.svc-tmials .svc-sechead { text-align: center; }
.svc-tmials .tm-nav { display: flex; flex-direction: column; align-items: center; gap: var(--s5); margin-top: clamp(34px,4vw,58px); }
.svc-tmials .tm-arrows { display: flex; gap: var(--s4); }
.svc-tmials .tm-arrow { width: 50px; height: 50px; flex: 0 0 auto; border: 1px solid var(--line-d-strong); background: none;
  color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--mono); font-size: 18px; transition: background .18s, color .18s, border-color .18s; }
.svc-tmials .tm-arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.svc-tmials .tm-arrow:disabled { opacity: .28; cursor: default; }
.svc-tmials .tm-arrow:disabled:hover { background: none; color: var(--paper); border-color: var(--line-d-strong); }
.svc-tmials .tm-dots { display: flex; align-items: center; gap: 4px; }
.svc-tmials .tm-dot { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.svc-tmials .tm-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28);
  transition: background .2s, transform .2s; }
.svc-tmials .tm-dot.on::before { background: var(--coral); transform: scale(1.4); }
@media (prefers-reduced-motion: reduce) {
  .svc-tmials .tm-marquee { clip-path: none !important; }
  .svc-tmials .tm-marquee-inner { display: block; white-space: normal; animation: none !important; }
  .svc-tmials .tm-quote[aria-hidden="true"], .svc-tmials .tm-quote::after { display: none; }
  .svc-tmials .tm-slide.active .tm-cite { animation: none !important; }
}
[data-motion="off"] .svc-tmials .tm-marquee { clip-path: none !important; }
[data-motion="off"] .svc-tmials .tm-marquee-inner { display: block; white-space: normal; animation: none !important; }
[data-motion="off"] .svc-tmials .tm-quote[aria-hidden="true"], [data-motion="off"] .svc-tmials .tm-quote::after { display: none; }
[data-motion="off"] .svc-tmials .tm-slide.active .tm-cite { animation: none !important; }

/* ============================================================
   BENEFITS — feature index on coral, full-bleed rows (from design system)
   ============================================================ */
.feat { background: var(--coral); color: var(--ink); border-top: 1px solid rgba(16,18,22,.28); padding-bottom: 0; overflow: hidden; }
.feat .u-label { color: var(--ink); }
.feat-intro { padding: 0 var(--s6); }
.feat-head { position: relative; padding: var(--s6) 0 var(--s9); }
.feat-head .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.feat-head h3 { font-weight: 600; font-size: clamp(40px,7vw,96px); letter-spacing: -0.03em; line-height: 0.92; margin-top: var(--s8); max-width: 62%; }
.feat-head .marker { position: absolute; top: var(--s6); right: 38%; width: 9px; height: 9px; background: var(--ink); transform: translateX(50%); }
.feat-head::after { content: ""; position: absolute; top: -260px; bottom: 0; right: 38%; width: 1px; background: rgba(16,18,22,.28); }
.feat-row { display: grid; grid-template-columns: 0.55fr 1fr 1.45fr; border-top: 1px solid rgba(16,18,22,.28); }
.feat-row > * { padding: var(--s6); border-left: 1px solid rgba(16,18,22,.28); }
.feat-row > *:first-child { border-left: 0; }
.feat-row .num { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.feat-row .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.feat-row .body { display: flex; flex-direction: column; }
.feat-row .body h4 { font-weight: 600; font-size: clamp(26px,3vw,40px); letter-spacing: -0.02em; line-height: 1.02; margin: 18px 0 var(--s7); }
.feat-row .body p { font-size: 15px; max-width: 48ch; margin-top: auto; }
.feat-row .img { display: flex; }
.feat-row .img image-slot { display: block; width: 100%; height: 100%; min-height: clamp(240px,24vw,360px); }
.feat-row--slim { grid-template-columns: 0.55fr 2.45fr; align-items: center; cursor: pointer; transition: background .15s; }
.feat-row--slim:hover { background: rgba(16,18,22,.05); }
.feat-row--slim .titlewrap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s6); }
.feat-row--slim h4 { font-weight: 600; font-size: clamp(22px,2.6vw,34px); letter-spacing: -0.02em; line-height: 1.04; }
.feat-row--slim .plus { font-family: var(--mono); font-size: 24px; transition: transform .2s; }
.feat-row--slim.open .plus { transform: rotate(45deg); }
.feat-row--slim .more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s, margin .3s; font-size: 15px; max-width: 60ch; }
.feat-row--slim.open .more { max-height: 200px; opacity: 1; margin-top: var(--s5); }
@media (max-width: 760px) { .feat-head h3 { max-width: 100%; } .feat-head::after, .feat-head .marker { display: none; }
  .feat-row, .feat-row--slim { grid-template-columns: 0.4fr 1fr; } .feat-row .img { display: none; } }

/* industries rows reused from home: content aligned to the page gutter */
.svc-inds .ind { padding-left: var(--s6); padding-right: var(--s6); }
@media (max-width: 720px){ .svc-inds .ind { padding-left: var(--s5); padding-right: var(--s5); } }
/* Industries on black-on-red (coral) ground */
.svc-inds .inds { border-top-color: rgba(16,18,22,.28); }
.svc-inds .ind { border-bottom-color: rgba(16,18,22,.28); }
.svc-inds .ind .inum { color: var(--ink); }
.svc-inds .ind .flag { color: rgba(16,18,22,.6); }
.svc-inds .ind .arr { color: rgba(16,18,22,.55); }
.svc-inds .ind::after { background: var(--ink); }
.svc-inds .ind:hover h3 { color: var(--ink); }
.svc-inds .ind:hover .inum, .svc-inds .ind:hover .arr { color: var(--ink); }
