.seo-page .desktop-nav {
  gap: clamp(16px, 1.8vw, 30px);
}

.seo-page .desktop-nav a[aria-current="page"]::after {
  right: 0;
}

.seo-hero {
  min-height: min(760px, calc(100vh - 130px));
}

.seo-hero-stage {
  min-height: 520px;
}

.seo-research-board {
  position: absolute;
  z-index: 2;
  width: min(92%, 610px);
  left: 0;
  top: 10%;
  padding: clamp(25px, 3vw, 38px);
  color: var(--ink);
  background: var(--white);
  border: 7px solid white;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.research-board-heading {
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.research-board-heading span,
.seo-research-board > p {
  color: #667177;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.research-board-heading strong {
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.04em;
}

.research-terms {
  margin: 0;
  padding: 12px 0 6px;
  list-style: none;
}

.research-terms li {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.research-terms li span {
  font-weight: 760;
}

.research-terms li strong {
  min-width: 56px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
}

.seo-research-board > p {
  margin: 17px 0 0;
}

.seo-hero .proof-chip {
  right: -1%;
  top: 2%;
}

.seo-hero .project-chip {
  left: -4%;
  bottom: 3%;
}

.seo-opportunity-panel {
  padding: clamp(28px, 4vw, 48px);
  color: white;
  background: var(--green);
  border-radius: var(--radius-md);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
}

.seo-opportunity-panel .eyebrow {
  color: var(--lime);
}

.opportunity-line {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, .34);
}

.opportunity-line:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .34);
}

.opportunity-line span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 820;
}

.opportunity-line strong {
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.seo-card-visual {
  position: relative;
  width: 88%;
  height: 235px;
  margin: 10px auto 30px;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--ink);
  border-radius: 12px;
  box-shadow: 12px 13px 0 rgba(23, 36, 44, .18);
}

.seo-card-keywords {
  padding: 38px 24px 24px;
  transform: rotate(-4deg);
}

.seo-card-keywords span {
  display: block;
  height: 16px;
  margin-bottom: 18px;
  background: #dfe5df;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.seo-card-keywords span:nth-child(1) { width: 88%; }
.seo-card-keywords span:nth-child(2) { width: 67%; }
.seo-card-keywords span:nth-child(3) { width: 78%; }

.seo-card-keywords i {
  position: absolute;
  right: 24px;
  bottom: 23px;
  width: 40%;
  height: 22px;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.seo-card-technical {
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px 18px;
  align-items: center;
  transform: rotate(3deg);
}

.seo-card-technical b {
  grid-row: 1 / 4;
  width: 78px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
}

.seo-card-technical span {
  height: 24px;
  background: #e2e6df;
  border: 3px solid var(--ink);
  border-radius: 5px;
}

.seo-card-local {
  transform: rotate(-3deg);
}

.seo-card-local div {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 56%;
  height: 152px;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 8px 8px;
}

.seo-card-local i {
  position: absolute;
  left: 42%;
  top: 48px;
  width: 42px;
  height: 42px;
  background: var(--coral);
  border: 4px solid var(--ink);
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
}

.seo-card-local b {
  position: absolute;
  right: 24px;
  bottom: 28px;
  width: 32%;
  height: 52px;
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 5px;
}

.seo-page .service-card .card-link {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.seo-scope {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
}

.seo-scope-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.seo-scope-list span {
  padding: 20px 16px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  font-weight: 720;
}

.seo-scope-list span + span {
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.seo-scope-list span:nth-child(4) {
  border-left: 0;
}

.seo-scope-list span:nth-child(n+4) {
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.seo-page .credential-logo-semrush img {
  padding: 6px;
  background: #fff;
  border-radius: 11px;
}

.seo-toolkit .eyebrow {
  color: var(--lime);
}

.seo-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seo-tool-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 20px;
  transition: transform .2s ease, background .2s ease;
}

.seo-tool-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .06);
}

.seo-tool-featured {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.seo-tool-featured:hover {
  background: var(--lime);
}

.seo-tool-card-wide {
  grid-column: span 2;
}

.seo-tool-logo {
  width: 62px;
  height: 62px;
  padding: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  border-radius: 15px;
}

.seo-tool-logo-wide {
  width: 118px;
}

.seo-tool-logo-frog {
  width: 210px;
}

.seo-tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seo-tool-card strong {
  display: block;
  margin-bottom: 5px;
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.seo-tool-card small {
  display: block;
  max-width: 260px;
  color: #aeb8bd;
  font-size: 13px;
  line-height: 1.45;
}

.seo-tool-featured small {
  color: rgba(23, 36, 44, .7);
}

.tool-status {
  align-self: flex-start;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-tool-featured .tool-status {
  color: rgba(23, 36, 44, .72);
  border-color: rgba(23, 36, 44, .18);
}

.seo-tool-note {
  max-width: 720px;
  margin: 26px 0 0;
  color: #919da3;
  font-size: 12px;
}

.seo-page .approach .eyebrow {
  color: var(--lime);
}

.seo-page .steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
}

.step-number {
  padding-top: 5px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 820;
}

.seo-links-section {
  width: var(--shell);
  margin: 0 auto 130px;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.seo-related-grid a {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.seo-related-grid a:nth-child(2) { background: #fff0ea; }
.seo-related-grid a:nth-child(3) { background: #fff6df; }

.seo-related-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(16, 25, 31, .1);
}

.seo-related-grid span {
  margin-bottom: 38px;
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-related-grid strong {
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.03;
}

.seo-related-grid b {
  margin-top: auto;
  align-self: flex-end;
  font-size: 30px;
  font-weight: 400;
}

.seo-faq {
  width: var(--shell);
  margin: 0 auto 130px;
  padding: clamp(58px, 7vw, 94px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(45px, 8vw, 120px);
  background: var(--white);
  border: 1px solid rgba(23, 36, 44, .09);
  border-radius: var(--radius-lg);
}

.seo-faq-heading h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .98;
}

.seo-faq-list details {
  border-top: 1px solid var(--line);
}

.seo-faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-faq-list summary {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -.025em;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.seo-faq-list summary::-webkit-details-marker {
  display: none;
}

.seo-faq-list summary span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: 500;
  transition: transform .2s ease;
}

.seo-faq-list details[open] summary span {
  transform: rotate(45deg);
}

.seo-faq-list details p {
  max-width: 680px;
  padding: 0 48px 25px 0;
  margin: 0;
  color: #59636a;
}

.seo-faq-list details p a {
  font-weight: 750;
  text-underline-offset: 3px;
}

.seo-page .contact-band .eyebrow {
  color: var(--lime);
}

.credentials-service-link {
  margin-top: 28px;
}

.seo-friendly-link {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .seo-hero-stage {
    min-height: 540px;
  }

  .seo-introduction {
    grid-template-columns: 1fr;
  }

  .seo-introduction .yorkshire-agency-copy {
    order: -1;
  }

  .seo-scope {
    grid-template-columns: 1fr;
  }

  .seo-scope-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .seo-scope-list span:nth-child(4) {
    border-left: 1px solid rgba(255, 255, 255, .18);
  }

  .seo-scope-list span:nth-child(odd) {
    border-left: 0;
  }

  .seo-scope-list span:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  .seo-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-related-grid {
    grid-template-columns: 1fr;
  }

  .seo-related-grid a {
    min-height: 220px;
  }

  .seo-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seo-hero-stage {
    min-height: 415px;
    margin-top: 18px;
  }

  .seo-research-board {
    width: 96%;
    top: 8%;
    padding: 19px;
    border-width: 5px;
    border-radius: 16px;
  }

  .research-board-heading {
    padding-bottom: 14px;
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .research-terms li {
    padding: 10px 0;
    font-size: 13px;
  }

  .seo-hero .proof-chip {
    right: -2%;
    top: 0;
  }

  .seo-hero .project-chip {
    left: 0;
    bottom: -1%;
  }

  .seo-opportunity-panel {
    padding: 30px 22px;
  }

  .opportunity-line {
    padding: 18px 0;
  }

  .seo-card-visual {
    width: 92%;
    height: 190px;
  }

  .seo-card-local div {
    height: 120px;
  }

  .seo-scope-list {
    grid-template-columns: 1fr;
  }

  .seo-scope-list span + span,
  .seo-scope-list span:nth-child(4) {
    border-left: 0;
  }

  .seo-scope-list span:nth-child(n+2) {
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  .seo-tool-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .seo-tool-card,
  .seo-tool-card-wide {
    grid-column: auto;
    min-height: 220px;
    border-radius: 15px;
  }

  .seo-page .steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .seo-links-section {
    margin-bottom: 90px;
  }

  .seo-related-grid {
    gap: 8px;
  }

  .seo-related-grid a {
    min-height: 210px;
    padding: 22px;
    border-radius: 18px;
  }

  .seo-faq {
    margin-bottom: 90px;
    padding: 48px 22px;
    gap: 30px;
  }

  .seo-faq-heading h2 {
    font-size: 44px;
  }

  .seo-faq-list summary {
    padding: 20px 0;
    font-size: 18px;
  }

  .seo-faq-list details p {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-research-board,
  .seo-opportunity-panel {
    transform: none;
  }
}
