/* =========================================================
   Forward Labs — main stylesheet
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout / container
   5. Buttons & links
   6. Navigation (sticky pill + mobile overlay)
   7. Hero + dot trail + help blob
   8. Masked photos
   9. Sections (expertise, clients, work, why-us, contact)
   10. Help page
   11. Footer
   12. Responsive
   13. Reduced motion
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #0088ff;
  --blue-hover: #0072d6;
  --blue-ink: #0a63b8;        /* accessible blue for body copy on light */
  --magenta: #ff0066;

  /* Section themes */
  --theme-blue: #0088ff;
  --theme-teal: #00bfa6;
  --theme-green: #01c853;
  --theme-amber: #ffa003;
  --theme-purple: #b29fff;
  --theme-coral: #ef5a63;

  --ink: #12202e;
  --white: #ffffff;
  --paper: #ffffff;
  --muted: #5b6b7b;
  --footer-bg: #0088ff;

  --font-display: "Capriola", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;

  --maxw: 1400px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --radius: 16px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.125rem, 0.95rem + 0.75vw, 1.375rem);
  line-height: 1.5;
  color: var(--blue);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

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

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--blue);
}

h1 { font-size: clamp(2rem, 1.3rem + 3.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1.25vw, 1.875rem); }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ---------- 4. Layout / container ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { margin-top: 0.75rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }

.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* On colored sections */
.on-color .btn--primary { background: #fff; color: var(--blue); }
.on-color .btn--primary:hover { background: rgba(255,255,255,0.88); }
.on-color .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.on-color .btn--ghost:hover { background: #fff; color: var(--blue); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-color: currentColor; }

/* ---------- 6. Navigation ---------- */
.site-header {
  position: sticky;
  top: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 100;
  padding-inline: var(--gutter);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
}

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--blue);
  border-radius: var(--radius-pill);
  padding: 0.85rem 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 30px -10px rgba(4, 20, 40, 0.35);
}

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo svg, .nav__logo img { height: 18px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}
.nav__links a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
}
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.25rem 0.25rem;
}

/* Mobile full-screen overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 5vw, 3rem);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}
.menu-overlay.is-open { transform: translateY(0); visibility: visible; }

.menu-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-overlay__top svg, .menu-overlay__top img { height: 18px; width: auto; }
.menu-overlay__close {
  background: transparent; border: 0; color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; cursor: pointer;
}

.menu-overlay__links {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vw, 1rem);
}
.menu-overlay__links a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 4rem);
  color: #fff;
  line-height: 1.1;
}
.menu-overlay__links a:hover { opacity: 0.8; }

body.menu-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero-zone {
  position: relative;
  overflow: hidden;
}
.hero {
  position: relative;
  /* The dot-trail canvas is a sibling underneath, so this box must not
     swallow pointer events. Interactive children opt back in below. */
  pointer-events: none;
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; pointer-events: none; }

.hero__content {
  max-width: 48rem;
  pointer-events: none;
  position: relative;
  margin-top: 10rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg, 1.5rem);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 80%);
}
.hero__content h1 {
  pointer-events: auto;
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.75vw, 2.625rem);
  line-height: 1.3;
  letter-spacing: 0;
}
.hero__intro {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.85rem + 0.75vw, 1.25rem);
  line-height: 1.8;
  pointer-events: auto;
}
.hero__cta { margin-top: 2rem; pointer-events: auto; }

/* Floating help blob */
.help-blob {
  pointer-events: auto;
  position: absolute;
  /* Pull up on tall screens; stay below the sticky nav when height is tight. */
  top: clamp(-7rem, 5rem - 12vh, -2.5rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 2;
  width: clamp(180px, 24vw, 300px);
  aspect-ratio: 376 / 454;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  animation: float 6s ease-in-out infinite;
}
.help-blob__shape { position: absolute; inset: 0; z-index: 0; }
.help-blob__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}
.help-blob__icon { width: clamp(40px, 5vw, 60px); height: auto; }
.help-blob__text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  line-height: 1.1;
  color: #fff;
}
.help-blob__cta {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.help-blob__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s var(--ease);
}
.help-blob:hover { animation-play-state: paused; }
.help-blob:hover .help-blob__cta::after { width: 100%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* ---------- 8. Masked photos ---------- */
.masked-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
}
.masked-photo img,
.masked-photo svg { width: 100%; height: 100%; }
.masked-photo img { object-fit: cover; }
/* Static fallback shape via CSS mask when JS morph is unavailable */
.masked-photo[data-mask] > img {
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ---------- 9. Sections ---------- */
/* Colored section wrapper */
.on-color { color: #fff; }
.on-color h1, .on-color h2, .on-color h3, .on-color .eyebrow { color: #fff; }
.on-color .text-link { color: #fff; }

.theme-white  { background: var(--white); }
.theme-blue   { background: var(--theme-blue); }
.theme-teal   { background: var(--theme-teal); }
.theme-green  { background: var(--theme-green); }
.theme-amber  { background: var(--theme-amber); }
.theme-purple { background: var(--theme-purple); }
.theme-coral  { background: var(--theme-coral); }

/* Full-height content sections, vertically centered */
.section--tall {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section--tall > .container { width: 100%; }

/* Clients */
.clients { text-align: left; position: relative; pointer-events: none; padding-top: clamp(2.8rem, 6.3vw, 5.6rem); }
.clients__heading {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  max-width: none;
}
/* Each logo carries its own `--w`, the width it has in the design file.
   Dividing by the design's row width turns those into percentages, so the
   whole set scales with the container while keeping the drawn proportions. */
.clients__rows {
  /* 957 is the design-file row width; dividing by 0.85 shrinks every logo 15%. */
  --logo-row: 1126;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}
.clients__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.clients__row li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: calc(var(--w) / var(--logo-row) * 100%);
}
.clients__row img {
  width: 100%;
  height: auto;
}

/* Expertise blocks */
.expertise-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.expertise-block--reverse .expertise-block__media { order: -1; }
.expertise-block__body { max-width: 46ch; }
.expertise-block__headline { margin-bottom: 1.25rem; }
.expertise-block__text { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }

/* Work grid + slider */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.work-cover {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.work-cover__frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.work-cover__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.work-cover:hover .work-cover__frame img,
.work-cover:focus-visible .work-cover__frame img {
  transform: scale(1.05);
}
.work-cover__title {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(0.9375rem, 0.8rem + 0.5vw, 1.25rem);
  color: var(--blue);
}

/* Dashed separator above the slider */
.work-divider {
  height: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background-image: repeating-linear-gradient(
    to right,
    var(--blue) 0,
    var(--blue) 2px,
    transparent 2px,
    transparent 12px
  );
}

/* Offset auto-scroll targets so they clear the sticky top nav. */
.work,
.work-slider__inner { scroll-margin-top: clamp(6rem, 8vw, 8rem); }

/* Accordion slider (hidden until a cover is selected) */
.work-slider {
  --slide-size: 72%;
  --slide-gap: 1.25rem;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.work-slider.is-open { grid-template-rows: 1fr; }
.work-slider__inner {
  overflow: hidden;
  min-height: 0;
}
/* When fully open, let hover-scaled buttons overflow without being clipped. */
.work-slider.is-settled .work-slider__inner { overflow: visible; }
.work-slider__viewport {
  overflow: hidden;
}
.work-slider__track {
  display: flex;
  gap: var(--slide-gap);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.work-slider__slide {
  flex: 0 0 var(--slide-size);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 136, 255, 0.06);
}
.work-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-slider__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.work-slider__meta { max-width: var(--slide-size); }
.work-slider__title { color: var(--blue); }
.work-slider__services {
  color: var(--blue);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  margin-top: 0.5rem;
}
.work-slider__url {
  display: inline-flex;
  position: relative;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--blue);
}
.work-slider__url::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.work-slider__url:hover::after { width: 100%; }
.work-slider__nav {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.work-slider__nav .work__btn:hover { transform: scale(1.06); }
.work-slider__close { margin-left: 20px; }

.work__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.work__btn img { width: 100%; height: 100%; }
.work__btn:hover { transform: scale(1.06); }
.work__btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Why-us / contact split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__body { max-width: 46ch; }
.split__text { margin-block: 1.25rem 2rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }

/* ---------- 10. Help page ---------- */
.help-hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.help-hero > .container { width: 100%; }
.help-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.help-hero__inner { max-width: 42ch; }
.help-hero h1 { margin-bottom: 2rem; }
.help-hero__copy p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); margin-bottom: 1.25rem; }
.help-hero__cta { margin-top: 2rem; }

/* Legal pages (privacy, terms) */
.legal-page {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.legal-page__container {
  max-width: 72ch;
}
.legal-page h1 {
  margin-bottom: 0.5rem;
}
.legal-page__effective {
  margin-bottom: 2rem;
  color: var(--muted);
}
.legal-page h2 {
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legal-page a {
  color: var(--blue);
  text-decoration: underline;
}
.help-hero .work-divider { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* Help form */
.help-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.help-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.help-form__field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #0088ff;
}
.help-form input,
.help-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid rgba(18, 32, 46, 0.15);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.help-form textarea {
  resize: vertical;
  min-height: 7rem;
}
.help-form input:focus,
.help-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.18);
}
.help-form input.is-invalid,
.help-form textarea.is-invalid {
  border-color: var(--magenta);
}
.help-form__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.help-form__error {
  font-size: 0.85rem;
  color: var(--magenta);
  min-height: 1em;
}
.help-form__count {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 0 0 auto;
}
.help-form button[type="submit"] {
  align-self: flex-start;
}
.help-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.help-form__disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
}
.help-form__disclaimer a {
  color: var(--blue);
  text-decoration: underline;
}
.help-form__status {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  color: #0088ff;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer a { color: #fff; }
.footer__logo { margin-bottom: clamp(3rem, 7vw, 5rem); }
.footer__logo svg, .footer__logo img { height: 22px; width: auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.footer__col h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer__col h2 a { color: #fff; }
.footer__col li { margin-bottom: 0.75rem; }
.footer__col li a {
  position: relative;
  opacity: 0.9;
  font-size: 1.25rem;
  font-weight: 500;
}
.footer__col li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s var(--ease);
}
.footer__col li a:hover { opacity: 1; }
.footer__col li a:hover::after { width: 100%; }
.footer__cta { text-align: center; }
.footer__cta p { color: #fff; font-weight: 600; margin-bottom: 1.25rem; }
.site-footer .btn--primary { background: #fff; color: var(--blue); }
.site-footer .btn--primary:hover { background: rgba(255, 255, 255, 0.88); }
.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- 12. Responsive ---------- */
@media (max-height: 800px) and (min-width: 761px) {
  .work-slider { --slide-size: 65%; }
}

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
}

@media (max-width: 900px) {
  .expertise-block,
  .split,
  .help-hero__grid {
    grid-template-columns: 1fr;
  }
  .expertise-block--reverse .expertise-block__media,
  .split--reverse .split__media { order: 0; }
  .expertise-block__media,
  .split__media { max-width: 480px; }
  .clients__rows { --logo-scale: 0.7225; }
  .clients__row { justify-content: flex-start; }
  .clients__row li { width: calc(var(--w) * var(--logo-scale) * 1px); }
  .work-slider__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav { padding: 0.85rem 1.75rem; }
  .nav__logo svg, .nav__logo img { height: 14px; }
  .clients__rows {
    --logo-scale: 0.527;
    display: block;
  }
  .clients__row {
    display: inline;
    padding: 0;
    margin: 0;
  }
  .clients__row li {
    display: inline-flex;
    width: calc(var(--w) * var(--logo-scale) * 1px);
    margin: 0.5rem 1rem 0.5rem 0;
  }
  .expertise-block__media,
  .split__media { margin-top: 20px; }
  .hero__content { margin-top: 0; }
  .hero__grid {
    display: flex;
    flex-direction: column;
  }
  .help-blob {
    position: relative;
    top: auto;
    right: auto;
    width: min(58vw, 230px);
    margin: 0 0 2rem auto;
    order: -1;
    animation: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__logo svg, .footer__logo img { height: 18px; }
  .footer__cta { order: 1; text-align: center; margin-block: 2rem; }
  .work__btn { width: 32px; height: 32px; }
  .work-slider {
    --slide-size: 100%;
    --slide-gap: 0px;
  }
}

/* ---------- 13. Scroll-triggered animations ---------- */
[data-animate] {
  opacity: 0;
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .help-blob { animation: none; }
  [data-animate] { opacity: 1 !important; }
}
