/* Services page: a scroll-driven story.
   Scenes marked [data-scene] are tall wrappers around a sticky, screen-high stage;
   js/services.js turns scroll position into the motion. */

.svc-page {
  --paper: var(--ground);
  --paper-deep: #efe5d6;
  --gold: #ecc78f;
  --stage-h: calc(100svh / var(--zoom) - var(--header-h, 72px));
  background: var(--paper);
}

/* Shared pieces */
.sv-narrow { max-width: 900px; text-align: center; }
.sv-label {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sv-sticky {
  position: sticky;
  top: var(--header-h, 72px);
  height: var(--stage-h);
  overflow: hidden;
}
.sv-swatch { display: block; aspect-ratio: 4 / 3; background: var(--c, var(--maroon)); }

/* Confetti: hollow triangles in the page's blank stretches. js/services.js places them only
   where there is no text or photo; the layer sits behind everything in <main>. */
.svc-page main { position: relative; z-index: 0; }
.sv-confetti { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sv-confetti svg {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* Reveal-on-scroll (only once JS has marked the page) */
.sv-js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s ease, translate 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.sv-js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Word-by-word heading rise: each word sits in a mask and slides up into place. */
.sv-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sv-w > span { display: inline-block; }
.sv-js [data-split] .sv-w > span {
  translate: 0 105%;
  transition: translate 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.sv-js [data-split].is-in .sv-w > span { translate: 0 0; }

/* 1. Hero */
.sv-hero { height: calc(var(--stage-h) * 2.1); }
.sv-hero .sv-sticky { display: flex; align-items: center; justify-content: center; }
.sv-hero__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(64px, 12.5vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  will-change: transform, opacity;
}
.sv-hero__line--em { color: var(--maroon); }
.sv-hero__line--em em { text-transform: lowercase; font-size: 1.08em; }
.sv-hero__photos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sv-hero__photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(40, 20, 10, 0.18);
  will-change: translate, opacity;
}
/* Photos pop in when the hero comes into view. The pop uses filter: opacity() so it never
   fights the scroll fade, which sets plain opacity. */
.sv-js .sv-hero__photo { scale: 0.4; filter: opacity(0); }
.sv-js .sv-hero.is-in .sv-hero__photo { animation: sv-pop 1s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; animation-delay: calc(150ms + var(--i) * 110ms); }
@keyframes sv-pop { from { scale: 0.4; filter: opacity(0); } to { scale: 1; filter: opacity(1); } }

/* 0. Video hero: shrinks into a rounded card as it scrolls away. */
.sv-video { will-change: clip-path; }
.sv-video .hero__video { will-change: transform; }

.sv-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.sv-hero__cue i { display: block; width: 1px; height: 48px; background: currentColor; transform-origin: top; animation: sv-cue 2.2s ease-in-out infinite; }
@keyframes sv-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 2. Statement */
.sv-statement { padding: 0 0 18vh; }
.sv-drawline { position: relative; width: 1px; height: 26vh; margin: 0 auto 7vh; }
.sv-drawline i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(var(--draw, 1));
}
.sv-drawline::before,
.sv-drawline::after { content: ""; position: absolute; left: 50%; translate: -50% 0; border-radius: 50%; background: var(--ink); }
.sv-drawline::before { top: -3px; width: 5px; height: 5px; }
.sv-drawline::after { top: calc(var(--draw, 1) * 100% - 4px); width: 8px; height: 8px; }
.sv-statement__title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; }
.sv-statement__text { max-width: 36em; margin: 36px auto 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; color: var(--body); }
.sv-statement__aside { margin-top: 14vh; font-family: var(--serif); font-size: 19px; color: var(--muted); }

/* 3. Fly-through */
.sv-ring { height: calc(var(--stage-h) * 3.4); }
.sv-ring .sv-sticky { background: linear-gradient(var(--paper), var(--paper-deep)); }
.sv-ring__center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}
.sv-ring__title { max-width: 13em; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; }
.sv-ring__title em { color: var(--maroon); }
.sv-ring__field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sv-fly {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  will-change: translate, scale, opacity;
}
img.sv-fly { box-shadow: 0 10px 30px rgba(40, 20, 10, 0.15); }

/* 4. Lead-in + growing photo */
.sv-lead { padding: 16vh 0 12vh; }
.sv-lead__text { max-width: 19em; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 50px); line-height: 1.22; }
.sv-lead__text--muted { margin-top: 6px; color: #a0907a; }
.sv-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: 0.12em;
  font-family: var(--sans);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.sv-pill { padding-left: 16px; border-radius: 999px; background: var(--maroon); color: var(--cream); }
.sv-pill i { display: inline-flex; align-items: center; justify-content: center; width: 2.6em; height: 2.6em; margin-left: 8px; border-radius: 50%; background: var(--ink); font-style: normal; font-size: 1.1em; }

.sv-grow { height: calc(var(--stage-h) * 6.5); }
.sv-grow__minis { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sv-grow__minis > * {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: auto;
  box-shadow: 0 10px 30px rgba(40, 20, 10, 0.15);
  will-change: translate, opacity;
}
.sv-panel { position: absolute; inset: 0; margin: 0; will-change: clip-path; }
.sv-panel img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.sv-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(20, 8, 6, 0.72) 0%, rgba(20, 8, 6, 0.25) 45%, rgba(20, 8, 6, 0) 70%); }
.sv-js .sv-panel { clip-path: inset(100% 0 0 0); }
.sv-js .sv-panel[data-panel="0"] { clip-path: inset(30% 36%); }
.sv-panel[data-panel="0"] { z-index: 1; }
.sv-panel[data-panel="1"] { z-index: 2; }
.sv-panel[data-panel="2"] { z-index: 3; }
.sv-facts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 clamp(20px, 5vw, 72px) clamp(28px, 7vh, 72px); pointer-events: none; }
.sv-fact {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(28px, 7vh, 72px);
  max-width: 19em;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.22;
  color: var(--cream);
  opacity: 0;
  translate: 0 24px;
}
.sv-fact strong { display: block; font-weight: 400; font-size: 1.5em; line-height: 1.05; margin-bottom: 10px; }
.sv-fact em { color: var(--gold); }
.sv-card {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
  clip-path: inset(50% 50%);
}
.sv-card__text { font-family: var(--serif); font-size: clamp(26px, 3vw, 44px); text-align: center; color: var(--ink); opacity: 0; }

/* 5. Services */
.sv-services { padding: 14vh 0 0; }
.sv-services__intro { margin-bottom: 14vh; }
.sv-services__title { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.04; }
.sv-service { padding-bottom: 18vh; }
.sv-service__head { text-align: center; margin-bottom: 8vh; }
.sv-service__title { max-width: 12em; margin: 0 auto; font-size: clamp(46px, 7vw, 110px); line-height: 0.98; letter-spacing: -0.01em; }
.sv-service__sub { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--muted); }
.sv-service__media { margin: 0; }
.sv-service__frame {
  height: min(82vh, 820px);
  overflow: hidden;
  background: var(--paper-deep);
  clip-path: inset(var(--mi, 0%) var(--mx, 0%));
  will-change: clip-path;
}
.sv-service__frame img { width: 100%; height: 118%; object-fit: cover; translate: 0 var(--py, -6%); will-change: translate; }
.sv-service__media figcaption { margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sv-service__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 9vh;
}
.sv-service__text { grid-column: 1 / span 6; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.38; color: var(--ink); }
.sv-points { grid-column: 8 / -1; list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.sv-points li {
  counter-increment: pt;
  position: relative;
  padding: 18px 0 20px 56px;
  border-top: 1px solid var(--rule-strong);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.sv-points li:nth-child(2) { --delay: 120ms; }
.sv-points li:nth-child(3) { --delay: 240ms; }
.sv-points li::before {
  content: "0" counter(pt);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--maroon);
}
.sv-points strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 4px; }

/* Voices */
.sv-voices { margin: 0 0 18vh; padding: 16vh 0 20vh; background: var(--maroon); color: var(--cream); overflow: hidden; }
.sv-voices .sv-label { color: rgba(253, 246, 235, 0.65); }
.sv-voices__title { font-size: clamp(40px, 5vw, 76px); line-height: 1.04; color: #fff; }
.sv-voices__field { list-style: none; max-width: 1240px; margin: 10vh auto 0; padding: 0 32px; }
.sv-quote {
  width: min(30rem, 100%);
  margin-left: var(--x);
  padding: 30px 32px 26px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 0, 0, 0.28);
  translate: 0 calc(var(--speed) * var(--vp, 0) * -180px);
  will-change: translate;
}
.sv-quote + .sv-quote { margin-top: -2.5rem; }
.sv-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.28; }
.sv-quote span { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sv-js .sv-quote { opacity: 0; scale: 0.94; transition: opacity 0.9s ease, scale 1s cubic-bezier(0.16, 1, 0.3, 1); }
.sv-js .sv-quote.is-in { opacity: 1; scale: 1; }
.sv-quote:nth-child(even) { rotate: 1.2deg; }
.sv-quote:nth-child(odd) { rotate: -1deg; }

/* 6. Big quote */
.sv-bigquote { padding: 12vh 0 22vh; }
.sv-bigquote__text { margin: 0 0 40px; font-family: var(--serif); font-size: clamp(38px, 5.4vw, 84px); line-height: 1.08; color: var(--ink); }
.sv-bigquote__text em { color: var(--maroon); }
.sv-lit { transition: opacity 0.25s linear; }
.sv-js [data-lit] .sv-lit { opacity: 0.14; }
.sv-js [data-lit] .sv-lit.is-lit { opacity: 1; }

/* 7. Process timeline */
.sv-process { padding-top: 6vh; }
.sv-process__head { margin-bottom: 12vh; }
.sv-process__title { font-size: clamp(44px, 6vw, 96px); line-height: 1; }
.sv-process__title em { color: var(--maroon); }
.sv-process__sub { max-width: 30em; margin: 26px auto 0; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; color: var(--body); }

.sv-timeline { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 0 12vh; list-style: none; }
.sv-timeline__rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--rule-strong); }
.sv-timeline__fill { position: absolute; inset: 0; background: var(--maroon); transform-origin: top; transform: scaleY(var(--t, 1)); }
.sv-timeline__arrow { position: absolute; left: 50%; top: calc(var(--t, 1) * 100%); translate: -50% -60%; color: var(--maroon); overflow: visible; }

.sv-step { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: start; }
.sv-step + .sv-step { margin-top: 8vh; }
.sv-step__node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  color: var(--muted);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, scale 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.4);
}
.sv-step.is-on .sv-step__node { background: var(--maroon); border-color: var(--maroon); color: var(--cream); scale: 1.12; }
.sv-step__card { grid-row: 1; grid-column: 1; padding: 6px 28px 0 0; text-align: right; }
.sv-step:nth-child(odd) .sv-step__card { grid-column: 3; padding: 6px 0 0 28px; text-align: left; }
.sv-step__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); }
.sv-step__title { margin-top: 10px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
.sv-step__text { max-width: 26em; margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--body); }
.sv-step:not(:nth-child(odd)) .sv-step__text { margin-left: auto; }
.sv-js .sv-step__card { opacity: 0; translate: -40px 0; transition: opacity 0.8s ease, translate 1s cubic-bezier(0.16, 1, 0.3, 1); }
.sv-js .sv-step:nth-child(odd) .sv-step__card { translate: 40px 0; }
.sv-js .sv-step.is-on .sv-step__card { opacity: 1; translate: 0 0; }
.sv-step--final .sv-step__title { color: var(--maroon); font-size: clamp(34px, 3.6vw, 52px); }

.sv-cta { padding: 16vh 0; background: var(--maroon); color: var(--cream); }
.sv-cta__title { font-size: clamp(38px, 5vw, 72px); line-height: 1.05; color: #fff; }
.sv-cta__buttons { justify-content: center; margin-top: 40px; }

/* Section progress pill */
.sv-progress {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(253, 246, 235, 0.7);
  translate: -50% 140%;
  opacity: 0;
  transition: translate 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.sv-progress.is-shown { translate: -50% 0; opacity: 1; }
.sv-progress__count b { color: #fff; font-weight: 600; }
.sv-progress__name { margin-left: 8px; padding: 9px 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; text-transform: uppercase; }
.sv-progress__go { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--maroon); font-size: 16px; }
.sv-progress__go:hover { background: #fff; color: var(--maroon); text-decoration: none; }

/* Small screens */
@media (max-width: 760px) {
  .sv-hero__photo { width: calc(var(--w) * 2); }
  .sv-fly { width: calc(var(--w) * 2.2); }
  .sv-grow__minis > * { width: calc(var(--w) * 2); }
  .sv-service__body { grid-template-columns: minmax(0, 1fr); }
  .sv-service__text,
  .sv-points { grid-column: 1; }
  .sv-service__frame { height: 62vh; }
  .sv-voices__field { padding: 0 16px; }
  .sv-quote { margin-left: 0; }
  .sv-quote + .sv-quote { margin-top: 18px; }
  .sv-quote:nth-child(even) { margin-left: 8%; width: 92%; }

  .sv-timeline__rail { left: 27px; }
  .sv-step,
  .sv-step:nth-child(odd) { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .sv-step__node { grid-column: 1; }
  .sv-step__card,
  .sv-step:nth-child(odd) .sv-step__card { grid-column: 2; padding: 4px 0 0; text-align: left; }
  .sv-step:not(:nth-child(odd)) .sv-step__text { margin-left: 0; }
  .sv-js .sv-step__card,
  .sv-js .sv-step:nth-child(odd) .sv-step__card { translate: 24px 0; }
  .sv-progress__name { display: none; }
}

/* Reduced motion: keep the scroll-linked scenes (they only move when the visitor scrolls),
   but drop the effects that play by themselves. */
@media (prefers-reduced-motion: reduce) {
  .sv-js [data-reveal],
  .sv-js [data-split] .sv-w > span,
  .sv-js .sv-quote,
  .sv-js .sv-step__card { transition: none; opacity: 1; translate: none; scale: none; }
  .sv-hero__cue i,
  .sv-js .sv-hero.is-in .sv-hero__photo { animation: none; }
  .sv-js .sv-hero__photo { scale: 1; filter: none; }
}
