/* ==========================================================================
   Service pages — Branding, Social media & ads, Videography.
   Builds on styles.css, website-design.css and case-study.css.
   ========================================================================== */

.sv-hero .wd-hero-title {
  max-width: 14ch;
}

.sv-visual.wd-hero-visual {
  position: relative;
}

/* Shared mono label ------------------------------------------------------- */

.sv-mono {
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Branding hero: a small brand board -------------------------------------- */

.sv-board-mark,
.sv-board-word,
.sv-board-chips {
  position: absolute;
  margin: 0;
  box-shadow: 0 32px 70px -30px rgba(26, 26, 26, 0.35);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-board-mark {
  left: 0;
  top: 2%;
  width: 56%;
  transform: rotate(-1.5deg);
}

.sv-board-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.sv-board-word {
  right: 0;
  top: 10%;
  z-index: 1;
  width: 54%;
  padding: 6% 7%;
  background: var(--client-dark);
  transform: rotate(1.5deg);
}

.sv-board-word img {
  display: block;
  width: 100%;
  height: auto;
}

.sv-board-chips {
  right: 4%;
  bottom: 9%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 62%;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.12);
  transform: rotate(-0.5deg);
}

.sv-board-chips li {
  display: flex;
  flex-direction: column;
}

.sv-board-chips li + li {
  border-left: 1px solid var(--border);
}

.sv-board-chips li::before {
  content: "";
  display: block;
  aspect-ratio: 1 / 0.9;
  background: var(--chip);
}

.sv-board-chips span {
  padding: 8px 8px 9px;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sv-visual:hover .sv-board-mark { transform: rotate(-0.6deg) translateY(-4px); }
.sv-visual:hover .sv-board-word { transform: rotate(0.6deg) translateY(-6px); }

.sv-board .wd-redline--a {
  top: auto;
  bottom: 34%;
  left: -18px;
}

.sv-board .wd-redline--b {
  top: 0;
  right: 4%;
  bottom: auto;
}

/* Ads hero: results ledger ------------------------------------------------- */

.sv-ledger-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  padding: 40px 0 48px;
}

.sv-ledger-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  margin: 0;
  transform: rotate(3deg);
  box-shadow: 0 24px 50px -24px rgba(26, 26, 26, 0.35);
}

.sv-ledger-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.sv-ledger {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin-right: auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow:
    0 32px 70px -26px rgba(26, 26, 26, 0.3),
    0 10px 24px -12px rgba(232, 93, 44, 0.2);
  transform: rotate(-1deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-visual:hover .sv-ledger {
  transform: rotate(-0.2deg) translateY(-6px);
}

.sv-ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(26, 26, 26, 0.2);
  color: var(--text-muted);
}

.sv-ledger-head span:first-child {
  color: var(--orange);
}

.sv-ledger-rows {
  margin: 0;
}

.sv-ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.sv-ledger-row dt {
  color: var(--text-muted);
}

.sv-ledger-row dd {
  margin: 0;
  font-family: "roc-grotesk", "Roc Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sv-bar {
  grid-column: 1 / -1;
  height: 12px;
  background: rgba(26, 26, 26, 0.06);
}

.sv-bar::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--charcoal);
  transform-origin: left;
  animation: sv-bar 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.sv-ledger-row--accent dd {
  color: var(--orange);
}

.sv-ledger-row--accent .sv-bar::before {
  background: var(--orange);
  animation-delay: 1.1s;
}

@keyframes sv-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sv-ledger-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.sv-ledger-total span {
  max-width: 12ch;
  color: var(--text-muted);
}

.sv-ledger-total strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(3.25rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.sv-ledger-wrap .wd-redline--b {
  right: 0;
  bottom: 8%;
}

/* Ad creative frame (proof section) ---------------------------------------- */

.sv-adframe {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: 0 32px 70px -30px rgba(26, 26, 26, 0.32);
}

.sv-adframe-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f3f1ec;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  color: var(--text-muted);
}

.sv-adframe > img {
  display: block;
  width: 100%;
  height: auto;
}

.sv-adframe figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.sv-adframe figcaption img {
  flex: none;
  width: 44px;
  height: 44px;
}

.sv-adframe figcaption b {
  display: block;
  font-family: "roc-grotesk", "Roc Grotesk", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sv-adframe figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Big results band --------------------------------------------------------- */

.sv-results-note {
  margin: clamp(24px, 3vw, 32px) 0 0;
  max-width: 60ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.5);
}

/* Videography hero: three vertical frames --------------------------------- */

.sv-phones {
  aspect-ratio: 1.12;
}

.sv-phone {
  position: absolute;
  top: 0;
  width: 37%;
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: 0 32px 70px -28px rgba(26, 26, 26, 0.4);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0.35) 0%, transparent 22%, transparent 70%, rgba(15, 14, 13, 0.55) 100%);
}

.sv-phone--1 {
  left: 2%;
  top: 9%;
  transform: rotate(-6deg);
}

.sv-phone--2 {
  left: 31.5%;
  z-index: 2;
  width: 40%;
}

.sv-phone--3 {
  right: 0;
  top: 11%;
  transform: rotate(6deg);
}

.sv-phone--1 img { object-position: 30% 50%; }
.sv-phone--2 img { object-position: 46% 50%; }

.sv-visual:hover .sv-phone--1 { transform: rotate(-7.5deg) translateX(-6px); }
.sv-visual:hover .sv-phone--2 { transform: translateY(-6px); }
.sv-visual:hover .sv-phone--3 { transform: rotate(7.5deg) translateX(6px); }

.sv-phone-rec {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5f2ec;
  font-size: 0.5625rem;
}

.sv-phone-rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: sv-blink 1.6s steps(2, start) infinite;
}

@keyframes sv-blink {
  to { visibility: hidden; }
}

.sv-phone-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  height: 2px;
  background: rgba(245, 242, 236, 0.3);
}

.sv-phone-progress::before {
  content: "";
  display: block;
  height: 100%;
  background: #f5f2ec;
  transform-origin: left;
  animation: sv-progress 9s linear infinite;
}

.sv-phone--1 .sv-phone-progress::before { animation-delay: -3s; }
.sv-phone--3 .sv-phone-progress::before { animation-delay: -6s; }

@keyframes sv-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sv-phones .wd-redline--a {
  top: auto;
  bottom: 18%;
  left: -18px;
  z-index: 3;
}

.sv-phones .wd-redline--b {
  right: -6px;
  bottom: 4%;
  z-index: 3;
}

/* Reels grid --------------------------------------------------------------- */

.sv-reels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-reel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--client-dark);
  isolation: isolate;
}

.sv-reel-frame {
  display: block;
}

.sv-reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.sv-reel-play .sv-reel-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -32px 0 0 -32px;
}

.sv-reel-poster {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-reel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 65, 64, 0.1) 0%, rgba(11, 65, 64, 0.2) 45%, rgba(11, 65, 64, 0.92) 100%);
}

.sv-reel:hover .sv-reel-poster {
  transform: scale(1.04);
}

.sv-reel-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(245, 242, 236, 0.94);
  color: var(--client-dark);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease;
}

.sv-reel-play:hover .sv-reel-play-icon {
  transform: scale(1.08);
  background: var(--orange);
  color: var(--white);
}

.sv-reel-play:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.sv-reel-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: rgba(15, 14, 13, 0.6);
  color: #f5f2ec;
  pointer-events: none;
}

.sv-reel-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  margin: 0;
  font-family: "roc-grotesk", "Roc Grotesk", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f5f2ec;
  pointer-events: none;
  text-wrap: balance;
}

.sv-reels-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sv-reels-foot p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Related services --------------------------------------------------------- */

.sv-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--charcoal);
}

.sv-related li + li {
  border-left: 1px solid var(--border);
}

.sv-related a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 28px clamp(18px, 2.4vw, 32px) 32px;
  transition: background 0.25s ease;
}

.sv-related li:first-child a {
  padding-left: 0;
}

.sv-related li:first-child a:hover {
  padding-left: clamp(18px, 2.4vw, 32px);
}

.sv-related a:hover {
  background: var(--bg-light);
}

.sv-related-num {
  color: var(--orange);
}

.sv-related-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: "roc-grotesk", "Roc Grotesk", sans-serif;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sv-related-title span {
  font-family: "DM Sans", sans-serif;
  font-size: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.sv-related a:hover .sv-related-title span {
  color: var(--orange);
  transform: translateX(4px);
}

.sv-related-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.sv-related a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1000px) {
  .sv-reels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sv-visual.wd-hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .sv-related {
    grid-template-columns: 1fr;
  }

  .sv-related li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .sv-related a,
  .sv-related li:first-child a,
  .sv-related li:first-child a:hover,
  .sv-related a:hover {
    padding-left: 0;
    padding-right: 0;
    background: none;
  }
}

@media (max-width: 640px) {
  .sv-board .wd-redline--a,
  .sv-phones .wd-redline--a {
    left: 0;
  }

  .sv-board .wd-redline--b {
    display: none;
  }

  .sv-board-chips span {
    display: none;
  }

  .sv-ledger-wrap {
    padding: 72px 0 40px;
  }

  .sv-ledger-photo {
    width: 52%;
  }

  .sv-ledger-wrap .wd-redline--b {
    bottom: 0;
  }

  .sv-reels {
    gap: 12px;
  }

  .sv-reel-play-icon {
    width: 52px;
    height: 52px;
  }

  .sv-reel-play .sv-reel-play-icon {
    margin: -26px 0 0 -26px;
  }

  .sv-reel-caption {
    left: 10px;
    right: 10px;
    bottom: 12px;
    font-size: 0.9375rem;
  }

  .sv-reel-tag {
    top: 8px;
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-board-mark,
  .sv-board-word,
  .sv-board-chips,
  .sv-ledger,
  .sv-phone,
  .sv-reel-poster,
  .sv-reel-play-icon {
    transition: none;
  }

  .sv-bar::before,
  .sv-phone-rec::before,
  .sv-phone-progress::before {
    animation: none;
  }
}

/* Inline links in brand notes */
.cs-type-note a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
