/* Webfly Marketing Agency — standalone design system */

:root {
  --bg: #f8f7f4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #1c1c24;
  --text-muted: rgba(28, 28, 36, 0.68);
  --text-dim: rgba(28, 28, 36, 0.48);
  --accent: #e63956;
  --accent-2: #6d28d9;
  --accent-glow: rgba(230, 57, 86, 0.22);
  --line: rgba(28, 28, 36, 0.1);
  --container: 1280px;
  --radius: 2px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.72;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Geometric background layers ── */

.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-bg__plane {
  position: absolute;
  width: 140%;
  height: 55vh;
  opacity: 0.045;
  will-change: transform;
}

.geo-bg__plane--1 {
  top: -8%;
  left: -20%;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
  transform: rotate(-12deg);
  animation: geo-drift-1 28s ease-in-out infinite alternate;
}

.geo-bg__plane--2 {
  top: 38%;
  right: -30%;
  background: linear-gradient(-35deg, var(--accent-2) 0%, transparent 65%);
  transform: rotate(8deg);
  animation: geo-drift-2 34s ease-in-out infinite alternate;
}

.geo-bg__plane--3 {
  bottom: -12%;
  left: -10%;
  height: 40vh;
  background: linear-gradient(25deg, rgba(28, 28, 36, 0.06) 0%, transparent 60%);
  transform: rotate(-6deg);
  animation: geo-drift-3 22s ease-in-out infinite alternate;
}

.geo-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 28, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 36, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

@keyframes geo-drift-1 {
  from { transform: rotate(-12deg) translateY(0); }
  to { transform: rotate(-10deg) translateY(40px); }
}

@keyframes geo-drift-2 {
  from { transform: rotate(8deg) translateX(0); }
  to { transform: rotate(10deg) translateX(-30px); }
}

@keyframes geo-drift-3 {
  from { transform: rotate(-6deg) translateY(0); }
  to { transform: rotate(-4deg) translateY(-25px); }
}

/* ── Header ── */

.agency-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 300ms, border-color 300ms, padding 300ms;
  border-bottom: 1px solid transparent;
}

.agency-header.is-scrolled {
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: 0.85rem 0;
}

.agency-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.agency-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.agency-brand__mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.agency-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.agency-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  transition: color 200ms;
}

.agency-nav a:hover {
  color: var(--text);
}

.agency-nav__software {
  color: var(--text-dim) !important;
  font-size: 0.9375rem !important;
}

.agency-nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 999px;
  transition: transform 200ms, box-shadow 200ms;
}

.agency-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.agency-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Hero ── */

.agency-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
}

.agency-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.agency-hero__content {
  max-width: 560px;
}

.agency-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.agency-hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.agency-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.agency-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8fa3 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agency-hero__lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.agency-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-agency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms, background 200ms;
}

.btn-agency--primary {
  background: var(--accent);
  color: #fff;
}

.btn-agency--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-agency--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-agency--ghost:hover {
  border-color: rgba(28, 28, 36, 0.2);
  background: rgba(28, 28, 36, 0.04);
}

.agency-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.agency-hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* ── Hero 3D demo ── */

.hero-demo {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.hero-demo__device {
  position: relative;
  width: min(100%, 480px);
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(6deg);
  animation: hero-demo-float 8s ease-in-out infinite;
}

@keyframes hero-demo-float {
  0%, 100% { transform: rotateY(-16deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-12deg) rotateX(4deg) translateY(-8px); }
}

.hero-demo__bezel {
  position: relative;
  padding: 0.55rem 0.55rem 0.7rem;
  background: linear-gradient(145deg, #2a2a32 0%, #121218 100%);
  border-radius: 14px 14px 4px 4px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 56px rgba(28, 28, 36, 0.18),
    0 8px 20px rgba(28, 28, 36, 0.1);
  transform: translateZ(20px);
}

.hero-demo__camera {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a3a44;
}

.hero-demo__screen {
  border-radius: 6px;
  overflow: hidden;
  background: #0d1117;
  aspect-ratio: 16 / 11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-demo__chin {
  height: 7px;
  margin: 0 20%;
  background: linear-gradient(180deg, #1e1e26, #121218);
  border-radius: 0 0 4px 4px;
}

.hero-demo__stand {
  width: 32%;
  height: 44px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2a2a32, #181820);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  transform: rotateX(-10deg);
  transform-origin: top center;
}

.hero-demo__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(28, 28, 36, 0.22) 0%, transparent 70%);
  filter: blur(6px);
}

.hero-flow {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 0.55rem;
  color: #c9d1d9;
}

.hero-flow__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.hero-flow__chrome-title {
  font-weight: 600;
  color: #8b949e;
}

.hero-flow__chrome-step {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(230, 57, 86, 0.15);
  color: #ff8fa3;
  font-weight: 600;
  transition: opacity 300ms;
}

.hero-flow__stack {
  position: absolute;
  left: 0.45rem;
  top: 2.1rem;
  bottom: 0.45rem;
  width: 28%;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  z-index: 2;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-flow__card {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-10px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-flow__thumb {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.hero-flow__thumb--a { background: linear-gradient(135deg, #e63956, #ff8fa3); }
.hero-flow__thumb--b { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.hero-flow__thumb--c { background: linear-gradient(135deg, #0891b2, #67e8f9); }
.hero-flow__thumb--landing {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(230, 57, 86, 0.4) 100%);
}

.hero-flow__card-label {
  flex: 1;
  font-size: 0.5rem;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-flow__check {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #238636;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-flow__main {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0.45rem;
  margin-left: 0.45rem;
  transition: margin-left 0.6s ease;
}

.hero-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-view__tag {
  position: absolute;
  bottom: 0.35rem;
  right: 0.35rem;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  opacity: 0.7;
}

/* Creative grid */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.35rem;
  height: 100%;
  padding: 0.25rem;
}

.hero-grid__cell {
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.85);
  animation: hero-cell-in 0.45s ease forwards;
}

.hero-grid__cell--1 { background: linear-gradient(145deg, #e63956, #c1121f); animation-delay: 0.05s; }
.hero-grid__cell--2 { background: linear-gradient(145deg, #6d28d9, #4c1d95); animation-delay: 0.12s; }
.hero-grid__cell--3 { background: linear-gradient(145deg, #0891b2, #0e7490); animation-delay: 0.19s; }
.hero-grid__cell--4 { background: linear-gradient(145deg, #ca8a04, #a16207); animation-delay: 0.26s; }
.hero-grid__cell--5 { background: linear-gradient(145deg, #db2777, #9d174d); animation-delay: 0.33s; }
.hero-grid__cell--6 { background: linear-gradient(145deg, #059669, #047857); animation-delay: 0.4s; }

@keyframes hero-cell-in {
  to { opacity: 1; transform: scale(1); }
}

/* Landing mock */
.hero-landing {
  height: 100%;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-landing__bar {
  height: 0.35rem;
  width: 40%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-landing__hero {
  flex: 1;
  min-height: 2.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(230, 57, 86, 0.35), rgba(109, 40, 217, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-landing__line {
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-landing__line--short { width: 65%; }

.hero-landing__cta {
  width: 38%;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  align-self: flex-start;
}

/* Google Ads */
.hero-ads {
  height: 100%;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-ads__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-ads__g {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #ea4335 25% 50%, #fbbc04 50% 75%, #34a853 75% 100%);
  flex-shrink: 0;
}

.hero-ads__name {
  flex: 1;
  color: #e6edf3;
  font-weight: 500;
}

.hero-ads__stat {
  color: #3fb950;
  font-weight: 600;
  font-size: 0.5rem;
}

.hero-ads__conv {
  margin-top: auto;
  padding: 0.45rem;
  background: rgba(63, 185, 80, 0.08);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: 4px;
}

.hero-ads__conv span:first-child {
  display: block;
  color: #8b949e;
  margin-bottom: 0.15rem;
}

.hero-ads__conv strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #3fb950;
}

.hero-ads__conv-bar {
  display: block;
  height: 3px;
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hero-ads__conv-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #3fb950;
  border-radius: inherit;
  animation: hero-conv-bar 2s ease forwards infinite;
}

@keyframes hero-conv-bar {
  0%, 100% { width: 35%; }
  50% { width: 72%; }
}

/* A/B test */
.hero-ab {
  height: 100%;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  align-content: center;
}

.hero-ab__card {
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
}

.hero-ab__card--win {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.06);
}

.hero-ab__label {
  display: block;
  color: #8b949e;
  margin-bottom: 0.2rem;
}

.hero-ab__metric {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 0.3rem;
}

.hero-ab__bar {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hero-ab__bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #6d28d9, #e63956);
}

.hero-ab__card--win .hero-ab__bar i {
  background: #3fb950;
}

.hero-ab__win {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  font-size: 0.42rem;
  font-weight: 700;
  color: #3fb950;
  text-transform: uppercase;
}

/* Step state machine */
.hero-flow[data-step="1"] .hero-view--grid { opacity: 1; transform: scale(1); }
.hero-flow[data-step="1"] .hero-flow__main { margin-left: 0.45rem; }

.hero-flow[data-step="2"] .hero-flow__stack,
.hero-flow[data-step="3"] .hero-flow__stack,
.hero-flow[data-step="4"] .hero-flow__stack,
.hero-flow[data-step="5"] .hero-flow__stack,
.hero-flow[data-step="6"] .hero-flow__stack {
  opacity: 1;
  transform: translateX(0);
}

.hero-flow[data-step="2"] .hero-flow__main,
.hero-flow[data-step="3"] .hero-flow__main,
.hero-flow[data-step="4"] .hero-flow__main,
.hero-flow[data-step="5"] .hero-flow__main,
.hero-flow[data-step="6"] .hero-flow__main {
  margin-left: calc(28% + 0.65rem);
}

.hero-flow[data-step="2"] .hero-flow__card--1,
.hero-flow[data-step="2"] .hero-flow__card--2,
.hero-flow[data-step="2"] .hero-flow__card--3,
.hero-flow[data-step="3"] .hero-flow__card--1,
.hero-flow[data-step="3"] .hero-flow__card--2,
.hero-flow[data-step="3"] .hero-flow__card--3,
.hero-flow[data-step="4"] .hero-flow__card--1,
.hero-flow[data-step="4"] .hero-flow__card--2,
.hero-flow[data-step="4"] .hero-flow__card--3,
.hero-flow[data-step="5"] .hero-flow__card--1,
.hero-flow[data-step="5"] .hero-flow__card--2,
.hero-flow[data-step="5"] .hero-flow__card--3,
.hero-flow[data-step="6"] .hero-flow__card--1,
.hero-flow[data-step="6"] .hero-flow__card--2,
.hero-flow[data-step="6"] .hero-flow__card--3 {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-flow[data-step="2"] .hero-flow__card--1 .hero-flow__check,
.hero-flow[data-step="2"] .hero-flow__card--2 .hero-flow__check,
.hero-flow[data-step="2"] .hero-flow__card--3 .hero-flow__check,
.hero-flow[data-step="3"] .hero-flow__card--1 .hero-flow__check,
.hero-flow[data-step="3"] .hero-flow__card--2 .hero-flow__check,
.hero-flow[data-step="3"] .hero-flow__card--3 .hero-flow__check,
.hero-flow[data-step="4"] .hero-flow__card--1 .hero-flow__check,
.hero-flow[data-step="4"] .hero-flow__card--2 .hero-flow__check,
.hero-flow[data-step="4"] .hero-flow__card--3 .hero-flow__check,
.hero-flow[data-step="4"] .hero-flow__card--4 .hero-flow__check,
.hero-flow[data-step="5"] .hero-flow__card--1 .hero-flow__check,
.hero-flow[data-step="5"] .hero-flow__card--2 .hero-flow__check,
.hero-flow[data-step="5"] .hero-flow__card--3 .hero-flow__check,
.hero-flow[data-step="5"] .hero-flow__card--4 .hero-flow__check,
.hero-flow[data-step="6"] .hero-flow__card--1 .hero-flow__check,
.hero-flow[data-step="6"] .hero-flow__card--2 .hero-flow__check,
.hero-flow[data-step="6"] .hero-flow__card--3 .hero-flow__check,
.hero-flow[data-step="6"] .hero-flow__card--4 .hero-flow__check {
  transform: scale(1);
}

.hero-flow[data-step="2"] .hero-flow__card--1 { transition-delay: 0.05s; }
.hero-flow[data-step="2"] .hero-flow__card--2 { transition-delay: 0.12s; }
.hero-flow[data-step="2"] .hero-flow__card--3 { transition-delay: 0.19s; }

.hero-flow[data-step="2"] .hero-view--grid { opacity: 0.15; transform: scale(0.88); }

.hero-flow[data-step="3"] .hero-view--landing { opacity: 1; transform: scale(1); }

.hero-flow[data-step="4"] .hero-flow__card--4 {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-flow[data-step="4"] .hero-view--landing { opacity: 0; transform: scale(0.85) translateX(-20px); }

.hero-flow[data-step="5"] .hero-view--ads { opacity: 1; transform: scale(1); }

.hero-flow[data-step="6"] .hero-view--ab { opacity: 1; transform: scale(1); }

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Sections ── */

.agency-section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.agency-section--diagonal {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  background: var(--bg-elevated);
  margin: 2rem 0;
  padding: clamp(6rem, 14vw, 10rem) 0;
}

.agency-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.agency-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.agency-section__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.agency-section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.agency-section__header--center {
  text-align: center;
}

.agency-section__header--center .agency-section__desc {
  margin: 0 auto;
}

/* ── Trust strip ── */

.trust-strip {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: #14141c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 2px 24px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(28, 28, 36, 0.06);
}

.trust-strip__label {
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 2rem;
}

.trust-strip__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
}

.trust-strip__logos img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 200ms;
}

.trust-strip__logos img:hover {
  opacity: 1;
}

/* ── Services grid ── */

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-tile {
  background: var(--bg);
  padding: 2.25rem;
  grid-column: span 4;
  transition: background 300ms;
}

.service-tile:hover {
  background: var(--bg-elevated);
}

.service-tile--wide {
  grid-column: span 6;
}

.service-tile--tall {
  grid-column: span 4;
  grid-row: span 1;
}

.service-tile__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(28, 28, 36, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 300ms;
}

.service-tile:hover .service-tile__num {
  color: var(--accent);
}

.service-tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.service-tile p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ── Work / portfolio ── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#work.agency-section--diagonal {
  padding: clamp(4rem, 9vw, 6rem) 0;
}

#work .agency-section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28, 28, 36, 0.04);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.work-grid--compact .work-card {
  min-height: 0;
}

.work-card--featured {
  grid-column: span 2;
  min-height: 480px;
  flex-direction: row;
}

.work-card__visual {
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  background: #f3f2ef;
}

.work-grid--compact .work-card__visual {
  flex: none;
  min-height: 0;
  height: 128px;
}

.work-card--featured .work-card__visual {
  min-height: auto;
  max-width: 55%;
}

.work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.85;
  transition: transform 600ms ease, opacity 400ms;
}

.work-card:hover .work-card__visual img {
  transform: scale(1.04);
  opacity: 1;
}

.work-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.work-grid--compact .work-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.work-grid--compact .work-card__tags {
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.work-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg);
}

.work-grid--compact .work-card__tag {
  font-size: 0.6875rem;
  padding: 0.2rem 0.55rem;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.work-grid--compact .work-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.45rem;
}

.work-card p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.work-grid--compact .work-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__metric {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.015em;
  line-height: 1;
}

.work-card__metric-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Stats band ── */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.stat-item__label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0;
}

/* ── Process ── */

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 3.5rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  color: rgba(28, 28, 36, 0.08);
  line-height: 1;
  transition: color 400ms;
}

.process-step:hover::before {
  color: var(--accent);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.process-step p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ── Hamilton ── */

.hamilton-section {
  position: relative;
  z-index: 1;
  min-height: clamp(28rem, 52vw, 36rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hamilton-section__bg {
  position: absolute;
  inset: 0;
  background:
    url("/images/hamilton-ontario.webp") center 35% / cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hamilton-section:hover .hamilton-section__bg {
  transform: scale(1.07);
}

.hamilton-section__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 12, 18, 0.88) 0%, rgba(12, 12, 18, 0.55) 42%, rgba(12, 12, 18, 0.25) 68%, rgba(12, 12, 18, 0.45) 100%),
    linear-gradient(to top, rgba(12, 12, 18, 0.5) 0%, transparent 45%);
}

.hamilton-section__inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.hamilton-card {
  max-width: 480px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f4f4f8;
}

.hamilton-card .agency-section__label {
  color: #ff8fa3;
}

.hamilton-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hamilton-card__lead {
  font-size: 0.975rem;
  line-height: 1.75;
  color: rgba(244, 244, 248, 0.78);
  margin-bottom: 1.75rem;
}

.hamilton-card__contact {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hamilton-card__contact-label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 244, 248, 0.5);
  margin-bottom: 0.5rem;
}

.hamilton-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hamilton-card__email {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 57, 86, 0.5);
  transition: color 200ms, border-color 200ms;
}

.hamilton-card__email:hover {
  color: #ff8fa3;
  border-bottom-color: #ff8fa3;
}

.hamilton-pin {
  position: absolute;
  z-index: 1;
  left: 58%;
  top: 42%;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -100%);
}

.hamilton-pin__core {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow:
    0 0 12px rgba(230, 57, 86, 0.9),
    0 0 28px rgba(230, 57, 86, 0.55);
}

.hamilton-pin__core::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  opacity: 0.35;
}

.hamilton-pin__ring {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  border: 2px solid rgba(230, 57, 86, 0.55);
  border-radius: 50%;
  transform: rotateX(72deg);
  animation: hamilton-pulse 2.8s ease-out infinite;
}

.hamilton-pin__ring--2 {
  animation-delay: 0.9s;
}

.hamilton-pin__ring--3 {
  animation-delay: 1.8s;
}

@keyframes hamilton-pulse {
  0% {
    transform: rotateX(72deg) scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: rotateX(72deg) scale(2.2);
    opacity: 0;
  }
}

/* ── CTA ── */

.agency-cta {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.agency-cta__inner {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
  text-align: center;
}

.agency-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 86, 0.06) 0%, transparent 50%, rgba(109, 40, 217, 0.05) 100%);
  pointer-events: none;
}

.agency-cta__inner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(-25deg, rgba(230, 57, 86, 0.05), transparent 60%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.agency-cta h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.agency-cta p {
  position: relative;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.agency-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Footer ── */

.agency-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.agency-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.agency-footer__links {
  display: flex;
  gap: 2rem;
}

.agency-footer__links a:hover {
  color: var(--text-muted);
}

/* ── Scroll reveal ── */

.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-delay="3"] { transition-delay: 0.3s; }
.reveal-up[data-delay="4"] { transition-delay: 0.4s; }

/* ── Google Ads guarantee ── */

.google-ads-section {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.google-ads-section__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.google-ads-section__copy .agency-section__desc {
  margin-bottom: 1.75rem;
}

.google-ads-section__list {
  display: grid;
  gap: 0.85rem;
}

.google-ads-section__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.google-ads-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.google-ads-guarantee {
  position: relative;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(28, 28, 36, 0.04),
    0 20px 50px rgba(28, 28, 36, 0.06);
  overflow: hidden;
}

.google-ads-guarantee::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #4285f4 0%,
    #ea4335 33%,
    #fbbc04 66%,
    #34a853 100%
  );
}

.google-ads-guarantee__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(230, 57, 86, 0.1);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.google-ads-guarantee__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.google-ads-guarantee__body {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.google-ads-guarantee__checks {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.google-ads-guarantee__checks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.google-ads-guarantee__checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #34a853;
  font-weight: 700;
}

.google-ads-guarantee .btn-agency {
  width: 100%;
}

/* ── Real-time dashboard showcase ── */

.dashboard-section {
  overflow: hidden;
}

.dashboard-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.dashboard-section__copy .agency-section__desc {
  margin-bottom: 2rem;
}

.dashboard-section__points {
  display: grid;
  gap: 1.25rem;
}

.dashboard-section__points li {
  padding-left: 1.25rem;
  border-left: 2px solid rgba(230, 57, 86, 0.35);
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.dashboard-section__points strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.dashboard-stage {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-device {
  position: relative;
  width: min(100%, 520px);
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
  animation: dashboard-float 7s ease-in-out infinite;
}

@keyframes dashboard-float {
  0%, 100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-14deg) rotateX(6deg) translateY(-10px); }
}

.dashboard-device__bezel {
  position: relative;
  padding: 0.65rem 0.65rem 0.85rem;
  background: linear-gradient(145deg, #2a2a32 0%, #121218 100%);
  border-radius: 14px 14px 4px 4px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px rgba(28, 28, 36, 0.22),
    0 8px 24px rgba(28, 28, 36, 0.12);
  transform: translateZ(24px);
}

.dashboard-device__camera {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a44;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-device__screen {
  border-radius: 6px;
  overflow: hidden;
  background: #0d1117;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-device__chin {
  height: 8px;
  margin: 0 18%;
  background: linear-gradient(180deg, #1e1e26, #121218);
  border-radius: 0 0 4px 4px;
  transform: translateZ(12px);
}

.dashboard-device__stand {
  width: 34%;
  height: 52px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2a2a32 0%, #181820 100%);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  transform: translateZ(8px) rotateX(-12deg);
  transform-origin: top center;
}

.dashboard-device__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(28, 28, 36, 0.28) 0%, transparent 70%);
  transform: translateZ(-20px) rotateX(90deg) scale(1.2);
  filter: blur(6px);
}

.dash-ui {
  height: 100%;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.62rem;
  color: #c9d1d9;
}

.dash-ui__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-ui__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-ui__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-ui__dot--live {
  background: #3fb950;
  box-shadow: 0 0 8px rgba(63, 185, 80, 0.8);
  animation: dash-pulse 2s ease-in-out infinite;
}

@keyframes dash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.dash-ui__time {
  font-variant-numeric: tabular-nums;
  color: #8b949e;
}

.dash-ui__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.dash-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
}

.dash-metric__label {
  display: block;
  font-size: 0.55rem;
  color: #8b949e;
  margin-bottom: 0.15rem;
}

.dash-metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #f0f6fc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.dash-metric__delta {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.52rem;
  font-weight: 600;
}

.dash-metric__delta--up {
  color: #3fb950;
}

.dash-ui__panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dash-ui__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: #8b949e;
  font-size: 0.55rem;
}

.dash-ui__pill {
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(230, 57, 86, 0.18);
  color: #ff8fa3;
  font-weight: 600;
}

.dash-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  min-height: 72px;
}

.dash-chart__bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #e63956 0%, rgba(230, 57, 86, 0.35) 100%);
  transform-origin: bottom;
  transform: scaleY(0.15);
  opacity: 0.5;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
}

.dashboard-stage.is-visible .dash-chart__bar {
  transform: scaleY(1);
  opacity: 1;
}

.dashboard-stage.is-visible .dash-chart__bar:nth-child(2) { transition-delay: 0.05s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(3) { transition-delay: 0.1s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(4) { transition-delay: 0.15s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(5) { transition-delay: 0.2s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(6) { transition-delay: 0.25s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(7) { transition-delay: 0.3s; }
.dashboard-stage.is-visible .dash-chart__bar:nth-child(8) { transition-delay: 0.35s; }

.dash-ui__rows {
  display: grid;
  gap: 0.35rem;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  color: #8b949e;
}

.dash-row__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.dash-row__bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #6d28d9, #e63956);
}

.dashboard-stage.is-visible .dash-row__bar i {
  animation: dash-bar-grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dash-bar-grow {
  from { width: 0; }
  to { width: var(--w, 50%); }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .service-tile,
  .service-tile--wide,
  .service-tile--tall {
    grid-column: span 6;
  }

  .work-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card--featured {
    flex-direction: column;
  }

  .work-card--featured .work-card__visual {
    max-width: none;
    min-height: 240px;
  }

  .process-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item {
    border-bottom: 1px solid var(--line);
  }

  .dashboard-section__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .google-ads-section__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agency-nav {
    display: none;
  }

  .agency-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .agency-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 4rem;
    background: var(--bg);
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-tile,
  .service-tile--wide,
  .service-tile--tall {
    grid-column: span 1;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid--compact {
    grid-template-columns: 1fr;
  }

  .work-card--featured {
    grid-column: span 1;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
  }

  .agency-hero__scroll {
    display: none;
  }

  .agency-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-demo {
    order: -1;
  }

  .hero-demo__device {
    transform: rotateY(-8deg) rotateX(4deg);
    width: min(100%, 400px);
  }

  .hamilton-pin {
    left: 72%;
    top: 38%;
  }

  .hamilton-card {
    max-width: none;
  }

  .agency-hero__content {
    max-width: none;
  }

  .dashboard-section__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stage {
    min-height: 320px;
    order: -1;
  }

  .dashboard-device {
    transform: rotateY(-8deg) rotateX(4deg);
    width: min(100%, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-bg__plane,
  .agency-hero__scroll-line,
  .dashboard-device,
  .dash-ui__dot--live,
  .hero-demo__device,
  .hero-grid__cell,
  .hero-ads__conv-bar i {
    animation: none;
  }

  .hero-demo__device {
    transform: rotateY(-12deg) rotateX(5deg);
  }

  .hero-grid__cell {
    opacity: 1;
    transform: scale(1);
  }

  .hamilton-section__bg,
  .hamilton-pin__ring {
    animation: none;
    transition: none;
  }

  .hamilton-section:hover .hamilton-section__bg {
    transform: scale(1.04);
  }

  .dash-chart__bar {
    transform: scaleY(1);
    opacity: 1;
    transition: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
