/* =========================================================================
   INDIVIDUAL SERVICE PAGES (service.php → /services/<slug>). Builds on
   css/styles.css. Section rhythm: ink hero, paper intro, white "included",
   ink work, paper process, white FAQ, mint call to action.
   ========================================================================= */
.sp-wrap { max-width: var(--maxw); margin: 0 auto; }
.sp-h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: .95;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem); color: var(--ink-900);
}
.sp-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------------------------------------------------------------- Hero ---- */
.sp-hero { padding-bottom: clamp(4rem, 9vw, 7rem); }
.sp-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sp-hero h1 { max-width: 12ch; }
.sp-hero .sp-actions { animation: rise .9s var(--ease) .16s both; }

/* Three pieces of real work, fanned like a hand of cards: the page's one moment of motion */
.sp-fan { position: relative; aspect-ratio: 1 / .82; }
.sp-fan figure {
  position: absolute; width: 64%; overflow: hidden; border-radius: 14px; background: var(--ink-800);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  animation: sp-fan-in 1s var(--ease) both;
}
.sp-fan img { display: block; width: 100%; height: auto; }
.sp-fan-1 { left: 0;   top: 4%;  transform: rotate(-9deg); animation-delay: .15s; --r: -9deg; }
.sp-fan-2 { right: 0;  top: 10%; transform: rotate(8deg);  animation-delay: .25s; --r: 8deg; }
.sp-fan-0 { left: 18%; top: 22%; z-index: 2; transform: rotate(-1.5deg); animation-delay: .05s; --r: -1.5deg; }
@keyframes sp-fan-in { from { opacity: 0; transform: translateY(40px) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }

/* --------------------------------------------------------------- Intro ---- */
.sp-intro { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.sp-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sp-intro-copy { display: grid; gap: 1.1rem; max-width: 62ch; }
.sp-intro-copy .sp-h2 { margin-bottom: .6rem; }
.sp-intro-copy p { font-size: 1.08rem; line-height: 1.7; color: rgba(62, 67, 73, .92); }
.sp-intro-copy p:first-of-type { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-900); }
.sp-intro-copy a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-deep); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.sp-for { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); background: var(--ink-900); color: var(--paper); }
.sp-for h3 { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--mint); }
.sp-for ul { margin-top: 1.1rem; display: grid; gap: 1rem; }
.sp-for li { padding-top: 1rem; border-top: 1px solid rgba(238, 237, 236, .14); line-height: 1.55; color: rgba(238, 237, 236, .75); }
.sp-for strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--paper); }

/* ------------------------------------------------------------ Included ---- */
.sp-included { background: var(--paper-bright); }
.sp-included-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.5rem, 3.5vw, 3rem); }
.sp-included-grid li { padding-top: 1.3rem; border-top: 2px solid rgba(62, 67, 73, .14); }
.sp-included-grid i { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--mint); color: var(--ink-900); font-size: 1.1rem; }
.sp-included-grid h3 { margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; color: var(--ink-900); }
.sp-included-grid p { margin-top: .45rem; line-height: 1.6; color: rgba(62, 67, 73, .82); }

/* ---------------------------------------------------------------- Work ---- */
.sp-work { background: var(--ink-900); color: var(--paper); }
.sp-work .sp-h2 { color: var(--paper); }
.sp-work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; }
.sp-work-grid { margin-top: clamp(2rem, 4vw, 2.8rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.sp-work-grid a { display: grid; gap: .2rem; }
.sp-work-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ink-800); margin-bottom: .6rem; }
.sp-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sp-work-grid a:hover img, .sp-work-grid a:focus-visible img { transform: scale(1.04); }
.sp-work-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--paper); }
.sp-work-tag { font-size: .9rem; color: var(--mint); }

/* ------------------------------------------------------------- Process ---- */
.sp-steps { margin-top: clamp(2rem, 4vw, 2.8rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.sp-steps li { padding-top: 1.3rem; border-top: 2px solid rgba(62, 67, 73, .16); }
.sp-steps i { font-size: 1.35rem; color: var(--mint-deep); }
.sp-steps h3 { margin-top: .9rem; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink-900); }
.sp-steps p { margin-top: .45rem; line-height: 1.55; color: rgba(62, 67, 73, .82); }

/* ----------------------------------------------------------------- FAQ ---- */
.sp-faq { background: var(--paper-bright); }
.sp-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sp-faq-intro { margin-top: 1rem; font-size: 1.07rem; }
.sp-faq-intro a { color: var(--mint-deep); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.sp-faq .faq { margin: 0; max-width: none; }
.sp-faq .faq a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-deep); text-underline-offset: .2em; }

/* ------------------------------------------------ Call to action band ---- */
.sp-band { background: var(--mint); color: var(--ink-900); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sp-band-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sp-band h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: .95; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14ch; }
.sp-band p { margin-top: 1rem; max-width: 46ch; font-size: 1.08rem; line-height: 1.6; }
.sp-related h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.sp-related ul { margin-top: .8rem; display: grid; }
.sp-related a {
  display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: .6rem;
  padding: .95rem 0; border-top: 1.5px solid rgba(42, 46, 51, .2);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.sp-related li:last-child a { border-bottom: 1.5px solid rgba(42, 46, 51, .2); }
.sp-related-arrow { font-size: .85rem; transition: transform .3s var(--ease); }
.sp-related a:hover .sp-related-arrow, .sp-related a:focus-visible .sp-related-arrow { transform: translateX(4px); }

/* ---------------------------------------------------------- Responsive ---- */
@media (max-width: 980px) {
  .sp-hero-inner, .sp-intro-grid, .sp-faq-grid, .sp-band-inner { grid-template-columns: 1fr; }
  .sp-fan { max-width: 520px; width: 100%; margin: 0 auto; }
  .sp-included-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sp-included-grid, .sp-steps { grid-template-columns: 1fr; }
  .sp-work-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-work-name { font-size: .95rem; }
  .sp-work-tag { font-size: .82rem; }
}
