/* ═══════════════════════════════════════
   ECHO — service-page.css
   ═══════════════════════════════════════ */


/* ── Page Accent Variables (set per page on <body>) ── */
/* Paid Media  → --page-accent: #5b2be0; --page-glow: #d8c8f8; */
/* Strategy    → --page-accent: #3d1fa8; --page-glow: #c4baf5; */
/* Creative    → --page-accent: #8b2be0; --page-glow: #e8c8f8; */
/* Analytics   → --page-accent: #2b5be0; --page-glow: #c8d8f8; */


body {
  --page-accent: #5b2be0;
  --page-glow:   #d8c8f8;
}


/* ── Stacking Context Fix ── */
main {
  position: relative;
  z-index: 0;
}


/* ═══════════════════════════════════════
   SERVICE HERO
   ═══════════════════════════════════════ */
.service-hero {
  position: relative;
  z-index: 0;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: radial-gradient(ellipse at 80% 40%, var(--page-glow) 0%, #eeeaf5 60%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}


/* ── Echo rings decoration in hero ── */
.service-hero::before,
.service-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--page-accent);
  opacity: 0.08;
  pointer-events: none;
  animation: heroRingPulse 6s ease-in-out infinite;
}
.service-hero::before {
  width: 600px;
  height: 600px;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
}
.service-hero::after {
  width: 900px;
  height: 900px;
  right: -300px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1s;
  opacity: 0.05;
}


@keyframes heroRingPulse {
  0%, 100% { transform: translateY(-50%) scale(1);    opacity: 0.08; }
  50%       { transform: translateY(-50%) scale(1.04); opacity: 0.13; }
}


/* ── Ghost page title behind hero ── */
.service-hero__inner {
  position: relative;
  z-index: 1;
}
.service-hero__inner::before {
  content: attr(data-title);
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  font-style: italic;
  color: var(--page-accent);
  opacity: 0.04;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.03em;
  line-height: 1;
  z-index: 0;
  user-select: none;
}


.service-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.service-back {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.service-back:hover { color: var(--page-accent); }
.service-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--page-accent);
  letter-spacing: 0.08em;
}
.service-hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}


/* Ghost echo layers on the hero title */
.service-hero__title::before,
.service-hero__title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-head);
  font-size: inherit;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--page-accent);
  pointer-events: none;
  white-space: pre-wrap;
  z-index: -1;
}
.service-hero__title::before {
  opacity: 0.07;
  transform: translate(5px, 4px);
  animation: titleEcho1 7s ease-in-out infinite;
}
.service-hero__title::after {
  opacity: 0.03;
  transform: translate(10px, 8px);
  animation: titleEcho2 7s ease-in-out infinite;
}
@keyframes titleEcho1 {
  0%, 100% { transform: translate(5px, 4px);  opacity: 0.07; }
  50%       { transform: translate(7px, 6px);  opacity: 0.11; }
}
@keyframes titleEcho2 {
  0%, 100% { transform: translate(10px, 8px);  opacity: 0.03; }
  50%       { transform: translate(14px, 11px); opacity: 0.05; }
}


.service-hero__sub {
  max-width: 55ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.service-hero .btn {
  position: relative;
  z-index: 1;
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: #fff;
}
.service-hero .btn:hover {
  filter: brightness(0.88);
  box-shadow:
    0 0 0 4px rgba(91, 43, 224, 0.15),
    0 0 0 8px rgba(91, 43, 224, 0.06);
}

/* Custom first-viewport service heroes */
.service-hero--custom .service-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.service-hero__content,
.service-hero__visual {
  position: relative;
  z-index: 1;
}
.service-hero--custom .service-hero__inner::before {
  display: none;
}
.service-hero--custom .service-hero__title {
  font-size: clamp(2.9rem, 4.8vw, 4.6rem);
  max-width: 13ch;          /* was 9.5ch: headings stacked 1–2 words a line */
  text-wrap: balance;
}
.service-hero--custom .service-hero__title::before,
.service-hero--custom .service-hero__title::after {
  display: none;
}
.service-hero--ga .service-hero__title,
.service-hero--ma .service-hero__title,
.service-hero--ga4 .service-hero__title,
.service-hero--li .service-hero__title,
.service-hero--mpx .service-hero__title,
.service-hero--dash .service-hero__title {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
}
.service-hero--ga .service-hero__title::before,
.service-hero--ga .service-hero__title::after,
.service-hero--ma .service-hero__title::before,
.service-hero--ma .service-hero__title::after,
.service-hero--ga4 .service-hero__title::before,
.service-hero--ga4 .service-hero__title::after,
.service-hero--li .service-hero__title::before,
.service-hero--li .service-hero__title::after,
.service-hero--mpx .service-hero__title::before,
.service-hero--mpx .service-hero__title::after,
.service-hero--dash .service-hero__title::before,
.service-hero--dash .service-hero__title::after {
  display: none;
}
.service-visual {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(30, 16, 64, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.22));
  box-shadow: 0 18px 48px rgba(30,16,64,0.08);
  overflow: hidden;
  padding: 1.35rem;
}
.service-visual::before,
.service-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--page-accent);
  opacity: 0.13;
  pointer-events: none;
}
.service-visual::before {
  width: 280px;
  height: 280px;
  right: -120px;
  top: -100px;
}
.service-visual::after {
  width: 390px;
  height: 390px;
  right: -170px;
  top: -150px;
  opacity: 0.055;
}
.service-visual__label {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}


/* Service-specific hero instruments */
.service-instrument {
  position: relative;
  z-index: 1;
  min-height: 282px;
}
.instrument-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.instrument-caption b {
  color: var(--page-accent);
  font-weight: 500;
}
.positioning-map {
  height: 260px;
  border-bottom: 1px solid rgba(30,16,64,0.12);
  border-left: 1px solid rgba(30,16,64,0.12);
  background:
    linear-gradient(90deg, rgba(30,16,64,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(30,16,64,0.05) 1px, transparent 1px);
  background-size: 25% 25%;
  border-radius: 0 0 0 12px;
  position: relative;
}
.positioning-map__zone {
  position: absolute;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.positioning-map__zone--tl { left: 1rem; top: 1rem; }
.positioning-map__zone--br { right: 1rem; bottom: 1rem; color: var(--page-accent); }
.positioning-map__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--page-accent) 12%, transparent);
}
.positioning-map__dot--weak { left: 22%; top: 62%; opacity: 0.28; }
.positioning-map__dot--sharp { right: 18%; top: 22%; }
.pipeline-wave {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.75rem;
  height: 245px;
  padding-top: 1rem;
}
.pipeline-wave__bar {
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-accent) 78%, #fff), color-mix(in srgb, var(--page-accent) 20%, transparent));
  height: var(--h);
  position: relative;
}
.pipeline-wave__bar span {
  position: absolute;
  left: 50%;
  bottom: -1.75rem;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.funnel-stack {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.5rem;
}
.funnel-stack__stage {
  height: 48px;
  margin-inline: var(--inset);
  border-radius: 8px;
  background: color-mix(in srgb, var(--page-accent) var(--mix), #fff);
  color: color-mix(in srgb, var(--page-accent) 80%, #1e1040);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.message-editor {
  border: 1px solid rgba(30,16,64,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.74);
  overflow: hidden;
}
.message-editor__bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(30,16,64,0.10);
}
.message-editor__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--page-accent) 45%, #fff);
}
.message-editor__body {
  padding: 1.2rem;
  display: grid;
  gap: 0.72rem;
}
.message-line {
  height: 10px;
  border-radius: 99px;
  background: rgba(30,16,64,0.10);
  width: var(--w);
}
.message-line--accent {
  background: color-mix(in srgb, var(--page-accent) 42%, transparent);
}
.message-comment {
  margin-top: 0.5rem;
  border-left: 2px solid var(--page-accent);
  padding-left: 0.8rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}
.director-frame {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.9rem;
}
.director-monitor {
  min-height: 205px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(30,16,64,0.94), rgba(30,16,64,0.72)),
    radial-gradient(circle at 20% 20%, var(--page-accent), transparent 45%);
  position: relative;
  overflow: hidden;
}
.director-monitor::before {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255,255,255,0.28);
}
.director-monitor::after {
  content: 'FRAME 07';
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: rgba(255,255,255,0.46);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
}
.director-strip {
  display: grid;
  gap: 0.65rem;
}
.director-line {
  position: absolute; left: 22%; top: 50%; right: 22%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.1;
  color: #f5f1ff;
}
.director-line em { font-style: italic; color: #cdb6ff; }
/* the same frame, in four formats: one idea across every asset */
.d-fmt {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(30,16,64,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  animation: dFmt 6s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 1.5s);
}
.d-fmt--1 { --d: 1; } .d-fmt--2 { --d: 2; } .d-fmt--3 { --d: 3; }
.d-thumb {
  grid-row: span 2;
  width: 28px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(30,16,64,0.94), rgba(30,16,64,0.7)), radial-gradient(circle at 20% 20%, var(--page-accent), transparent 50%);
  position: relative;
}
.d-thumb::after { content: ''; position: absolute; left: 22%; right: 30%; top: 45%; height: 2px; border-radius: 2px; background: rgba(205,182,255,0.9); }
.d-fmt--1 .d-thumb { width: 18px; height: 18px; }
.d-fmt--2 .d-thumb { width: 11px; height: 20px; }
.d-fmt--3 .d-thumb { width: 22px; height: 18px; }
.d-fmt b { font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; color: var(--page-accent); }
.d-fmt small { font-size: 0.72rem; color: var(--text-muted); line-height: 1.2; }
@keyframes dFmt {
  0%, 22%, 100% { border-color: rgba(30,16,64,0.12); box-shadow: none; }
  6%, 16% { border-color: var(--page-accent); box-shadow: 0 6px 18px -10px var(--page-accent); }
}
@media (prefers-reduced-motion: reduce) { .d-fmt { animation: none; } }
.identity-specimen {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
}
.identity-mark {
  min-height: 230px;
  border-radius: 18px;
  background: #1e1040;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(5rem, 10vw, 7rem);
  font-style: italic;
}
.identity-kit {
  display: grid;
  gap: 0.75rem;
}
.identity-kit__swatch {
  border-radius: 12px;
  background: var(--c);
  border: 1px solid rgba(30,16,64,0.12);
}
.identity-kit__type {
  border-radius: 12px;
  background: rgba(255,255,255,0.66);
  padding: 0.8rem;
  font-family: var(--font-head);
  font-size: 1.55rem;
}


@media (max-width: 940px) {
  .service-hero--custom .service-hero__inner {
    grid-template-columns: minmax(0, 1fr);   /* minmax: a wide mockup must not widen the hero past the screen */
  }
  .service-hero--custom .service-hero__title { max-width: none; }   /* the 9.5ch desktop measure broke it into 1–2 words per line */
  .service-hero__visual { min-width: 0; }
  .service-hero__visual {
    max-width: 620px;
  }
}
@media (max-width: 560px) {
  .service-visual {
    min-height: auto;
    padding: 1rem;
  }
  
  
}


/* ═══════════════════════════════════════
   SERVICE DETAIL — Echo Signal Layout
   ═══════════════════════════════════════ */
.service-detail.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.service-detail__header {
  max-width: 620px;
  margin-bottom: 3rem;
}
.service-detail__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
}


/* ── Signal List ── */
.sf-list {
  display: flex;
  flex-direction: column;
}


/* ── Per-item reveal (driven by JS sfObserver) ── */
.sf-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 3rem;
  position: relative;
  padding: 2.75rem 0;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sf-item.visible {
  opacity: 1;
  transform: none;
}


/* ── Signal Column ── */
.sf-item__signal {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.sf-item__node {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(91, 43, 224, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: var(--bg);
  z-index: 2;
  transition: border-color var(--transition), background var(--transition);
}
.sf-item:hover .sf-item__node {
  border-color: var(--accent);
  background: rgba(91, 43, 224, 0.06);
}


/* ── Echo Rings — pulse outward on hover ── */
.sf-node__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  width: 100%;
  height: 100%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}
.sf-item:hover .sf-node__ring--1 { animation: sfEcho 2s ease-out infinite 0s; }
.sf-item:hover .sf-node__ring--2 { animation: sfEcho 2s ease-out infinite 0.55s; }
.sf-item:hover .sf-node__ring--3 { animation: sfEcho 2s ease-out infinite 1.1s; }


@keyframes sfEcho {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}


.sf-node__num {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  opacity: 0.45;
  position: relative;
  z-index: 1;
  transition: opacity var(--transition);
}
.sf-item:hover .sf-node__num { opacity: 1; }


/* ── Connecting line ── */
.sf-item__line {
  flex: 1;
  width: 1px;
  margin-top: 0.4rem;
  background: linear-gradient(
    to bottom,
    rgba(91, 43, 224, 0.25) 0%,
    rgba(91, 43, 224, 0.04) 100%
  );
  transition: background var(--transition);
}
.sf-item:hover .sf-item__line {
  background: linear-gradient(
    to bottom,
    rgba(91, 43, 224, 0.55) 0%,
    rgba(91, 43, 224, 0.06) 100%
  );
}


/* ── Body ── */
.sf-item__body {
  position: relative;
  padding-bottom: 0.5rem;
  overflow: hidden;
}


/* Ghost number echo */
.sf-item__ghost {
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-58%);
  font-family: var(--font-head);
  font-size: 9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  opacity: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sf-item:hover .sf-item__ghost {
  opacity: 0.045;
  transform: translateY(-50%);
}


.sf-item__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.sf-item:hover .sf-item__title { color: var(--accent); }


.sf-item__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 1.1rem;
}


.sf-item__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.22rem 0.85rem;
  opacity: 0.35;
  transition: opacity var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition);
}
.sf-item:hover .sf-item__tag {
  opacity: 1;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(91,43,224,0.12), 0 0 0 7px rgba(91,43,224,0.05);
}


/* ── Sub-page link (items with dedicated pages) ── */


/* Shimmer sweep */
.sf-item__body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91, 43, 224, 0.04) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.sf-item:hover .sf-item__body::after { transform: translateX(120%); }


@media (max-width: 768px) {
  .sf-item { grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 2rem 0; }
  .sf-item__node { width: 2.25rem; height: 2.25rem; }
  .sf-item__ghost { font-size: 6rem; }
  .sf-item__title { font-size: 1.4rem; }
   /* always visible on touch */
}
@media (max-width: 480px) {
  .sf-item { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .sf-item__ghost { display: none; }
}


/* ── Sub-services strip ── */
.sub-services {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}


@media (max-width: 600px) {
  .sub-services { flex-direction: column; align-items: flex-start; gap: 1rem; }
}


/* ═══════════════════════════════════════
   CTA STRIP — Echo rings inside
   ═══════════════════════════════════════ */
.service-cta {
  background: var(--page-accent);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.service-cta::before,
.service-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  top: 50%;
  left: -5%;
}
.service-cta::before {
  width: 500px;
  height: 500px;
  transform: translateY(-50%);
  animation: ctaRing 5s ease-in-out infinite;
}
.service-cta::after {
  width: 800px;
  height: 800px;
  transform: translateY(-50%);
  animation: ctaRing 5s ease-in-out infinite 0.8s;
  opacity: 0.6;
}
@keyframes ctaRing {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%       { transform: translateY(-50%) scale(1.03); }
}
.service-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}
.service-cta .btn--primary {
  background: #ffffff;
  color: var(--page-accent);
  flex-shrink: 0;
}
.service-cta .btn--primary:hover {
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2), 0 0 0 8px rgba(255,255,255,0.08);
}


/* ═══════════════════════════════════════
   SERVICES HUB PAGE
   ═══════════════════════════════════════ */


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  
  .service-cta__inner     { flex-direction: column; align-items: flex-start; }
  
  
  .service-hero__inner::before { display: none; }
}


/* ── Deliverables ── */
.deliverables { background: var(--surface); }


/* ── Process ── */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.process__steps::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.15;
}
.process__step { padding-bottom: 1rem; }
.process__step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  margin-bottom: 1.25rem;
  transition: opacity var(--transition);
}
.process__step:hover .process__step-dot { opacity: 1; }
.process__step-num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.4rem;
  display: block;
}
.process__step-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.process__step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.process__step-time {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(91,43,224,0.07);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}


/* ── Timeline ── */
.timeline { background: var(--surface); }


/* ── Who It's For ── */
.for-who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}
.for-who__ideal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.for-who__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(91,43,224,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.for-who__icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; font-size: 0.9rem; }
.for-who__text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.for-who__not {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.for-who__not h3,
.for-who__not h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.for-who__not ul { display: flex; flex-direction: column; gap: 0.5rem; }
.for-who__not li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
}
.for-who__not li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  opacity: 0.4;
}


/* ── KPIs ── */
.kpis { background: var(--surface); }


/* ── FAQ ── */
.faq__list {
  max-width: 720px;
  margin: 2.5rem auto 0;
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  width: 100%;
  background: none; border: none;
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.faq__question:hover { color: var(--accent); }
.faq__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color var(--transition), transform var(--transition);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: transform var(--transition), opacity var(--transition);
}
.faq__icon::before { width: 8px; height: 1px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq__icon::after  { width: 1px; height: 8px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq__item.open .faq__icon { border-color: var(--accent); transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__item.open .faq__answer { max-height: 300px; }
.faq__answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 1.25rem;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__steps::before { display: none; }
  
  
  
  .for-who__grid { grid-template-columns: 1fr; }
  
}
@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   MOBILE FIXES — service pages
   ═══════════════════════════════════════ */

/* ── Service hero ── */
@media (max-width: 768px) {
  .service-hero { padding-top: 5.5rem; min-height: auto; padding-bottom: 3rem; }
  .service-hero__title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .service-hero__sub { font-size: 0.9rem; }
  .service-back { font-size: 0.78rem; }
}

/* ── Process steps — stack at 768px ── */
@media (max-width: 768px) {
  .process__steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__step { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .process__step:last-child { border-bottom: none; }
}

/* ── KPIs grid ── */


/* ── Deliverables grid ── */


/* ── For-who grid ── */
@media (max-width: 768px) {
  .for-who__grid { grid-template-columns: 1fr; gap: 2rem; }
  .for-who__ideal { gap: 1.25rem; }
}

/* ── Timeline ── */


/* ── FAQ ── */
@media (max-width: 480px) {
  .faq__question { padding: 1.1rem 0; }
}

/* ── Service CTA ── */
@media (max-width: 480px) {
  .service-cta__title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .service-cta__inner { flex-direction: column; text-align: center; align-items: center; gap: 1.5rem; }
}

/* ── Dark signature visuals on service pages ── */
/* Paid Media auction, Strategy spectrum, Creative brief, Analytics stream */
@media (max-width: 680px) {
  /* Bid auction — 3 cols → 1 col */
  

  /* Strategy positioning spectrum */
  
  

  /* Creative brief */
  

  /* Analytics stream */
  

  /* Services pillars on services.html */
  
  
}


/* ── About page specific ── */

@media (max-width: 480px) {
  
  
  .about-hero__headline { font-size: clamp(3rem, 14vw, 7rem); }
  .about-manifesto__quote { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .about-cta__inner { padding: 2rem 1.25rem; }
  
  
}

/* ── Section label spacing on mobile ── */
@media (max-width: 480px) {
  .section-label { font-size: 0.72rem; }
  .service-detail__lead { font-size: 0.88rem; }
}

/* ── Prevent iOS font size override ── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}


/* ═══════════════════════════════════════
   SVCX — service-page redesign system
   (docs/redesign/service-pages-redesign-spec.md)
   ═══════════════════════════════════════ */

/* ── Answer capsule (AEO unit) ── */
.svcx-capsule {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: -1rem 0 2.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--page-accent, var(--accent));
}

/* ── TL;DR block ── */
.svcx-tldr {
  max-width: 68ch;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.svcx-tldr strong { color: var(--text); }

/* ── Proof strip under hero ── */
.svcx-proofstrip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  padding: 0.85rem 0;
}
.svcx-proofstrip__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.5rem 1.1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
}
.svcx-proofstrip__inner b { color: var(--page-accent, var(--accent)); font-weight: 500; }

/* ── Deliverables bento ── */
.svcx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.svcx-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.svcx-card:hover {
  border-color: var(--page-accent, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(30,16,64,0.10);
}
.svcx-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.svcx-card__node {
  position: relative;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--page-accent, var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.svcx-card__node span {
  font-family: var(--font-head);
  font-size: 0.7rem; font-weight: 700; font-style: italic;
  color: var(--page-accent, var(--accent));
}
.svcx-card__node i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--page-accent, var(--accent));
  opacity: 0; pointer-events: none;
}
.svcx-card:hover .svcx-card__node i:nth-child(1) { animation: svcxEcho 1.8s ease-out infinite; }
.svcx-card:hover .svcx-card__node i:nth-child(2) { animation: svcxEcho 1.8s ease-out infinite 0.55s; }
@keyframes svcxEcho {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
.svcx-title {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 600; line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.svcx-card--featured .svcx-title { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.svcx-body { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.svcx-get {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--page-accent, var(--accent));
  margin-top: 0.9rem;
}
.svcx-card__visual {
  background: var(--text);
  border-radius: 10px;
  padding: 1.1rem;
}
/* caption-only visuals: echo rings + the caption inside the panel */
.svcx-card__visual:has(> .instrument-caption:only-child) {
  position: relative;
  overflow: hidden;
  min-height: 9rem;
  background:
    repeating-radial-gradient(circle at 78% 50%, transparent 0 22px, rgba(242,237,255,0.10) 22px 23px),
    var(--text);
}
.svcx-card__visual > .instrument-caption:only-child {
  left: 1.1rem;
  bottom: 1rem;
  color: rgba(242,237,255,0.6);
}
.svcx-card__visual > .instrument-caption:only-child b {
  color: #c9b8ff;
  color: color-mix(in srgb, var(--page-accent, var(--accent)) 45%, #fff);
}
.svcx-card.reveal { transition-delay: calc(var(--sx-i, 0) * 0.1s); }

/* ── Signal path (process) ── */
.svcx-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.svcx-step { position: relative; transition-delay: calc(var(--sx-i, 0) * 0.12s); }
.svcx-step__node {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--page-accent, var(--accent));
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
  z-index: 1;
}
.svcx-step__node span {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700; font-style: italic;
  color: var(--page-accent, var(--accent));
}
.svcx-step__node i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--page-accent, var(--accent));
  opacity: 0; pointer-events: none;
}
.svcx-step:hover .svcx-step__node i:nth-child(1) { animation: svcxEcho 1.8s ease-out infinite; }
.svcx-step:hover .svcx-step__node i:nth-child(2) { animation: svcxEcho 1.8s ease-out infinite 0.55s; }
.svcx-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 1.375rem;
  left: 3.4rem; right: -1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--page-accent, var(--accent)), transparent);
  opacity: 0.35;
}
.svcx-step__title {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.svcx-step__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.7rem; }
.svcx-step__get {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--page-accent, var(--accent));
  margin-bottom: 0.4rem;
}
.svcx-step__time {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.svcx-path__cta { margin-top: 2.75rem; text-align: center; }

/* ── Related services ── */
.svcx-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.svcx-related a {
  display: block;
  padding: 1.15rem 1.3rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.svcx-related a:hover { border-color: var(--page-accent, var(--accent)); transform: translateY(-2px); }
.svcx-related b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.svcx-related span { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .svcx-path { grid-template-columns: 1fr 1fr; }
  .svcx-step:not(:last-child)::before { display: none; }
  .svcx-related { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .svcx-grid { grid-template-columns: 1fr; }
  .svcx-card--featured { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .svcx-path { grid-template-columns: 1fr; }
}
