/* ═══════════════════════════════════════
   ECHO — index.css
   Homepage only styles
   ═══════════════════════════════════════ */


/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 7rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 75% 50%, #d8c8f8 0%, transparent 65%);
  overflow: hidden;
}
.hero-echo-bg {
  position: absolute;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
}
.hero-ring {
  position: absolute; border-radius: 50%; opacity: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  animation: hero-echo-pulse 7s ease-out infinite;
}
.hero-ring--1 { width: 300px;  height: 300px;  animation-delay: 0s;   border: 1px solid rgba(91,43,224,.30); }
.hero-ring--2 { width: 600px;  height: 600px;  animation-delay: 1.4s; border: 1px solid rgba(91,43,224,.22); }
.hero-ring--3 { width: 900px;  height: 900px;  animation-delay: 2.8s; border: 1px solid rgba(91,43,224,.14); }
.hero-ring--4 { width: 1200px; height: 1200px; animation-delay: 4.2s; border: 1px solid rgba(91,43,224,.08); }
.hero-ring--5 { width: 1600px; height: 1600px; animation-delay: 5.6s; border: 1px solid rgba(91,43,224,.04); }
@keyframes hero-echo-pulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring { animation: none; opacity: .04; }
}
.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 4rem;
}
.hero__tag {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
  opacity: 0; animation: wordFadeUp 0.6s ease 0.05s forwards;
}

/* BUG FIX 1 — font-size reduced from clamp(3.5rem, 9vw, 8rem) to prevent
   4-line stack on the new longer headline */
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.75rem; max-width: 18ch;
  color: var(--text); position: relative;
}

/* BUG FIX 2 — ::before and ::after had the old font-size hardcoded,
   so the echo ghost was oversized vs the headline. Now matches. */
.hero__headline::before,
.hero__headline::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch; white-space: pre-wrap;
  pointer-events: none; color: var(--accent); z-index: -1;
}
.hero__headline::before { opacity: 0.04; transform: translate(3px, 3px); animation: echoGhost1 6s ease-in-out infinite; }
.hero__headline::after  { opacity: 0.02; transform: translate(6px, 5px); animation: echoGhost2 6s ease-in-out infinite; }
@keyframes echoGhost1 {
  0%, 100% { transform: translate(3px, 3px); opacity: 0.04; }
  50%       { transform: translate(4px, 4px); opacity: 0.06; }
}
@keyframes echoGhost2 {
  0%, 100% { transform: translate(6px, 5px);  opacity: 0.02; }
  50%       { transform: translate(7px, 6px);  opacity: 0.03; }
}
.hero__headline em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, #9b6dff, #5b2be0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__headline .word {
  display: inline-block; opacity: 0; transform: translateY(20px);
  animation: wordFadeUp 0.6s ease forwards;
}

/* BUG FIX 3 — only 6 delays were defined but the headline now has 9 words
   (Your / brand, / Your / story / — / resonates / with / échO / .)
   Missing delays meant words 7–9 all fired immediately with no stagger */
.hero__headline .word:nth-child(1) { animation-delay: 0.10s; }
.hero__headline .word:nth-child(2) { animation-delay: 0.22s; }
.hero__headline .word:nth-child(3) { animation-delay: 0.34s; }
.hero__headline .word:nth-child(4) { animation-delay: 0.46s; }
.hero__headline .word:nth-child(5) { animation-delay: 0.58s; }
.hero__headline .word:nth-child(6) { animation-delay: 0.70s; }
.hero__headline .word:nth-child(7) { animation-delay: 0.82s; }
.hero__headline .word:nth-child(8) { animation-delay: 0.94s; }
.hero__headline .word:nth-child(9) { animation-delay: 1.06s; }

@keyframes wordFadeUp { to { opacity: 1; transform: translateY(0); } }
.hero__sub {
  max-width: 52ch; color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 2.5rem; opacity: 0; animation: wordFadeUp 0.6s ease 1.2s forwards;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: wordFadeUp 0.6s ease 1.35s forwards; }


/* ── Blob ── */
.hero__blob { position: absolute; top: 0; right: 0; width: 55%; height: 100%; pointer-events: none; overflow: hidden; z-index: 1; }
.blob {
  position: absolute; top: 50%; right: -5%;
  transform: translateY(-50%);
  width: clamp(400px, 55vw, 750px); aspect-ratio: 1;
  background: radial-gradient(ellipse at 40% 40%, rgba(180,130,255,.45) 0%, rgba(120,60,240,.2) 40%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: blobFloat 8s ease-in-out infinite, blobMorph 12s ease-in-out infinite;
  filter: blur(40px);
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-53%) translateX(-2%); }
}
@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  25%       { border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; }
  50%       { border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
  75%       { border-radius: 70% 30% 60% 40% / 50% 50% 60% 40%; }
}


/* ── Mantra Bar ── */
.hero__mantra-bar {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  background: rgba(245,243,250,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__mantra-inner { display: flex; justify-content: center; }
.hero__mantra {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero__mantra.is-fading {
  opacity: 0;
  transform: translateY(6px);
}
.hero__mantra em { font-style: italic; }


/* ── Services ── */
.services { background: var(--surface); }
.services__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto; gap: 1.5px;
  background: var(--border); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.service-card {
  background: var(--surface); padding: clamp(1.75rem, 3vw, 2.75rem);
  position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  opacity: 0; transform: translateY(24px);
  transition: background var(--transition), opacity 0.6s ease calc(var(--card-i,0)*.1s), transform 0.6s ease calc(var(--card-i,0)*.1s);
}
.service-card.visible { opacity: 1; transform: none; }
.service-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.service-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.service-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.service-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.service-card:nth-child(5) { grid-column: 3; grid-row: 2; }
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 100%; background: var(--accent);
  opacity: 0.12; transition: opacity var(--transition); z-index: 2;
}
.service-card:hover::after { opacity: 1; }
.service-card::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,43,224,.07) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0; pointer-events: none;
}
.service-card:hover::before { width: 500px; height: 500px; opacity: 1; }
.service-card:hover { background: var(--surface-2); }
.service-card__number {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 700; line-height: 1;
  color: var(--accent); opacity: 0.05; pointer-events: none; user-select: none;
  transition: opacity var(--transition);
}
.service-card:nth-child(1) .service-card__number { font-size: 5rem; }
.service-card:hover .service-card__number { opacity: 0.09; }
.service-card__echo-ring {
  position: absolute; bottom: -40px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.06;
  animation: serviceRingPulse 5s ease-in-out infinite; pointer-events: none;
}
.service-card__echo-ring::before,
.service-card__echo-ring::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  border-radius: 50%; border: 1px solid var(--accent);
  transform: translate(-50%,-50%);
}
.service-card__echo-ring::before { width: 140px; height: 140px; opacity: 0.6; animation: serviceRingPulse 5s ease-in-out infinite 0.8s; }
.service-card__echo-ring::after  { width: 70px;  height: 70px;  opacity: 1;   animation: serviceRingPulse 5s ease-in-out infinite 1.6s; }
@keyframes serviceRingPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.06; }
  50%       { transform: translate(-50%,-50%) scale(1.06); opacity: 0.12; }
}
.service-card:not(:nth-child(1)) .service-card__echo-ring { display: none; }
.service-card__content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.service-card__title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.service-card:nth-child(1) .service-card__title { font-size: clamp(1.8rem,2.5vw,2.4rem); margin-bottom: 1rem; }
.service-card__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; flex: 1; }
.service-card:nth-child(1) .service-card__content { justify-content: flex-start; }
.service-card:nth-child(1) .service-card__text { flex: 0 0 auto; margin-bottom: 2rem; }
.service-card:nth-child(1) .service-card__tags { margin-top: auto; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.service-card__tags li {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--bg);
  transition: background var(--transition), border-color var(--transition), color var(--transition); cursor: default;
}
.service-card:hover .service-card__tags li { border-color: rgba(91,43,224,.25); background: rgba(91,43,224,.04); color: var(--accent); }
.service-card__link {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: auto; align-self: flex-start; position: relative;
}
.service-card__link::after { content: ''; position: absolute; inset: -9999px; z-index: 3; }
.service-card:hover .service-card__link { color: var(--accent); transform: translateX(4px); }
.service-card--cta { background: var(--surface-2); justify-content: center; }
.service-card--cta:hover { background: rgba(91,43,224,.06); }
.service-card--cta .service-card__content { gap: 1rem; justify-content: center; }
.service-card__cta-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); opacity: 0.7; }
.service-card--cta .service-card__title { font-size: 1.3rem; line-height: 1.3; margin-bottom: 0.5rem; }
.service-card--cta .btn::after { content: ''; position: absolute; inset: -9999px; z-index: 3; }


/* ── Work ── */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.case-card--wide { grid-column: 1 / -1; }
.case-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.case-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(91,43,224,.12); }
.placeholder-img { background: var(--surface-2); height: 260px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.case-card--wide .placeholder-img { height: 380px; }
.placeholder-label { font-size: 0.78rem; color: var(--border); letter-spacing: 0.05em; }
.case-card__body { padding: 1.75rem; }
.case-card__industry { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.case-card__title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin: 0.5rem 0 0.6rem; color: var(--text); }
.case-card__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.case-card__tag { display: inline-block; font-size: 0.72rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 100px; padding: 0.2rem 0.65rem; background: var(--bg); }


/* ── About (homepage section) ── */
.about { background: var(--surface); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); align-items: start; }
.about__text p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.about__stats { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 0.5rem; }
.stat__number {
  display: block; font-family: var(--font-head); font-size: clamp(2.8rem,5vw,4.5rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #9b6dff, #5b2be0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }


/* ── Contact ── */
.contact { border-top: 1px solid var(--border); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem,6vw,7rem); align-items: start; }
.contact__left p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.contact__info { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.contact__info a:hover { color: var(--accent); }
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group    { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  background: #ffffff; border: 1.5px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.8rem 1rem; transition: border-color var(--transition); outline: none; resize: vertical;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-success { display: none; color: var(--accent); font-size: 0.88rem; text-align: center; padding-top: 0.5rem; }


/* ── Homepage Responsive ── */
@media (max-width: 900px) {
  .work__grid      { grid-template-columns: 1fr; }
  .case-card--wide { grid-column: auto; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .blob { width: clamp(300px,70vw,500px); filter: blur(50px); }
  .services__grid { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: unset; grid-row: unset; }
  .service-card:nth-child(1) .service-card__echo-ring,
  .service-card:not(:nth-child(1)) .service-card__echo-ring { display: none; }
}
@media (max-width: 480px) {
  .services__grid   { grid-template-columns: 1fr; }
  .hero__cta        { flex-direction: column; align-items: flex-start; }
  .blob             { display: none; }
  .hero-ring        { display: none; }
}


/* ═══════════════════════════════════════
   HOMEPAGE UPGRADES
   ═══════════════════════════════════════ */

/* ── Services: equal 2×2 grid ── */
.services__grid--2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.services__grid--2x2 .service-card:nth-child(1),
.services__grid--2x2 .service-card:nth-child(2),
.services__grid--2x2 .service-card:nth-child(3),
.services__grid--2x2 .service-card:nth-child(4) {
  grid-column: unset;
  grid-row: unset;
}
/* Restore ring on all cards in 2x2 layout */
.services__grid--2x2 .service-card .service-card__echo-ring { display: block; }

/* ── Services CTA strip ── */
.services__cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.services__cta-text {
  font-size: 0.95rem; color: var(--text-muted);
  font-style: italic; font-family: var(--font-head);
  font-size: 1.05rem;
}
.services__cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }


/* ── Work: dark case tiles ── */
.work__grid--upgraded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.case-card--dark {
  background: var(--text);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.case-card--dark:hover {
  border-color: rgba(139,43,224,0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(91,43,224,0.18);
}
.case-card--dark.case-card--wide { grid-column: 1 / -1; }
.case-card__dark-inner {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.case-card--wide .case-card__dark-inner { min-height: 220px; flex-direction: row; align-items: center; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.case-card__dark-meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.case-card--wide .case-card__dark-meta { flex-direction: column; align-items: flex-start; flex-shrink: 0; min-width: 160px; }
.case-card--dark .case-card__industry {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(139,43,224,0.85);
}
.case-card--dark .case-card__tag {
  font-size: 0.68rem; color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 100px; padding: 0.2rem 0.6rem;
}
.case-card__dark-body { flex: 1; }
.case-card--dark .case-card__title {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600; color: #fff;
  margin-bottom: 0.6rem; line-height: 1.2;
}
.case-card--dark .case-card__desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  line-height: 1.65; margin: 0;
}
.case-card__dark-results {
  display: flex; gap: 2rem; flex-wrap: wrap;
  flex-shrink: 0;
}
.case-result__num {
  display: block;
  font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; font-style: italic;
  color: #fff; line-height: 1;
  margin-bottom: 0.2rem;
}
.case-result__label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}

/* Echo rings inside dark cards */
.case-card__dark-rings {
  position: absolute; bottom: -30px; right: -30px;
  pointer-events: none;
}
.case-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(139,43,224,0.15);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.case-ring--1 { width: 120px; height: 120px; }
.case-ring--2 { width: 200px; height: 200px; opacity: 0.6; }
.case-ring--3 { width: 300px; height: 300px; opacity: 0.3; }


/* ── About: pillars layout ── */
.about__inner--upgraded {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.about__text p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.75; }
/* ── About: Signal-line pillars ── */
.about__signals {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}
.about-sig {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.about-sig.visible { opacity: 1; transform: none; }

/* ── Node column ── */
.about-sig__node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-sig__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(--surface);
  z-index: 2;
  transition: border-color var(--transition), background var(--transition);
}
.about-sig:hover .about-sig__node {
  border-color: var(--accent);
  background: rgba(91,43,224,0.06);
}
.about-sig__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);
}
.about-sig:hover .about-sig__num { opacity: 1; }

/* ── Echo rings — pulse outward on hover ── */
.about-sig__echo {
  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;
}
.about-sig:hover .about-sig__echo--1 { animation: aboutEcho 2s ease-out infinite 0s; }
.about-sig:hover .about-sig__echo--2 { animation: aboutEcho 2s ease-out infinite 0.55s; }
.about-sig:hover .about-sig__echo--3 { animation: aboutEcho 2s ease-out infinite 1.1s; }
@keyframes aboutEcho {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* ── Connecting line ── */
.about-sig__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);
}
.about-sig:hover .about-sig__line {
  background: linear-gradient(to bottom, rgba(91,43,224,0.55) 0%, rgba(91,43,224,0.06) 100%);
}

/* ── Body ── */
.about-sig__body {
  position: relative;
  padding-bottom: 0.5rem;
  overflow: hidden;
}
/* Ghost number */
.about-sig__ghost {
  position: absolute; right: -1rem; top: 50%;
  transform: translateY(-58%);
  font-family: var(--font-head);
  font-size: 8rem; 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;
}
.about-sig:hover .about-sig__ghost {
  opacity: 0.045; transform: translateY(-50%);
}
.about-sig__title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600; color: var(--text);
  line-height: 1.15; margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.about-sig:hover .about-sig__title { color: var(--accent); }
.about-sig__desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.75; max-width: 520px; margin-bottom: 0.9rem;
}
.about-sig__tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 100px; padding: 0.2rem 0.75rem;
  opacity: 0.3;
  transition: opacity var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition);
}
.about-sig:hover .about-sig__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);
}
/* Shimmer sweep */
.about-sig__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;
}
.about-sig:hover .about-sig__body::after { transform: translateX(120%); }


/* ── Contact: trust list ── */
.contact__trust {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact__trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.contact__trust-icon {
  color: var(--accent); opacity: 0.7; font-size: 0.6rem; flex-shrink: 0;
}


/* ── Responsive for upgrades ── */
@media (max-width: 900px) {
  .services__grid--2x2 { grid-template-columns: 1fr 1fr; }
  .work__grid--upgraded { grid-template-columns: 1fr; }
  .case-card--dark.case-card--wide { grid-column: auto; }
  .case-card--wide .case-card__dark-inner { flex-direction: column; }
  .about__inner--upgraded { grid-template-columns: 1fr; }
  .services__cta-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .about-sig { grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; }
  .about-sig__node { width: 2.25rem; height: 2.25rem; }
  .about-sig__ghost { font-size: 5.5rem; }
  .about-sig__title { font-size: 1.25rem; }
  .about-sig__tag { opacity: 0.5; } /* visible on touch */
}
@media (max-width: 480px) {
  .services__grid--2x2 { grid-template-columns: 1fr; }
  .case-card__dark-results { gap: 1.25rem; }
  .about-sig { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .about-sig__ghost { display: none; }
}


/* ═══════════════════════════════════════
   VISUAL DEPTH UPGRADES
   ═══════════════════════════════════════ */

/* ── 1. Floating hero depth cards ── */
.hero__depth {
  position: absolute;
  top: 0; right: 0;
  width: 52%; height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero__depth-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  min-width: 160px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.12),
    0 12px 40px rgba(91,43,224,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
/* Individual card positions and float animations */
.hero__depth-card--1 {
  top: 22%; right: 12%;
  animation: depthFloat1 7s ease-in-out infinite;
  transform: perspective(800px) rotateX(2deg) rotateY(-4deg);
}
.hero__depth-card--2 {
  top: 38%; right: 32%;
  animation: depthFloat2 9s ease-in-out infinite 1.5s;
  transform: perspective(800px) rotateX(-1deg) rotateY(3deg);
}
.hero__depth-card--3 {
  top: 55%; right: 8%;
  animation: depthFloat3 8s ease-in-out infinite 0.8s;
  transform: perspective(800px) rotateX(3deg) rotateY(-2deg);
}
.hero__depth-card--4 {
  top: 18%; right: 42%;
  animation: depthFloat1 10s ease-in-out infinite 2s;
  transform: perspective(800px) rotateX(-2deg) rotateY(5deg);
  opacity: 0.75;
}
@keyframes depthFloat1 {
  0%,100% { transform: perspective(800px) rotateX(2deg) rotateY(-4deg) translateY(0px); }
  50%      { transform: perspective(800px) rotateX(2deg) rotateY(-4deg) translateY(-12px); }
}
@keyframes depthFloat2 {
  0%,100% { transform: perspective(800px) rotateX(-1deg) rotateY(3deg) translateY(0px); }
  50%      { transform: perspective(800px) rotateX(-1deg) rotateY(3deg) translateY(-8px); }
}
@keyframes depthFloat3 {
  0%,100% { transform: perspective(800px) rotateX(3deg) rotateY(-2deg) translateY(0px); }
  50%      { transform: perspective(800px) rotateX(3deg) rotateY(-2deg) translateY(-14px); }
}
.hero__depth-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}
.hero__depth-val {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1;
}
.hero__depth-val--sm { font-size: 0.82rem; font-style: normal; color: rgba(255,255,255,0.7); }
.hero__depth-delta {
  font-size: 0.62rem;
  font-weight: 500;
}
.hero__depth-delta--up { color: #22c55e; }
.hero__depth-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.hero__depth-bar-fill {
  height: 100%;
  width: var(--fill, 50%);
  background: linear-gradient(90deg, #9b6dff, #5b2be0);
  border-radius: 100px;
  animation: barFillIn 1.8s ease forwards 2s;
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes barFillIn { to { transform: scaleX(1); } }
.hero__depth-event {
  font-size: 0.65rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: eventBlink 2.5s ease-in-out infinite;
}
@keyframes eventBlink { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* Hide depth cards on mobile */
@media (max-width: 900px) { .hero__depth { display: none; } }


/* ── 2. Section clip-path transitions (layered sections) ── */
.services.section {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  margin-bottom: -40px;
  z-index: 2;
}
.work.section {
  position: relative;
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(5rem, 10vw, 9rem) + 40px);
  z-index: 1;
}

/* ── 3. Multi-layer card shadow system ── */
.service-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(91,43,224,0.05),
    0 0 0 0 rgba(91,43,224,0);
  transition:
    background var(--transition),
    opacity 0.6s ease calc(var(--card-i,0)*.1s),
    transform 0.6s ease calc(var(--card-i,0)*.1s),
    box-shadow 0.4s ease;
}
.service-card:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 8px 24px rgba(91,43,224,0.12),
    0 20px 48px rgba(91,43,224,0.07),
    0 0 0 1px rgba(91,43,224,0.08);
  transform: translateY(-2px);
}
.case-card--dark {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    0 8px 32px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.04);
}
.case-card--dark:hover {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.25),
    0 16px 48px rgba(91,43,224,0.2),
    0 32px 80px rgba(0,0,0,0.2),
    0 0 0 1px rgba(139,43,224,0.3);
}
/* (pillar hover removed — replaced by signal-line) */

/* ── 4. Drifting mesh orbs on sections ── */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite;
}
.section-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,43,224,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 18s;
}
.section-orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,43,224,0.06) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  animation-duration: 24s;
  animation-direction: reverse;
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,40px) scale(0.97); }
}
/* Make sure section content sits above orbs */
.services .section-header,
.services .services__grid,
.services .services__cta-strip,
.work .section-header,
.work .work__grid { position: relative; z-index: 1; }

/* ── 5. Scroll parallax via CSS (depth reinforcement) ── */
/* Cards get perspective container */
.services__grid--2x2 {
  perspective: 1200px;
}
.work__grid--upgraded {
  perspective: 1200px;
}

/* Section label depth — subtle text-shadow */
.section-label {
  text-shadow: 0 1px 8px rgba(91,43,224,0.15);
}

/* Hero headline ghost depth enhancement */
.hero__headline::before { opacity: 0.08; }
.hero__headline::after  { opacity: 0.04; }


/* ═══════════════════════════════════════
   3D SYSTEM
   ═══════════════════════════════════════ */

/* ── WebGL hero canvas ── */
#hero-webgl {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above canvas */
.hero--3d .hero-echo-bg { z-index: 1; opacity: 0.5; }
.hero--3d .hero__blob { z-index: 1; opacity: 0.6; }
.hero--3d .hero__inner,
.hero--3d .hero__depth,
.hero--3d .hero__mantra-bar { position: relative; z-index: 2; }

/* ── CSS 3D card system ── */
.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  overflow: visible !important; /* allow translateZ to show depth */
}

/* The moving specular highlight */
.card-3d-highlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  transition: background 0.05s ease;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Enhance card border on hover via 3D state */
.card-3d:hover {
  z-index: 10;
}

/* Service card grid — perspective container */
.services__grid--2x2 {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

/* Work grid perspective */
.work__grid--upgraded {
  perspective: 1400px;
  perspective-origin: 50% 30%;
}

/* Service card 3D shadow enhancement */
.service-card.card-3d {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05),
    0 4px 16px rgba(91,43,224,0.06),
    0 0 0 0 rgba(91,43,224,0);
  transition:
    box-shadow 0.4s ease,
    background var(--transition);
  /* Note: transform handled by JS spring */
}

/* Dark case cards — deeper shadow for more 3D pop */
.case-card--dark.card-3d {
  box-shadow:
    0 4px 20px rgba(0,0,0,0.3),
    0 12px 40px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: box-shadow 0.4s ease;
}
.case-card--dark.card-3d:hover {
  box-shadow:
    0 8px 30px rgba(0,0,0,0.4),
    0 24px 60px rgba(91,43,224,0.25),
    0 40px 80px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(155,109,255,0.15);
}

/* Touch — disable all 3D */
@media (hover: none) {
  .card-3d { transform: none !important; }
  .card-3d-highlight { display: none; }
  #hero-webgl { display: none; }
}


/* ═══════════════════════════════════════
   BENTO SERVICES GRID
   ═══════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3rem;
}

/* Grid placement */
.bento-card--paid     { grid-column: 1; grid-row: 1 / 3; }  /* tall left */
.bento-card--strategy { grid-column: 2; grid-row: 1 / 3; }  /* tall middle */
.bento-card--analytics{ grid-column: 3; grid-row: 1; }       /* top right */
.bento-card--creative { grid-column: 3; grid-row: 2; }       /* middle right — appears below analytics */
.bento-card--cta      { grid-column: 2 / 4; grid-row: 3; }  /* full-width bottom strip */

/* Wait — let's recalculate for a more interesting bento:
   Col1=1.7fr, Col2=1fr, Col3=1fr, Col4=0.8fr
   Paid: cols 1-2, row 1-2 (large)
   Strategy: col 3, row 1-2 (tall narrow)
   Analytics: col 4, row 1 (small)
   Creative: col 4, row 2 (small)
   CTA: cols 3-4, row 3 (strip)
*/

/* Override grid to 4-column bento */
.bento-grid {
  grid-template-columns: 1.7fr 1fr 0.85fr;
  grid-template-rows: 1fr 1fr auto;
}
.bento-card--paid     { grid-column: 1; grid-row: 1 / 3; }
.bento-card--strategy { grid-column: 2; grid-row: 1 / 3; }
.bento-card--analytics{ grid-column: 3; grid-row: 1; }
.bento-card--creative { grid-column: 3; grid-row: 2; }
.bento-card--cta      { grid-column: 1 / 4; grid-row: 3; }

/* ── Base card ── */
.bento-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.bento-card:hover {
  border-color: rgba(91,43,224,0.3);
  background: var(--surface-2);
  box-shadow: 0 8px 32px rgba(91,43,224,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Card number ── */
.bento-card__num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.06;
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}
.bento-card:hover .bento-card__num { opacity: 0.1; }

/* ── Card body ── */
.bento-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; position: relative; z-index: 1; }
.bento-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.bento-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 36ch;
  margin-top: 0.2rem;
}

/* ── Sub-service clickable tags ── */
.bento-card__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.bento-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.bento-sub:hover {
  border-color: rgba(91,43,224,0.35);
  color: var(--accent);
  background: rgba(91,43,224,0.05);
}

/* ── Explore link ── */
.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1.25rem;
  position: relative; z-index: 1;
  transition: color 0.2s ease, gap 0.2s ease;
  align-self: flex-start;
}
.bento-card__link:hover { color: var(--accent); gap: 0.5rem; }

/* ── Echo rings decoration ── */
.bento-card__rings {
  position: absolute;
  bottom: -20px; right: -20px;
  pointer-events: none; z-index: 0;
}
.bento-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.bento-ring--1 { width: 80px;  height: 80px;  opacity: 0.08; }
.bento-ring--2 { width: 140px; height: 140px; opacity: 0.05; }
.bento-ring--3 { width: 200px; height: 200px; opacity: 0.03; }
.bento-card:hover .bento-ring--1 { opacity: 0.18; }
.bento-card:hover .bento-ring--2 { opacity: 0.1; }
.bento-card:hover .bento-ring--3 { opacity: 0.06; }

/* ── Featured card (Paid Media) — taller, richer ── */
.bento-card--featured {
  background: var(--bg);
}
.bento-card--featured .bento-card__title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.bento-card--featured .bento-card__text {
  font-size: 0.9rem;
  max-width: 42ch;
}

/* ── CTA card ── */
.bento-card--cta {
  background: var(--text);
  border-color: rgba(255,255,255,0.06);
  min-height: auto;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.bento-card--cta:hover {
  border-color: rgba(155,109,255,0.25);
  background: var(--text);
  box-shadow: 0 8px 32px rgba(91,43,224,0.15);
}
.bento-card__cta-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  flex: 1;
  position: relative; z-index: 1;
}
.bento-card__cta-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(155,109,255,0.7);
  display: none; /* hide on this layout, used on larger variant */
}
.bento-card__cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  flex: 1;
  min-width: 200px;
}
.bento-card--cta .btn {
  flex-shrink: 0;
}
.bento-card__all-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.bento-card__all-link:hover { color: rgba(155,109,255,0.8); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-card--paid     { grid-column: 1 / 3; grid-row: auto; min-height: 200px; }
  .bento-card--strategy { grid-column: 1;     grid-row: auto; }
  .bento-card--analytics{ grid-column: 2;     grid-row: auto; }
  .bento-card--creative { grid-column: 1;     grid-row: auto; }
  .bento-card--cta      { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 540px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--paid,
  .bento-card--strategy,
  .bento-card--analytics,
  .bento-card--creative,
  .bento-card--cta { grid-column: 1; grid-row: auto; }
  .bento-card--cta { flex-direction: column; align-items: flex-start; }
  .bento-card__cta-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}


/* ═══════════════════════════════════════
   BENTO THEMED CARDS
   ═══════════════════════════════════════ */

/* All cards: dark background, flex column */
.bento-card {
  background: var(--text);
  border-color: rgba(255,255,255,0.07);
  color: #fff;
}
.bento-card:hover {
  background: #130d24;
  border-color: rgba(255,255,255,0.12);
}
.bento-card__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}
.bento-card__num-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.bento-card__title { color: #fff; }
.bento-card__text  { color: rgba(255,255,255,0.45); }
.bento-sub {
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}
.bento-sub:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.bento-card__link { color: rgba(255,255,255,0.35); }
.bento-card__link:hover { color: #fff; }

/* ── Per-card accent colours ── */
.bento-card--paid     { --bc: #5b2be0; --bc-bright: #9b6dff; }
.bento-card--strategy { --bc: #3d1fa8; --bc-bright: #a594f9; }
.bento-card--analytics{ --bc: #2b5be0; --bc-bright: #7ba4ff; }
.bento-card--creative { --bc: #8b2be0; --bc-bright: #c084fc; }

.bento-card__num-label { color: var(--bc-bright); }
.bento-card__link { transition: color 0.2s ease, gap 0.2s ease; }
.bento-card:hover .bento-card__link { color: var(--bc-bright); gap: 0.5rem; }
.bento-sub:hover { color: var(--bc-bright); border-color: rgba(var(--bc), 0.3); background: rgba(var(--bc), 0.08); }
.bento-ring { border-color: var(--bc-bright); }

/* Top border accent on hover */
.bento-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--bc-bright), transparent);
  opacity: 0; transition: opacity 0.3s ease;
  border-radius: 16px 16px 0 0;
}
.bento-card:hover::after { opacity: 1; }

/* ── Bento visual shared ── */
.bento-visual {
  border-radius: 10px;
  padding: 1rem;
  margin-top: auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
}

/* ── Paid Media: performance bars ── */
.bperf { display: flex; flex-direction: column; gap: 0.55rem; }
.bperf__row { display: grid; grid-template-columns: 32px 1fr 36px; gap: 0.6rem; align-items: center; }
.bperf__label { font-size: 0.6rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.06em; }
.bperf__bar-wrap { background: rgba(255,255,255,0.06); border-radius: 100px; height: 5px; overflow: hidden; }
.bperf__bar {
  height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, #9b6dff, #5b2be0);
  animation: bpBarGrow 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.bperf__bar--down { background: linear-gradient(90deg, #22c55e, #16a34a); }
@keyframes bpBarGrow { to { width: var(--w); } }
.bperf__val { font-size: 0.65rem; color: rgba(155,109,255,0.85); text-align: right; font-weight: 500; }

/* ── Strategy: funnel stages ── */
.bfunnel { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.bfunnel__stage {
  height: 28px; width: var(--w); border-radius: 4px;
  background: rgba(165,148,249, var(--op));
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s ease;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}
.bfunnel__stage span { font-size: 0.58rem; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Analytics: event stream ── */
.bsignal { display: flex; flex-direction: column; gap: 0.5rem; }
.bsignal__event {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; color: rgba(255,255,255,0.3);
  font-family: 'DM Mono', 'Courier New', monospace;
}
.bsignal__event--highlight { color: rgba(123,164,255,0.9); }
.bsignal__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15); flex-shrink: 0;
}
.bsignal__dot--on {
  background: #7ba4ff;
  box-shadow: 0 0 8px rgba(123,164,255,0.6);
  animation: signalPulse 2s ease-in-out infinite;
}
@keyframes signalPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.bsignal__name { flex: 1; }
.bsignal__time { font-size: 0.58rem; color: rgba(255,255,255,0.2); }

/* ── Creative: typographic display ── */
.btype {
  display: flex; flex-direction: column; gap: 0.1rem;
  overflow: hidden;
}
.btype__word {
  font-family: var(--font-head);
  font-style: italic; font-weight: 600;
  line-height: 1.1; display: block;
  background: linear-gradient(135deg, rgba(192,132,252,0.9), rgba(139,43,224,0.5));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btype__word--1 { font-size: clamp(1.4rem, 3vw, 2rem); animation: typeSlide 0.8s ease 0.1s both; }
.btype__word--2 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); opacity: 0.65; animation: typeSlide 0.8s ease 0.25s both; }
.btype__word--3 { font-size: clamp(0.9rem, 2vw, 1.2rem); opacity: 0.4; animation: typeSlide 0.8s ease 0.4s both; }
@keyframes typeSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.btype__word--2 { animation-fill-mode: both; }
.btype__word--3 { animation-fill-mode: both; }

/* ── CTA strip update ── */
.bento-card--cta {
  flex-direction: row;
  align-items: center;
  min-height: auto;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2.25rem);
  background: #0e0a1a;
  border-color: rgba(91,43,224,0.2);
  --bc: #5b2be0;
  --bc-bright: #9b6dff;
}
.bento-card__cta-inner {
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap; flex: 1; position: relative; z-index: 1;
}
.bento-card__cta-title {
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem); color: #fff; flex: 1; min-width: 180px;
}
.bento-card__cta-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.bento-card__all-link {
  font-size: 0.75rem; color: rgba(255,255,255,0.25);
  transition: color 0.2s ease; white-space: nowrap;
}
.bento-card__all-link:hover { color: rgba(155,109,255,0.8); }

/* ── Mobile ── */
@media (max-width: 540px) {
  .bento-card--cta { flex-direction: column; align-items: flex-start; }
  .bento-card__cta-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btype__word--1 { font-size: 1.3rem; }
}


/* ═══════════════════════════════════════
   SERVICE ROWS LAYOUT
   ═══════════════════════════════════════ */

.svc-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
  background: var(--text);
}

/* ── Individual row ── */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 260px 32px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  text-decoration: none;
  transition: background 0.3s ease, padding 0.4s ease;
  overflow: hidden;
}
.svc-row:last-child { border-bottom: none; }

/* Left accent line */
.svc-row::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.svc-row:hover::before { opacity: 1; }
.svc-row:hover { background: rgba(255,255,255,0.03); }

/* Per-row accent colours */
.svc-row--paid     { --rc: #5b2be0; --rc-bright: #9b6dff; }
.svc-row--strategy { --rc: #3d1fa8; --rc-bright: #a594f9; }
.svc-row--analytics{ --rc: #2b5be0; --rc-bright: #7ba4ff; }
.svc-row--creative { --rc: #8b2be0; --rc-bright: #c084fc; }

.svc-row::before { background: var(--rc-bright); }

/* ── Left section ── */
.svc-row__left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.svc-row__num {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-bright);
  flex-shrink: 0;
  padding-top: 0.35rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.svc-row:hover .svc-row__num { opacity: 1; }

.svc-row__info { display: flex; flex-direction: column; gap: 0.4rem; }
.svc-row__title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  transition: color 0.2s ease;
}
.svc-row:hover .svc-row__title { color: var(--rc-bright); }

.svc-row__desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  max-width: 44ch;
}
.svc-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.svc-tag {
  font-size: 0.67rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.svc-row:hover .svc-tag {
  border-color: rgba(var(--rc), 0.3);
  color: var(--rc-bright);
  background: rgba(255,255,255,0.05);
}

/* ── Visual panel (right side) ── */
.svc-row__visual {
  width: 260px;
  flex-shrink: 0;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.svc-row:hover .svc-row__visual {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

/* ── Arrow ── */
.svc-row__arrow {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.svc-row:hover .svc-row__arrow {
  color: var(--rc-bright);
  transform: translate(2px, -2px);
}

/* ── CTA strip ── */
.services__cta-strip {
  margin-top: 1.5rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.08);
}
.services__cta-strip .services__cta-text {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr 32px; gap: 1.25rem; }
  .svc-row__visual { display: none; }
}
@media (max-width: 540px) {
  .svc-row { grid-template-columns: 1fr; padding: 1.5rem; gap: 0.75rem; }
  .svc-row__arrow { position: absolute; top: 1.5rem; right: 1.5rem; }
  .svc-row__left { flex-direction: column; gap: 0.5rem; }
}


/* ═══════════════════════════════════════
   SERVICE ROW ANIMATIONS
   ═══════════════════════════════════════ */

/* ── 1. Scroll reveal — staggered slide up ── */
.svc-row--reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease calc(var(--row-i, 0) * 0.12s),
    transform 0.65s ease calc(var(--row-i, 0) * 0.12s),
    background 0.3s ease;
}
.svc-row--reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── 2. Accent line draws downward on hover ── */
.svc-row::before {
  transform-origin: top;
  transform: scaleY(0);
  transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-row:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* ── 3. Visual panels: visible by default, enhanced on hover ── */

/* Perf bars — visible at 60% width by default, fill to full on hover */
.svc-row__visual .bperf__bar {
  width: calc(var(--w) * 0.5);
  animation: none;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-row:hover .bperf__bar { width: var(--w); }

/* Funnel — visible at reduced opacity by default */
.svc-row__visual .bfunnel__stage {
  transform: scaleX(0.85);
  opacity: calc(var(--op) * 0.5);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--stage-i, 0) * 0.07s),
    opacity   0.4s ease                          calc(var(--stage-i, 0) * 0.07s);
}
.svc-row__visual .bfunnel__stage:nth-child(1) { --stage-i: 0; }
.svc-row__visual .bfunnel__stage:nth-child(2) { --stage-i: 1; }
.svc-row__visual .bfunnel__stage:nth-child(3) { --stage-i: 2; }
.svc-row__visual .bfunnel__stage:nth-child(4) { --stage-i: 3; }
.svc-row:hover .svc-row__visual .bfunnel__stage {
  transform: scaleX(1);
  opacity: var(--op, 1);
}

/* Signal events — visible at low opacity by default, full on hover */
.svc-row__visual .bsignal__event {
  opacity: 0.35;
  transform: none;
  transition:
    opacity   0.35s ease calc(var(--ev-i, 0) * 0.1s),
    transform 0.35s ease calc(var(--ev-i, 0) * 0.1s);
}
.svc-row__visual .bsignal__event:nth-child(1) { --ev-i: 0; }
.svc-row__visual .bsignal__event:nth-child(2) { --ev-i: 1; }
.svc-row__visual .bsignal__event:nth-child(3) { --ev-i: 2; }
.svc-row:hover .svc-row__visual .bsignal__event { opacity: 1; }
.svc-row:hover .svc-row__visual .bsignal__event--highlight { opacity: 1; }

/* Type words — visible at low opacity by default, brighten and shift on hover */
.svc-row__visual .btype__word {
  opacity: 0.25;
  transform: none;
  animation: none;
  transition:
    opacity   0.4s ease calc(var(--t-i, 0) * 0.1s),
    transform 0.4s ease calc(var(--t-i, 0) * 0.1s);
}
.svc-row__visual .btype__word--1 { --t-i: 0; opacity: 0.35; }
.svc-row__visual .btype__word--2 { --t-i: 1; opacity: 0.2; }
.svc-row__visual .btype__word--3 { --t-i: 2; opacity: 0.12; }
.svc-row:hover .svc-row__visual .btype__word--1 { opacity: 1; transform: translateX(4px); }
.svc-row:hover .svc-row__visual .btype__word--2 { opacity: 0.65; transform: translateX(4px); }
.svc-row:hover .svc-row__visual .btype__word--3 { opacity: 0.4; transform: translateX(4px); }


/* ═══════════════════════════════════════
   MOBILE FIXES — homepage
   ═══════════════════════════════════════ */

/* ── Hero ── */
@media (max-width: 768px) {
  .hero { padding-top: 5rem; min-height: 100svh; }
  .hero__inner { padding-bottom: 2rem; }
  .hero__tag { font-size: 0.7rem; margin-bottom: 1rem; }
  .hero__headline { font-size: clamp(2rem, 8vw, 3.5rem); max-width: 100%; }
  .hero__headline::before, .hero__headline::after { display: none; }
  .hero__sub { font-size: 0.92rem; max-width: 100%; }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero__cta .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__mantra { font-size: 0.85rem; }
  .blob { display: none; }
  .hero-ring { display: none; }
}

/* ── Service rows ── */
@media (max-width: 768px) {
  .svc-rows { border-radius: 12px; }
  .svc-row {
    grid-template-columns: 1fr 28px;
    gap: 1rem;
    padding: 1.5rem;
  }
  .svc-row__visual { display: none; }
  .svc-row__left { gap: 0.75rem; }
  .svc-row__title { font-size: 1.3rem; }
  .svc-row__desc { font-size: 0.8rem; max-width: 100%; }
}
@media (max-width: 480px) {
  .svc-row { grid-template-columns: 1fr; padding: 1.25rem; }
  .svc-row__arrow { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 0.9rem; }
  .svc-row__left { flex-direction: column; gap: 0.4rem; }
  .svc-row__num { padding-top: 0; }
  .svc-tag { font-size: 0.62rem; padding: 0.2rem 0.55rem; }
  .services__cta-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services__cta-strip .services__cta-actions { flex-direction: column; width: 100%; }
  .services__cta-strip .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── Work section ── */
@media (max-width: 768px) {
  .work__grid--upgraded { grid-template-columns: 1fr; gap: 1rem; }
  .case-card--dark.case-card--wide { grid-column: auto; }
  .case-card--wide .case-card__dark-inner { flex-direction: column; gap: 1.25rem; }
  .case-card__dark-results { flex-wrap: wrap; gap: 1.25rem; }
  .case-result__num { font-size: 1.4rem; }
}

/* ── About section ── */
@media (max-width: 768px) {
  .about__inner--upgraded { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__signals { padding-top: 0; }
}

/* ── Contact section ── */
@media (max-width: 768px) {
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__form { gap: 1rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; /* prevent iOS zoom */ padding: 0.75rem 0.9rem; }
}

/* ── Section headers ── */
@media (max-width: 480px) {
  .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }
}

/* ── Mantra bar ── */
@media (max-width: 480px) {
  .hero__mantra-bar { padding: 1rem 0; }
  .hero__mantra { font-size: 0.8rem; padding: 0 0.5rem; text-align: center; }
}

/* ── Dark case card rings — hide on mobile ── */
@media (max-width: 480px) {
  .case-card__dark-rings { display: none; }
  .case-ring { display: none; }
}