/* Mad Funnel Labs v2: agency home, services, shared "component" visuals.
   Motion: CSS keyframes only. All of it is decorative and switched off by prefers-reduced-motion (see base.css). */

/* ---------- Hero ---------- */
.hero-a {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-top: clamp(var(--space-8), 7vw, 6rem);
  padding-bottom: clamp(var(--space-7), 6vw, var(--space-8));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 75%);
}
.arc {
  position: absolute;
  left: 50%;
  top: 56%;
  width: max(1500px, 175vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 -2px 70px rgba(var(--ember), 0.42), inset 0 3px 90px -24px rgba(var(--ember), 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 32%, #000 68%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 32%, #000 68%, transparent 92%);
}
.arc-glow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(900px, 90vw);
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--ember), 0.3), transparent);
  filter: blur(28px);
  animation: arcPulse 7s ease-in-out infinite;
}
@keyframes arcPulse { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scaleX(0.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.05); } }

.hero-a h1 {
  max-width: 15ch;
  margin: 0 auto var(--space-5);
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 340;
}
.hero-sub { max-width: 40em; margin: 0 auto var(--space-6); color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }
.hero-a .btn-row { justify-content: center; }
.hero-note { margin: var(--space-5) 0 0; color: var(--text-muted); font-size: var(--step--1); }

/* The rail: seven stages, lit in sequence. Decorative sweep over a real ordered list. */
.rail-wrap { margin-top: clamp(var(--space-7), 7vw, var(--space-9)); text-align: left; }
.rail-label { margin: 0 0 var(--space-4); text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: r; }
.rail-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 5.5rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 12, 21, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: railOn 14s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
.rail-n { color: var(--edge); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.rail-t { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.1; }
.rail-d { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.35; }
@keyframes railOn {
  0%, 22%, 100% { border-color: var(--line); box-shadow: none; }
  4%, 15% { border-color: rgba(var(--glow), 0.75); box-shadow: 0 0 34px -8px rgba(var(--glow), 0.65), inset 0 0 22px -12px rgba(var(--glow), 0.8); }
}
@media (min-width: 40rem) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 62rem) {
  .rail { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .rail-node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 12px; height: 1px; background: var(--line-strong); }
}

/* ---------- Proof strip ---------- */
.proof-a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); text-align: center; }
.proof-a p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.proof-a .who { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; color: var(--text); }
.proof-a .who em { font-style: italic; font-weight: 300; color: var(--text-muted); font-size: 0.8em; }

/* ---------- Section heads ---------- */
.sec { padding-block: clamp(var(--space-8), 9vw, var(--space-10)); }
.sec-head { max-width: 44rem; margin-bottom: clamp(var(--space-6), 5vw, var(--space-8)); }
.sec-head h2 { margin-bottom: var(--space-4); }
.sec-head p { margin: 0; color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 12;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)), var(--surface);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc:hover { border-color: rgba(var(--glow), 0.5); }
.svc-viz {
  position: relative;
  display: grid;
  place-items: center;
  height: 12.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(var(--glow), 0.12), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px) 0 0 / 18px 18px;
  overflow: hidden;
}
.svc-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5) var(--space-5) var(--space-5); }
.svc-body h3 { margin: 0 0 var(--space-2); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.svc-body p { margin: 0 0 var(--space-4); color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
.svc-link { color: var(--text); text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; }
.svc-link:hover { color: #fff; text-decoration: none; }
.svc-link:focus-visible { outline: none; }
.svc:has(.svc-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.svc-foot { margin: auto 0 0 !important; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.svc-more { color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s, transform 0.3s var(--ease); }
.svc:hover .svc-more { color: #fff; transform: translateX(3px); }
.chip--quote { border-color: rgba(var(--ember), 0.5); background: rgba(var(--ember), 0.08); color: var(--link); }

@media (min-width: 40rem) {
  .svc { grid-column: span 6; }
  .svc--7 { grid-column: span 12; }
}
@media (min-width: 62rem) {
  .svc--7 { grid-column: span 7; }
  .svc--5 { grid-column: span 5; }
  .svc--4 { grid-column: span 4; }
  .svc--6 { grid-column: span 6; }
}

/* ---- viz: content calendar ---- */
.viz { width: 100%; }
.viz-cal { max-width: 26rem; margin-inline: auto; display: grid; gap: 8px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--edge); font-size: 0.6875rem; font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid i { display: block; height: 1.35rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.02); }
.cal-grid i.p { animation: calLit 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.3s); }
.cal-grid i.shoot { border: 1px dashed rgba(var(--ember), 0.9); background: rgba(var(--ember), 0.12); }
@keyframes calLit {
  0%, 70%, 100% { background: rgba(255, 255, 255, 0.02); border-color: var(--line); box-shadow: none; }
  12%, 45% { background: rgba(var(--glow), 0.3); border-color: rgba(var(--glow), 0.8); box-shadow: 0 0 16px -2px rgba(var(--glow), 0.6); }
}

/* ---- viz: growth line ---- */
.viz-growth { position: relative; max-width: 22rem; height: 7.25rem; margin-inline: auto; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to bottom, transparent 0 28px, var(--line) 28px 29px); }
.viz-growth svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-area { fill: rgba(var(--ember), 0.14); animation: gArea 6s ease-in-out infinite; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gDraw 6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(var(--ember), 0.8)); }
.g-dot { position: absolute; right: -4px; top: calc(7.3% - 4px); width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--ember), 0.3), 0 0 18px rgba(var(--ember), 0.9); animation: gDot 6s ease-in-out infinite; }
@keyframes gDraw { 0% { stroke-dashoffset: 1; } 55%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gArea { 0%, 25% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gDot { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---- viz: creator roster ---- */
.viz-roster { max-width: 17rem; margin-inline: auto; display: grid; gap: 13px; }
.viz-roster .r { display: grid; grid-template-columns: 1.4rem 1fr 1.7rem; gap: 10px; align-items: center; }
.viz-roster b { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.18)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.viz-roster u { position: relative; display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; text-decoration: none; }
.viz-roster u::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, rgba(var(--glow), 0.25), rgba(var(--glow), 1)); transform-origin: left; animation: grow 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.25s); }
.viz-roster s { display: block; height: 0.7rem; border: 1px solid var(--line-strong); border-radius: 99px; text-decoration: none; }
@keyframes grow { 0% { transform: scaleX(0.04); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0.04); } }

/* ---- viz: typing draft ---- */
.viz-type { max-width: 18rem; margin-inline: auto; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(7, 6, 11, 0.7); }
.ty-tag { display: inline-block; margin-bottom: 10px; padding: 1px 9px; border: 1px solid rgba(var(--ember), 0.55); border-radius: 99px; color: var(--link); font-size: 0.6875rem; font-weight: 500; }
.ty { margin: 0 0 7px; color: var(--text); font-size: 0.8125rem; line-height: 1.4; clip-path: inset(0 100% 0 0); animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: steps(var(--n)); }
.ty:nth-of-type(1) { animation-name: type1; }
.ty:nth-of-type(2) { animation-name: type2; }
.ty:nth-of-type(3) { animation-name: type3; margin-bottom: 0; }
@keyframes type1 { 0% { clip-path: inset(0 100% 0 0); } 20%, 90% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type2 { 0%, 22% { clip-path: inset(0 100% 0 0); } 44%, 90% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type3 { 0%, 46% { clip-path: inset(0 100% 0 0); } 60%, 90% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }

/* ---- viz: ad bars ---- */
.viz-bars { display: flex; align-items: flex-end; gap: 8px; max-width: 17rem; height: 6.75rem; margin-inline: auto; border-bottom: 1px solid var(--line-strong); }
.viz-bars i:last-child { background: linear-gradient(180deg, rgba(var(--ember), 1), rgba(var(--ember), 0.12)); }
.viz-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08)); transform-origin: bottom; animation: rise 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.12s); }
@keyframes rise { 0% { transform: scaleY(0.08); opacity: 0.4; } 32%, 86% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.08); opacity: 0.4; } }

/* ---- viz: automation chain with the amber lead ---- */
.viz-nodes { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 26rem; height: 3.5rem; margin-inline: auto; }
.viz-nodes .line { position: absolute; left: 1.5rem; right: 1.5rem; top: 50%; height: 1px; background: var(--line-strong); }
.viz-nodes .n { position: relative; z-index: 1; padding: 0.5rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; animation: nOn 6s ease-in-out infinite; }
.viz-nodes .n:nth-of-type(1) { animation-delay: 0.15s; }
.viz-nodes .n:nth-of-type(2) { animation-delay: 1.5s; }
.viz-nodes .n:nth-of-type(3) { animation-delay: 2.8s; }
.viz-nodes .n--end { animation-name: nEnd; animation-delay: 4.1s !important; }
.viz-nodes .dot { position: absolute; top: calc(50% - 5px); left: 1.5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--lead); box-shadow: 0 0 0 4px rgba(var(--ember), 0.25), 0 0 16px rgba(var(--ember), 0.8); opacity: 0; animation: travel 6s linear infinite; }
@keyframes nOn { 0%, 40%, 100% { border-color: var(--line-strong); color: var(--text-muted); box-shadow: none; } 6%, 28% { border-color: rgba(var(--glow), 0.85); color: #fff; box-shadow: 0 0 20px -4px rgba(var(--glow), 0.7); } }
@keyframes nEnd { 0%, 40%, 100% { border-color: var(--line-strong); color: var(--text-muted); background: var(--surface); } 6%, 30% { border-color: var(--lead); background: var(--lead); color: var(--lead-ink); } }
@keyframes travel { 0% { left: 1.5rem; opacity: 0; } 4% { opacity: 1; } 72% { left: calc(100% - 2.2rem); opacity: 1; } 80%, 100% { left: calc(100% - 2.2rem); opacity: 0; } }

/* ---- viz: browser ---- */
.viz-browser { max-width: 21rem; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.viz-browser .bar { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.viz-browser .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.viz-browser .sk { display: grid; gap: 8px; padding: 14px; justify-items: start; }
.viz-browser .sk b { display: block; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.06) 75%) 0 0 / 200% 100%; animation: shimmer 2.6s linear infinite; }
.viz-browser .sk b.h { width: 70%; height: 12px; }
.viz-browser .sk b.s { width: 46%; }
.viz-browser .cta { width: 5.5rem; height: 1.4rem; margin-top: 4px; border-radius: 99px; background: var(--accent); animation: ctaPulse 3s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ember), 0); } 50% { box-shadow: 0 0 0 6px rgba(var(--ember), 0.25), 0 0 22px rgba(var(--ember), 0.6); } }

/* ---------- Social media scope ---------- */
.social { display: grid; gap: var(--space-7); }
.social-copy .btn-row { margin-top: var(--space-6); }
.scope { list-style: none; margin: 0; padding: 0; }
.scope li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); margin: 0; }
.scope li:last-child { border-bottom: 1px solid var(--line); }
.scope-n { color: var(--edge); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.scope-t { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.012em; line-height: 1.3; }
@media (min-width: 62rem) {
  .social { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); }
  .social-copy { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; }
}

/* ---------- How we work ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.process > li { margin: 0; padding: var(--space-6) var(--space-5); border-top: 1px solid var(--line); }
.process > li:first-child { border-top: 0; }
.step-n { display: block; margin-bottom: var(--space-6); font-family: var(--font-display); font-size: 3.25rem; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.process h3 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.process p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 62rem) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process > li { border-top: 0; border-left: 1px solid var(--line); padding: var(--space-6); }
  .process > li:first-child { border-left: 0; }
}

/* ---------- The system behind the work ---------- */
.system { display: grid; gap: var(--space-7); align-items: center; }
.ticks { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.ticks li { position: relative; margin: 0; padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--line); color: var(--text); }
.ticks li::before { content: "+"; position: absolute; left: 0; top: 0.55rem; color: var(--accent); font-size: 1.25rem; line-height: 1.4; }
@media (min-width: 62rem) { .system { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-9); } }

/* ---------- Case rows, automation band, team: dark treatments ---------- */
.case-row { border-top-color: var(--line); }
.case-visual { background: var(--surface); border-radius: 16px; }
.case-body h3 { font-size: var(--step-2); }
.case-link:hover { text-decoration: none; }
.chain-node { background: var(--lit); border-color: rgba(255, 255, 255, 0.4); border-radius: 10px; font-family: var(--font-body); font-weight: 500; }

.auto { display: grid; gap: var(--space-6); align-items: end; }
.auto .n8n-stats { margin-top: 0; gap: var(--space-5) var(--space-6); }
.auto .n8n-stats b { font-size: var(--step-3); }
@media (min-width: 62rem) { .auto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); } }

.team-card { background: var(--surface); border-radius: var(--radius-panel); }
.team-card h3 { font-size: 1.625rem; }
.team-role { color: var(--text-muted); font-weight: 500; }

/* ---------- Closing CTA ---------- */
.cta-a { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(var(--space-9), 12vw, 9.5rem) clamp(var(--space-9), 14vw, 11rem); }
.cta-a::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 70%;
  width: max(1300px, 160vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -2px 70px rgba(var(--ember), 0.4), inset 0 3px 90px -24px rgba(var(--ember), 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 34%, #000 66%, transparent 90%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 34%, #000 66%, transparent 90%);
}
.cta-a h2 { max-width: 14ch; margin-inline: auto; font-size: var(--step-4); }
.cta-a .lead { max-width: 34em; margin: 0 auto var(--space-6); color: var(--text-muted); }
.cta-a .btn-row { justify-content: center; }
/* Pages that end with the big closing call to action skip the footer's own headline */
body:has(.cta-a) .site-footer { margin-top: 0; }
body:has(.cta-a) .footer-lede { display: none; }

/* ---------- Services page ---------- */
.page-top { padding-block: clamp(var(--space-8), 9vw, 7rem) clamp(var(--space-6), 4vw, var(--space-7)); }
.page-top h1 { max-width: 18ch; font-size: var(--step-5); letter-spacing: -0.04em; line-height: 1.02; }
.page-top .lead { max-width: 38em; color: var(--text-muted); margin: 0; }
.svc-detail { padding-block: clamp(var(--space-7), 7vw, var(--space-9)); }
.svc-detail-grid { display: grid; gap: var(--space-6); }
.svc-detail-head h2 { font-size: var(--step-3); }
.svc-idx { margin: 0 0 var(--space-3); color: var(--edge); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.scope-title { margin: 0 0 var(--space-3); font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; color: var(--text-muted); }
.scope-list { list-style: none; margin: 0; padding: 0; }
.scope-list li { position: relative; margin: 0; padding: 0.95rem 0 0.95rem 2rem; border-top: 1px solid var(--line); }
.scope-list li:last-child { border-bottom: 1px solid var(--line); }
.scope-list li::before { content: "+"; position: absolute; left: 0; top: 0.8rem; color: var(--accent); font-size: 1.25rem; line-height: 1.5; }
@media (min-width: 62rem) { .svc-detail-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } .svc-detail-head { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; } }

/* ---------- Form tweaks ---------- */
.field label.check { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-weight: 400; }
.check input { margin: 0; }

/* =====================================================================
   v2.1: social-media-first home. Fan of real reels, floral line art, work scroller.
   ===================================================================== */

/* ---------- Floral line art (sprite in partials/floral-sprite.html) ---------- */
.floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  color: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 100%;
}
.motion .floral { animation: sway 11s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.8deg; } }
.floral--flip { scale: -1 1; }
.floral--bloom { transform-origin: 50% 50%; }
.motion .floral--bloom { animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.has-floral { position: relative; isolation: isolate; overflow-x: clip; }
.has-floral > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero-a h1 { max-width: 17ch; }
.hero-a .floral--h1 { width: clamp(5rem, 11vw, 9rem); aspect-ratio: 140 / 220; left: max(0.5rem, calc(50% - 40rem)); top: 6rem; }
.hero-a .floral--h2 { width: clamp(5rem, 11vw, 9rem); aspect-ratio: 140 / 220; right: max(0.5rem, calc(50% - 40rem)); top: 9rem; }
@media (max-width: 47.99rem) { .hero-a .floral { display: none; } }

.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(15rem, 36vw, 26rem); margin-top: clamp(2.25rem, 6vw, 4.5rem); }
.fan-img {
  width: clamp(5.25rem, 15vw, 12rem);
  aspect-ratio: 9 / 14;
  height: auto;
  object-fit: cover;
  object-position: top;
  margin-inline: clamp(-1.1rem, -1.6vw, -0.4rem);
  border-radius: clamp(12px, 1.6vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 54px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  background: var(--surface);
}
.fan-img:nth-of-type(3) { width: clamp(6.25rem, 18vw, 14rem); z-index: 3; }
.fan-img:nth-of-type(2), .fan-img:nth-of-type(4) { z-index: 2; }
.motion .fan-img { animation: bob 8s ease-in-out infinite; }
.motion .fan-img:nth-of-type(even) { animation-delay: -3s; }
.motion .fan-img:nth-of-type(3) { animation-delay: -5s; }
@keyframes bob { 50% { translate: 0 -0.6rem; } }
.fan-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.9rem;
  border-radius: var(--radius-chip);
  background: rgba(16, 16, 16, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 36px -12px rgba(0, 0, 0, 0.8);
  color: var(--text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.fan-chip b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.fan-chip.c1 { left: 3%; top: 6%; }
.fan-chip.c2 { right: 2%; top: 22%; }
.fan-chip.c3 { left: 9%; bottom: 14%; }
@media (max-width: 47.99rem) { .fan-chip.c3 { display: none; } .fan-chip { padding: 0.4rem 0.8rem; } .fan-chip b { font-size: 1.2rem; } .fan-chip.c1 { left: 0; } .fan-chip.c2 { right: 0; } }

/* ---------- Social media section ---------- */
.social-a { padding-block: clamp(var(--space-8), 9vw, var(--space-10)); }
.social-a .sec-head { max-width: 34rem; }
.social-a .floral--branch { width: clamp(9rem, 18vw, 15rem); aspect-ratio: 280 / 500; right: max(0rem, calc(50% - 38rem)); top: -2rem; opacity: 0.9; }
.social-a .floral--bloom { width: clamp(11rem, 24vw, 20rem); aspect-ratio: 1; left: max(-5rem, calc(50% - 47rem)); bottom: -4rem; color: rgba(255, 255, 255, 0.28); }
.social-a .floral--sprig { width: clamp(4rem, 8vw, 6rem); aspect-ratio: 140 / 220; right: max(5rem, calc(50% - 26rem)); bottom: -1rem; }
@media (max-width: 47.99rem) { .social-a .floral--sprig { display: none; } .social-a .floral--branch { opacity: 0.55; top: 3rem; } }

.tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 12.5rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 15, 15, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tile:hover { border-color: rgba(255, 255, 255, 0.34); transform: translateY(-3px); }
.tile .ico { width: 2.9rem; height: 2.9rem; padding: 0.7rem; margin-bottom: 1.4rem; border: 1px solid var(--line-strong); border-radius: 16px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 255, 255, 0.04); }
.tile h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.45; }
.tile--cta { justify-content: space-between; border-color: rgba(var(--ember), 0.5); background: linear-gradient(160deg, rgba(var(--ember), 0.16), rgba(15, 15, 15, 0.8) 70%); }
.tile-cta-t { font-family: var(--font-display); font-size: 1.45rem !important; line-height: 1.15 !important; letter-spacing: -0.02em; color: var(--text) !important; margin-bottom: 1rem !important; }
@media (min-width: 62rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Work scroller ---------- */
.work-a { overflow: hidden; }
.work-a .sec-head { display: grid; gap: var(--space-5); max-width: none; align-items: end; }
.work-a .sec-head h2 { margin: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); list-style: none; margin: 0; padding: 0; }
.stat-row li { display: flex; flex-direction: column; margin: 0; }
.stat-row b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); letter-spacing: -0.04em; line-height: 1; }
.stat-row span { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.35rem; }
.sec-head .stat-note, .stat-note { margin: var(--space-3) 0 0; font-size: 0.875rem; }
@media (min-width: 40rem) { .stat-row { gap: var(--space-4) var(--space-7); } }
@media (min-width: 62rem) { .work-a .sec-head { grid-template-columns: minmax(0, 1fr) auto; } }

.wk { --edge: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2); position: relative; }
.wk-track {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 8px var(--edge) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.wk-track::-webkit-scrollbar { display: none; }
.wk-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.wk-track:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 12px; }
.wk-item { flex: 0 0 auto; width: min(82vw, 22rem); margin: 0; scroll-snap-align: start; }

.wk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), var(--surface);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}
.wk-card:hover { border-color: rgba(255, 255, 255, 0.36); transform: translateY(-5px); }
.wk-card:has(.wk-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.wk-visual {
  position: relative;
  height: 15.5rem;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(var(--ember), 0.25), transparent 72%), var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.wk-img {
  position: absolute;
  bottom: -2rem;
  width: 37%;
  height: auto;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.85);
  background: var(--surface);
  transition: transform 0.6s var(--ease);
}
.wk-img--1 { left: 7%; transform: rotate(-8deg); }
.wk-img--2 { left: 31%; width: 40%; bottom: -1rem; z-index: 2; }
.wk-img--3 { right: 7%; transform: rotate(8deg); }
.wk-card[data-n="2"] .wk-img--1 { left: 14%; transform: rotate(-5deg); }
.wk-card[data-n="2"] .wk-img--2 { left: 44%; width: 38%; transform: rotate(4deg); }
.wk-card:hover .wk-img--1 { transform: translateY(-6px) rotate(-10deg); }
.wk-card:hover .wk-img--2 { transform: translateY(-10px); }
.wk-card:hover .wk-img--3 { transform: translateY(-6px) rotate(10deg); }
.wk-card[data-n="2"]:hover .wk-img--2 { transform: translateY(-8px) rotate(5deg); }
.wk-tag { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 0.2rem 0.75rem; border-radius: var(--radius-chip); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 10, 10, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.8125rem; font-weight: 500; }
.wk-idx { position: absolute; z-index: 3; top: 12px; right: 18px; font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); }
.wk-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.35rem 1.35rem; }
.wk-name { margin: 0 0 0.4rem; color: var(--text-muted); font-size: 0.875rem; }
.wk-body h3 { margin: 0 0 1rem; font-size: 1.4rem; line-height: 1.15; }
.wk-link { color: var(--text); text-decoration: none; }
.wk-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.wk-link:hover { color: #fff; text-decoration: none; }
.wk-link:focus-visible { outline: none; }
.wk-big { margin: 0 0 0.9rem; }
.wk-big b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 3rem + 2vw, 4.6rem); letter-spacing: -0.05em; line-height: 0.95; color: var(--accent); }
.wk-big span { display: block; margin-top: 0.35rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.35; max-width: 18rem; }
.wk-pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 1.1rem; padding: 0; }
.wk-pills li { margin: 0; padding: 0.2rem 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-chip); font-size: 0.8125rem; }
.wk-cta { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--text); font-size: 0.9375rem; font-weight: 500; }
.wk-cta span { transition: transform 0.35s var(--ease); }
.wk-card:hover .wk-cta span { transform: translateX(4px); }

.wk-controls { display: flex; align-items: center; gap: 1.25rem; width: min(100% - 2 * var(--gutter), var(--container)); margin: 0.5rem auto 0; }
.wk-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wk-progress span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0.25)); transition: transform 0.25s var(--ease); }
.wk-arrows { display: flex; gap: 8px; }
.wk-arrow { width: 3rem; padding: 0; }
.wk-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wk-arrow[disabled] { opacity: 0.35; cursor: default; }

.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.wk-grid > li { margin: 0; }

/* ---------- How it starts (path) ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); list-style: none; margin: 0; padding: 0; counter-reset: p; }
.path li { margin: 0; }
.path-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--font-display); font-size: 1.1rem; }
.path li:first-child .path-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px -4px rgba(var(--ember), 0.6); }
.path h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.path p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
@media (min-width: 48rem) {
  .path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
  .path::before { content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: 3rem; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 85%, transparent); }
}

/* ---------- Team strip ---------- */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.crew-card { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.crew-photo { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--line-strong); }
.crew-photo--mono { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; background: var(--surface-2); color: var(--text); }
.crew h3 { margin: 0; font-size: 1.3rem; }
.crew-role { margin: 0.1rem 0 0.35rem; color: var(--text-muted); font-size: 0.9375rem; }
.crew a { font-size: 0.9375rem; }

/* ---------- Also from the studio ---------- */
.studio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.studio-label { margin: 0 0.5rem 0 0; color: var(--text-muted); }
.chip-link { display: inline-flex; align-items: center; padding: 0.45rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-chip); color: var(--text); text-decoration: none; font-size: 0.9375rem; transition: background-color 0.25s, border-color 0.25s; }
.chip-link:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* ---------- Case study pages (social) ---------- */
.wkc-head h1 { max-width: 20ch; font-size: var(--step-5); letter-spacing: -0.04em; line-height: 1.02; }
.wkc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin: 0 0 var(--space-5); color: var(--text-muted); font-size: 0.9375rem; }
.wkc-meta .chip { color: var(--text); }
.bignums { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden; }
.bignums li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 11rem; margin: 0; padding: 1.5rem; border-left: 1px solid var(--line); }
.bignums li:first-child { border-left: 0; }
.bignums b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.75rem); letter-spacing: -0.045em; line-height: 0.95; }
.bignums li:first-child b { color: var(--accent); }
.bignums span { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.35; }
.wkc-stats, .wkc-gallery, .wkc-body { padding-block: clamp(var(--space-6), 5vw, var(--space-8)); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 15.5rem)); justify-content: start; align-items: start; gap: 16px; list-style: none; margin: 0; padding: 0; }
.gallery li { margin: 0; }
.gallery-img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.wkc-grid { display: grid; gap: var(--space-6); }
.wkc-grid h2 { font-size: var(--step-2); }
@media (min-width: 62rem) { .wkc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); } }

/* ---------- About page ---------- */
.tile-link { color: var(--text); text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-link:hover { color: #fff; text-decoration: none; }
.tile-link:focus-visible { outline: none; }
.tile:has(.tile-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 62rem) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.about-lede { max-width: 42rem; }
.about-lede .lead { margin-bottom: var(--space-4); }
