/* Lokaal Leads — production landing
   Precision local-agency: white studio, electric blue charge */

:root {
  --bg: #F7F8FB;
  --white: #FFFFFF;
  --ink: #0B1220;
  --body: #4B5568;
  --muted: #6B7280;
  --blue: #0066FF;
  --blue-deep: #0052CC;
  --cyan: #00C6FF;
  --grad: linear-gradient(90deg, #00C6FF 0%, #0066FF 100%);
  --grad-br: linear-gradient(135deg, #00C6FF 0%, #0066FF 100%);
  --wash: #EEF4FF;
  --line: #E6EAF2;
  --success: #12B76A;
  --success-text: #067647;
  --success-soft: #E7F8EF;
  --shadow: none;
  --shadow-lg: none;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transform: translateY(-220%);
}

.skip:focus {
  transform: none;
}

.grain {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.accent {
  color: var(--blue);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  background: var(--blue-deep);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding-inline: 0.2rem;
  min-height: 44px;
}

.btn--ghost:hover {
  box-shadow: none;
  filter: none;
  color: var(--blue);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand__word {
  display: flex;
  gap: 0.38rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand__lokaal {
  color: var(--ink);
}

.brand__leads {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a.is-active::after,
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  margin: 1rem 0 1.15rem;
  max-width: 13ch;
}

.hero__lead {
  font-size: 1.12rem;
  max-width: 38ch;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
}

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 260px 216px;
  justify-self: end;
  align-items: center;
  min-height: 560px;
}

.device {
  position: relative;
  z-index: 1;
  width: 260px;
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(160deg, #2a2c31, #111216 40%, #0a0b0e);
  border-radius: 42px;
  padding: 11px;
  box-shadow: none;
  border: 1px solid #1a1b1f;
}

.device__btn {
  position: absolute;
  background: #1a1b1f;
  border-radius: 2px;
}

.device__btn--silent {
  left: -3px;
  top: 92px;
  width: 3px;
  height: 22px;
}

.device__btn--vol-up {
  left: -3px;
  top: 128px;
  width: 3px;
  height: 38px;
}

.device__btn--vol-down {
  left: -3px;
  top: 174px;
  width: 3px;
  height: 38px;
}

.device__btn--power {
  right: -3px;
  top: 148px;
  width: 3px;
  height: 54px;
}

.device__screen {
  position: relative;
  background: #f0f2f5;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.4;
}

.device__island {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #0a0a0c;
  border-radius: 20px;
}

.ad {
  padding: 42px 0 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ad__status {
  position: absolute;
  top: 12px;
  left: 18px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  z-index: 2;
  font-family: var(--font-body);
}

.ad__card {
  background: #fff;
  margin: 0 8px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ad__head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 6px;
}

.ad__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ad__name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.ad__meta {
  font-size: 10.5px;
  color: #65676b;
}

.ad__dots {
  color: #65676b;
  letter-spacing: 1px;
  font-weight: 800;
}

.ad__copy {
  padding: 0 12px 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #1c1e21;
}

.ad__photo {
  width: 100%;
  flex: 1 0 200px;
  min-height: 200px;
  height: auto;
  object-fit: cover;
}

.ad__cta {
  margin: 10px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #1b74e4;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.ad__engage {
  padding: 8px 10px 10px;
  flex-shrink: 0;
}

.ad__reacts {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #65676b;
  padding-bottom: 8px;
}

.ad__pills {
  display: inline-flex;
}

.ad__pills span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  line-height: 1;
  color: #fff;
  border: 1.5px solid #fff;
  margin-left: -4px;
}

.ad__pills span:first-child {
  margin-left: 0;
  background: #1877f2;
}

.ad__pills span:last-child {
  background: #f33e58;
}

.ad__actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e4e6eb;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #65676b;
}

.metrics {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  width: 216px;
  margin-left: -10px;
  align-self: start;
  margin-top: 18%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.05rem 1.15rem 1rem;
}

.metrics__live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55);
  animation: pulse 1.8s infinite;
}

.metrics__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.metrics__live + .metrics__row {
  border-top: 0;
  padding-top: 0;
}

.metrics__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.metrics__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.delta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success-text);
  align-self: end;
}

.spark {
  grid-column: 1 / -1;
  width: 100%;
  height: 36px;
  margin-top: 0.15rem;
}

.spark__line {
  fill: none;
  stroke: url(#spark-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 1.6s 0.8s var(--ease) forwards;
}

/* Diensten */

.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.6rem;
}

.section h2,
.cta-band h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 800;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  min-height: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.service:hover {
  border-color: #c9d4e8;
  background: #fff;
}

.service:nth-child(1) {
  background: #fff;
}

.service__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

.service h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.service p {
  font-size: 0.95rem;
}

.service__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

/* Cases */

.cases-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}

.case {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 340px;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.case img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}

.case:hover img {
  transform: scale(1.05);
}

.case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 15%, rgba(11, 18, 32, 0.55) 55%, rgba(11, 18, 32, 0.92) 100%);
}

.case__body {
  padding: 1.4rem;
  width: 100%;
}

.case__metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 12px rgba(11, 18, 32, 0.5);
}

.case__cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.case h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.case p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

/* Resultaten */

.results {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.stat-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.25rem;
}

.stat:hover {
  background: #fff;
}

.stat__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--wash);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.92rem;
}

.stat__spark {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0.55rem 0 0.15rem;
}

.stat__spark path.line {
  fill: none;
  stroke: url(#stat-grad);
  stroke-width: 2;
  stroke-linecap: round;
}

.stat__spark path.fill {
  fill: url(#stat-fill);
}

/* Over ons */

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.about__panel {
  background: var(--ink);
  color: #c9d0dc;
  border-radius: 24px;
  padding: 2rem 1.8rem;
}

.about__panel h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.about__panel li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  font-size: 0.98rem;
}

.about__panel li:first-of-type {
  border-top: 0;
}

.about__panel svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  margin-top: 3px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.req {
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.18);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d92d20;
  background: #fff8f7;
}

.error {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #d92d20;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form__submit {
  margin-top: 0.4rem;
}

.form__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA band */

.cta-band {
  padding: 0 0 1.5rem;
}

.cta-band__inner {
  background: var(--wash);
  border-radius: 28px;
  padding: 3rem 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  max-width: 16ch;
  margin-top: 0.7rem;
}

.cta-side {
  text-align: center;
}

.cta-side p {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--body);
}

/* Footer */

.site-footer {
  padding: 2rem 0 6.5rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.footer-nav a:hover {
  color: var(--blue);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: 0.2s;
}

.socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.legal {
  width: min(1180px, calc(100% - 40px));
  margin: 1rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal a {
  color: var(--muted);
}

/* Cookie */

.cookie {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.cookie.is-on {
  display: flex;
}

.cookie p {
  font-size: 0.88rem;
}

.cookie .btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  flex-shrink: 0;
  box-shadow: none;
}

/* Inner pages */

.page {
  padding: 4rem 0 5rem;
}

.page__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.4rem;
  max-width: 760px;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.6rem 0 1.2rem;
}

.page h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.5rem;
}

.page p + p {
  margin-top: 0.8rem;
}

.thanks {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: 3rem 1.5rem 4rem;
}

.thanks__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
}

.thanks h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: 0.8rem;
}

/* Focus */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.42s; }
.d5 { animation-delay: 0.58s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(18, 183, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .spark__line,
  .dot,
  .case img,
  .service,
  .stat,
  .case {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .services,
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid,
  .results,
  .about,
  .contact-grid,
  .section-head,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero__visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    justify-self: stretch;
  }

  .device {
    width: min(260px, 100%);
  }

  .metrics {
    position: relative;
    grid-column: auto;
    width: min(216px, 100%);
    margin: 1.5rem auto 0;
    align-self: center;
  }

  .cta-side {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #F7F8FB;
    padding: 1.5rem 1.25rem 2rem;
    gap: 0.4rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 45;
  }

  .nav-drawer.is-open {
    transform: none;
  }

  .nav-drawer a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
    padding: 0.55rem 0;
    letter-spacing: -0.03em;
  }

  .nav-drawer a.btn {
    margin-top: 1.25rem;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.85rem 1.45rem;
    min-height: 52px;
    color: #fff;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero__visual {
    min-height: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .form__grid,
  .stats,
  .services,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case {
    min-height: 280px;
  }

  .site-footer__inner,
  .cookie,
  .legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__inner,
  .form,
  .page__card,
  .about__panel {
    padding: 1.4rem;
  }

  .hero {
    padding-bottom: 3.5rem;
  }
}
