/*
 * Page styles — capabilities/technical-seo
 * Conforming to Kosh Media Design System tokens in design-system.css
 */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── REVEAL ANIMATIONS ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
}
.rv.in {
  opacity: 1 !important;
  transform: none !important;
}
.rv.d1 { transition-delay: .10s; }
.rv.d2 { transition-delay: .20s; }
.rv.d3 { transition-delay: .30s; }
.rv.d4 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── SHARED SECTION TYPOGRAPHY & SPACING ── */
.tseo-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}

.tseo-section__hl {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
}
.tseo-section__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.tseo-section__body {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
}
.tseo-section__body:last-of-type {
  margin-bottom: 0;
}

/* Eyebrows */
.tseo-hero .eyebrow,
.tseo-work .eyebrow,
.tseo-foundations .eyebrow,
.tseo-process .eyebrow,
.tseo-team .eyebrow,
.tseo-faq .eyebrow {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 18px;
  font-size: var(--fs-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   01. HERO
══════════════════════════════════════════════ */
.tseo-hero {
  padding: clamp(88px, 11vw, 144px) 0 clamp(72px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
}

.tseo-hero__hl {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 780px;
}
.tseo-hero__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.tseo-hero__body {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}

.tseo-hero__pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.tseo-hero__pillar {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.tseo-hero__sep {
  color: var(--line);
  font-size: 16px;
  line-height: 1;
}

.tseo-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s, gap .25s var(--ease);
}
.tseo-hero__cta:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  gap: 14px;
}
.tseo-hero__cta svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════════
   02. THE WORK YOU DON’T SEE
══════════════════════════════════════════════ */
.tseo-work {
  background: var(--bg-sand);
}

.tseo-work__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.tseo-work__source {
  margin-top: 24px;
}

.tseo-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: .02em;
  transition: border-color .2s, color .2s;
}
.tseo-source-link:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.tseo-source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}
.tseo-ext-icon {
  width: 11px;
  height: 11px;
  opacity: .7;
}

/* Diagnostic Disagree Panel */
.tseo-disagree-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
  overflow: hidden;
}

.tseo-disagree-panel__header {
  background: var(--color-primary);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tseo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
  flex-shrink: 0;
}

.tseo-disagree-panel__banner {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.4;
}

.tseo-disagree-list {
  display: flex;
  flex-direction: column;
}

.tseo-disagree-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.tseo-disagree-item:last-child {
  border-bottom: none;
}
.tseo-disagree-item:hover {
  background: var(--bg-tint);
}

.tseo-disagree-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tseo-disagree-item__label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}

.tseo-disagree-item__arrow {
  color: var(--color-secondary);
  font-size: 15px;
  font-weight: 500;
}

.tseo-disagree-item__query {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.tseo-disagree-item__meta {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: .02em;
}

/* ══════════════════════════════════════════════
   03. WHAT WE LOOK AT — FOUNDATION ROWS
══════════════════════════════════════════════ */
.tseo-foundations {
  background: var(--bg-page);
}

.tseo-foundations__intro {
  margin-bottom: 52px;
}

.tseo-foundations__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tseo-foundation-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
  cursor: default;
  position: relative;
}
.tseo-foundation-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-secondary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.tseo-foundation-row:hover {
  padding-left: 14px;
}
.tseo-foundation-row:hover::before {
  transform: scaleY(1);
}

.tseo-foundation-row__num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  color: rgba(20, 18, 16, .15);
  line-height: 1;
  padding-top: 2px;
  transition: color .3s;
}
.tseo-foundation-row:hover .tseo-foundation-row__num {
  color: var(--color-secondary);
}

.tseo-foundation-row__name {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: .02em;
  transition: color .3s;
}
.tseo-foundation-row:hover .tseo-foundation-row__name {
  color: var(--color-secondary);
}

.tseo-foundation-row__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
}

.tseo-inline-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
  transition: opacity .2s;
}
.tseo-inline-ref:hover {
  opacity: .8;
  text-decoration: underline;
}
.tseo-inline-ref svg {
  width: 10px;
  height: 10px;
}

.tseo-foundation-row__tags {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-tertiary);
  text-align: right;
  padding-top: 3px;
  max-width: 240px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   04. FROM CRAWL TO CLARITY — PROCESS STEPS
══════════════════════════════════════════════ */
.tseo-process {
  background: var(--bg-sand);
}

.tseo-process__header {
  margin-bottom: 48px;
}

.tseo-process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(20, 18, 16, .10);
  border: 1px solid rgba(20, 18, 16, .10);
}

.tseo-step {
  background: var(--bg-sand);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .25s;
}
.tseo-step:hover {
  background: #ffffff;
}

.tseo-step__num {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 300;
  color: rgba(20, 18, 16, .15);
  line-height: 1;
  transition: color .3s;
}
.tseo-step:hover .tseo-step__num {
  color: var(--color-secondary);
}

.tseo-step__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: .02em;
}

.tseo-step__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   05. NOT JUST AN AUDIT — DARK SECTION
══════════════════════════════════════════════ */
.inner main > section.tseo-roadmap,
.tseo-roadmap {
  background: var(--bg-dark) !important;
  background-color: var(--bg-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.tseo-roadmap .eyebrow {
  color: var(--color-tertiary) !important;
}

.tseo-roadmap .tseo-section__hl {
  color: #ffffff !important;
}
.tseo-roadmap .tseo-section__hl em {
  color: var(--color-tertiary) !important;
}

.tseo-roadmap__sub {
  color: var(--text-on-dark-3) !important;
  max-width: 680px;
  margin-bottom: 44px;
}

.tseo-roadmap__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 40px;
}

.tseo-pillar-card {
  background: var(--bg-dark) !important;
  padding: 30px 24px;
  transition: background .25s;
}
.tseo-pillar-card:hover {
  background: #1C1A18 !important;
}

.tseo-pillar-card__title {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff !important;
  margin-bottom: 10px;
  line-height: 1.35;
}

.tseo-pillar-card__desc {
  font-size: 13px;
  color: var(--text-on-dark-3) !important;
  line-height: 1.6;
}

.tseo-roadmap__tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.tseo-roadmap__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-tertiary);
  letter-spacing: .04em;
}

.tseo-roadmap__dot {
  color: rgba(255, 255, 255, .2);
}

.tseo-roadmap__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-secondary) !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: background .2s, gap .25s var(--ease);
}
.tseo-roadmap__btn:hover {
  background: var(--color-tertiary) !important;
  color: #ffffff !important;
  gap: 15px;
}
.tseo-roadmap__btn svg {
  width: 13px;
  height: 13px;
}

/* ══════════════════════════════════════════════
   06. BUILT TO WORK WITH YOUR TEAM
══════════════════════════════════════════════ */
.tseo-team {
  background: var(--bg-page);
}

.tseo-team__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.tseo-team__cards {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tseo-team-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.tseo-team-card:hover {
  padding-left: 10px;
}

.tseo-team-card__title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tseo-team-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* ══════════════════════════════════════════════
   07. BEFORE WE START (FAQS)
══════════════════════════════════════════════ */
.tseo-faq {
  background: var(--bg-sand);
}

.tseo-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.tseo-faq__items {
  display: flex;
  flex-direction: column;
}

.tseo-faq-item {
  border-top: 1px solid rgba(20, 18, 16, .12);
}
.tseo-faq-item:last-child {
  border-bottom: 1px solid rgba(20, 18, 16, .12);
}

.tseo-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition: color .2s;
}
.tseo-faq-q:hover {
  color: var(--color-secondary);
}

.tseo-faq-q__num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-secondary);
  margin-right: 6px;
}

.tseo-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  transition: background .2s, border-color .2s, transform .35s var(--ease);
}
.tseo-faq-item.open .tseo-faq-icon {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: rotate(45deg);
}
.tseo-faq-icon svg {
  width: 10px;
  height: 10px;
  color: var(--text-tertiary);
  transition: color .2s;
}
.tseo-faq-item.open .tseo-faq-icon svg {
  color: #ffffff;
}

.tseo-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), padding .45s var(--ease);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
}
.tseo-faq-item.open .tseo-faq-a {
  max-height: 220px;
  padding-bottom: 20px;
}

/* ══════════════════════════════════════════════
   08. FINAL CTA
══════════════════════════════════════════════ */
.inner main > section.tseo-cta,
.tseo-cta {
  background: var(--bg-dark) !important;
  background-color: var(--bg-dark) !important;
  padding: clamp(72px, 9vw, 120px) 0;
  border-bottom: none;
}

.tseo-cta__inner {
  max-width: 660px;
}

.tseo-cta .eyebrow {
  color: var(--color-tertiary) !important;
  margin-bottom: 16px;
}

.tseo-cta__hl {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: #ffffff !important;
  margin-bottom: 18px;
}

.tseo-cta__body {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-on-dark-3) !important;
  margin-bottom: 36px;
  line-height: 1.65;
}

.tseo-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-secondary) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 32px;
  transition: background .2s, gap .25s var(--ease);
}
.tseo-cta__btn:hover {
  background: var(--color-tertiary) !important;
  color: #ffffff !important;
  gap: 16px;
}
.tseo-cta__btn svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .tseo-work__grid,
  .tseo-team__grid,
  .tseo-faq__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tseo-process__steps {
    grid-template-columns: 1fr;
  }

  .tseo-roadmap__pillars {
    grid-template-columns: 1fr 1fr;
  }

  .tseo-foundation-row {
    grid-template-columns: 44px 1fr;
  }
  .tseo-foundation-row__tags {
    display: none;
  }
}

@media (max-width: 640px) {
  .tseo-disagree-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tseo-disagree-item__head {
    justify-content: flex-start;
    gap: 10px;
  }

  .tseo-roadmap__pillars {
    grid-template-columns: 1fr;
  }

  .tseo-roadmap__tags-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
