/* ==========================================================================
   SearchXMedia — Search. Scale. Dominate.
   Brand stylesheet
   Palette : #0B0B0B  #1C1C1C  #FFFFFF  #007BFF  #00D9FF  #D9D9D9
   Type    : Space Grotesk (headings) / Inter (body)
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:        #0B0B0B;
  --graphite:   #1C1C1C;
  --graphite-2: #131313;
  --white:      #FFFFFF;
  --silver:     #D9D9D9;
  --blue:       #007BFF;
  --cyan:       #00D9FF;

  --muted:      #9BA1A8;
  --muted-dim:  #71777E;
  --line:       rgba(255, 255, 255, .09);
  --line-soft:  rgba(255, 255, 255, .05);

  --grad:       linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  --glow:       0 0 40px rgba(0, 123, 255, .35);

  --font-display: "Space Grotesk", "Inter", Arial, sans-serif;
  --font-body:    "Inter", Arial, Helvetica, sans-serif;

  --shell:  1240px;
  --gutter: 24px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--blue); color: var(--white); }

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

/* 3. Layout helpers
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.band--tight { padding: clamp(56px, 6vw, 84px) 0; }
.band--graphite { background: var(--graphite-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, .28);
  background: rgba(0, 123, 255, .07);
  border-radius: 100px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

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

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* Heading with a supporting link. Previously the heading sat hard left and
   the link hard right, which left these the only off-centre headings on the
   site. Now the pair stacks and centres, so every section head aligns. */
.split-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  margin-bottom: 50px;
}
.split-head .section-head { margin-bottom: 0; margin-inline: auto; text-align: center; }

/* 4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px -12px rgba(0, 123, 255, .9);
}
.btn--primary:hover { background: #1a8bff; box-shadow: 0 16px 38px -12px rgba(0, 123, 255, 1); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .18);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--cyan); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.text-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* 5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(11, 11, 11, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 11px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__x {
  color: var(--blue);
  font-size: 1.24em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(0, 123, 255, .85);
}
.brand--lg { font-size: 1.3rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list a {
  position: relative;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width .3s var(--ease);
}
.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after,
.nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--white); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  margin: 3.5px auto;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -14%;
  right: -8%;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(0, 123, 255, .28) 0%, rgba(0, 123, 255, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .shell { position: relative; z-index: 2; }

.hero__layout {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 62px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .line-2 { display: block; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stats .stat__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__stats .stat__label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 9px;
}

/* hero visual */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.hero__frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, .18) 0%, rgba(11, 11, 11, .78) 100%);
}

.hero__badge {
  position: absolute;
  z-index: 3;
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 1);
}
.hero__badge .badge__value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.hero__badge .badge__label {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}
.hero__badge--roi { left: -28px; bottom: 58px; }
.hero__badge--rank { right: -18px; top: 42px; }

/* 7. Trust marquee
   -------------------------------------------------------------------------- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0;
  background: var(--graphite-2);
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: 42px;
}
.trust__label {
  flex: 0 0 auto;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  white-space: nowrap;
}
.marquee {
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 62px;
  width: max-content;
  animation: slide 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .42);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span:hover { color: var(--white); }
@keyframes slide { to { transform: translateX(-50%); } }

/* 8. Features / capability split
   -------------------------------------------------------------------------- */
.features__layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 66px;
  align-items: center;
}
.features__layout--included { grid-template-columns: 1.2fr .8fr; }
.features__media { position: relative; }
.features__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  object-fit: cover;
}
.features__media .media-wide { height:auto; }
.features__media .media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.features__media .media-row img { height: 220px; }
.features__media .media-note {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 123, 255, .3);
  background: linear-gradient(150deg, rgba(0, 123, 255, .16), rgba(0, 217, 255, .04));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.media-note__value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.media-note__label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.check-list { margin: 26px 0 34px; display: grid; gap: 16px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--silver);
  font-size: .96rem;
}
.check-list .tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(0, 123, 255, .14);
  border: 1px solid rgba(0, 123, 255, .4);
  display: grid;
  place-items: center;
}
.check-list .tick svg { width: 11px; height: 11px; color: var(--cyan); }
.check-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 2px;
}
.check-list span.copy { color: var(--muted); font-size: .9rem; }

/* 9. Services
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 32px;
  overflow: hidden;
  transition: transform .38s var(--ease), border-color .38s var(--ease), background .38s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 123, 255, .42);
  background: #202020;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .12);
  border: 1px solid rgba(0, 123, 255, .3);
  color: var(--cyan);
  margin-bottom: 22px;
  transition: background .38s var(--ease), color .38s var(--ease);
}
.service-card__icon svg { width: 23px; height: 23px; }
.service-card:hover .service-card__icon { background: var(--blue); color: var(--white); }

.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .93rem; }

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-card__tags span {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 11px;
}

/* 10. Why choose / accordion
   -------------------------------------------------------------------------- */
.why__layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 62px;
  align-items: center;
}
.why__media { position: relative; }
.why__media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.why__media .badge-float {
  position: absolute;
  right: -22px;
  bottom: 34px;
  background: var(--blue);
  color: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--glow);
  max-width: 190px;
}
.badge-float .bf__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.badge-float .bf__label { font-size: .76rem; opacity: .88; margin-top: 8px; line-height: 1.45; }

.accordion { border-top: 1px solid var(--line); margin-top: 30px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  transition: color .25s var(--ease);
  letter-spacing: -.01em;
}
.acc-trigger:hover { color: var(--cyan); }
.acc-trigger::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.acc-item.is-open .acc-trigger::after { transform: translateY(-20%) rotate(-135deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s var(--ease);
}
.acc-panel p {
  color: var(--muted);
  font-size: .94rem;
  padding: 0 40px 24px 0;
}

/* 11. Metrics band
   -------------------------------------------------------------------------- */
.metrics {
  background:
    linear-gradient(rgba(11, 11, 11, .88), rgba(11, 11, 11, .94)),
    var(--graphite);
  border-block: 1px solid var(--line);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.metric__value .suffix { color: var(--blue); }
.metric__label {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 14px;
}

/* 12. Work / projects
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
}
.work-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
  filter: saturate(.8) brightness(.82);
}
.work-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.work-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 28px 26px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 11, .93) 58%);
}
.work-card__tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.work-card__overlay h3 { font-size: 1.22rem; margin-bottom: 8px; }
.work-card__result {
  font-size: .88rem;
  color: var(--muted);
}
.work-card__result b { color: var(--white); font-weight: 600; }

/* 13. Process
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 30px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.process-step:hover { border-color: rgba(0, 123, 255, .45); transform: translateY(-4px); }
.process-step__num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--blue);
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* 14. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.quote-card:hover { border-color: rgba(0, 217, 255, .35); transform: translateY(-4px); }
.quote-card__stars { color: var(--cyan); letter-spacing: 3px; font-size: .9rem; }
.quote-card blockquote {
  margin: 0;
  color: var(--silver);
  font-size: .97rem;
  line-height: 1.7;
}
.quote-card__by {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.quote-card__by .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .16);
  border: 1px solid rgba(0, 123, 255, .35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--cyan);
}
.quote-card__by .name {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
}
.quote-card__by .role { font-size: .78rem; color: var(--muted-dim); }

/* 15. Insights
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.post-card:hover { border-color: rgba(0, 123, 255, .42); transform: translateY(-5px); }
.post-card__thumb { overflow: hidden; }
.post-card__thumb img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  filter: saturate(.82) brightness(.86);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.post-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.post-card__meta .cat { color: var(--cyan); }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .9rem; }
.post-card .text-link { margin-top: auto; }

/* 16. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 123, 255, .34);
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 217, 255, .22), transparent 58%),
    linear-gradient(120deg, rgba(0, 123, 255, .16), rgba(11, 11, 11, .2)),
    var(--graphite);
  padding: clamp(44px, 6vw, 74px);
  text-align: center;
  overflow: hidden;
}
.cta-inner .watermark {
  position: absolute;
  right: -30px;
  bottom: -70px;
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .035);
  pointer-events: none;
  user-select: none;
}
.cta-inner h2 { max-width: 20ch; margin-inline: auto; }
.cta-inner p { color: var(--muted); max-width: 54ch; margin: 16px auto 0; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  position: relative;
  z-index: 2;
}

/* 17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--graphite-2);
  border-top: 1px solid var(--line);
  padding-top: 74px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 46px;
  padding-bottom: 56px;
}
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 18px; max-width: 34ch; }
.footer-tag {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 14px;
}
.footer-col h4 {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--muted);
  font-size: .92rem;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 13px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
}
.newsletter-form input::placeholder { color: var(--muted-dim); }
.newsletter-form input:focus { outline: none; border-color: var(--blue); }
.newsletter-form button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.newsletter-form button:hover { background: var(--cyan); color: var(--ink); }
.form-note { font-size: .78rem; color: var(--muted-dim); margin-top: 12px; }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all .3s var(--ease);
}
.socials a svg { width: 16px; height: 16px; }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.footer-bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--muted-dim);
}
.footer-bar a { transition: color .25s var(--ease); }
.footer-bar a:hover { color: var(--cyan); }
.footer-bar__links { display: flex; gap: 22px; }

/* 18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .service-grid,
  .quote-grid,
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__badge--rank { right: 8px; }
  .hero__badge--roi { left: 8px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    background: rgba(19, 19, 19, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 22px;
    display: none;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-list a::after { display: none; }
  .header-cta .btn { display: none; }

  .hero { padding: 132px 0 78px; }
  .hero__layout,
  .features__layout,
  .why__layout { grid-template-columns: 1fr; gap: 44px; }
  .why__media img { min-height: 320px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .hero__frame img { height: 600px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .service-grid,
  .quote-grid,
  .post-grid,
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .marquee { width: 100%; }
  .hero__stats { gap: 28px; }
  .hero__stats .stat { flex: 1 1 40%; }
  .features__media .media-row { grid-template-columns: 1fr; }
  .why__media .badge-float { right: 12px; bottom: 12px; }
  .hero__badge { padding: 13px 16px; }
  .cta-inner .watermark { font-size: 11rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .btn { padding: 14px 22px; }
}

/* 20. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   21. Inner pages
   ========================================================================== */

/* 21.1 Page banner ---------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 172px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(0, 123, 255, .22) 0%, rgba(0, 123, 255, 0) 64%);
  pointer-events: none;
}
.page-hero .shell { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }

.crumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 22px;
}
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-current] { color: var(--white); }

/* 21.2 Value grid ------------------------------------------------------ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 28px 24px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.value-card:hover { border-color: rgba(0, 217, 255, .4); transform: translateY(-4px); }
.value-card__mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 1rem; margin-bottom: 9px; }
.value-card p { color: var(--muted); font-size: .88rem; }

/* 21.3 Mission / vision ------------------------------------------------ */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.duo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(0, 123, 255, .1), transparent 62%),
    var(--graphite);
  padding: 40px 36px;
}
.duo-card h3 { font-size: 1.35rem; }
.duo-card p { color: var(--muted); }

/* 21.4 Alternating service rows ---------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-row__media { order: -1; }
.service-row__media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  filter: saturate(.85) brightness(.9);
}
.service-row__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.service-row h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.service-row p { color: var(--muted); }
.deliverables {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
}
.deliverables li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--silver);
}
.deliverables li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 217, 255, .8);
}

/* 21.5 Engagement / pricing tiers -------------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tier-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--graphite);
  padding: 34px 30px 32px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.tier-card:hover { transform: translateY(-5px); }
.tier-card--featured {
  border-color: rgba(0, 123, 255, .5);
  background:
    linear-gradient(160deg, rgba(0, 123, 255, .14), transparent 58%),
    var(--graphite);
  box-shadow: 0 30px 70px -40px rgba(0, 123, 255, .8);
}
.tier-card__flag {
  align-self: flex-start;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.tier-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tier-card__for { color: var(--muted-dim); font-size: .84rem; margin-bottom: 22px; }
.tier-card__list { display: grid; gap: 11px; margin-bottom: 28px; }
.tier-card__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--silver);
}
.tier-card__list li svg { width: 13px; height: 13px; margin-top: 5px; color: var(--cyan); flex: 0 0 auto; }
.tier-card .btn { margin-top: auto; justify-content: center; }

/* 21.6 Case study detail cards ----------------------------------------- */
.case-list { display: grid; gap: 22px; }
.case-row {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  transition: border-color .35s var(--ease);
}
.case-row:hover { border-color: rgba(0, 123, 255, .42); }
.case-row__media { overflow: hidden; }
.case-row__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: saturate(.82) brightness(.85);
  transition: transform .7s var(--ease);
}
.case-row:hover .case-row__media img { transform: scale(1.05); }
.case-row__body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.case-row__tag {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.case-row h3 { font-size: 1.4rem; }
.case-row p { color: var(--muted); font-size: .94rem; }
.result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.result-strip .r__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.result-strip .r__label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 8px;
}

/* 21.7 Featured post ---------------------------------------------------- */
.feature-post {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  margin-bottom: 46px;
}
.feature-post__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(.85) brightness(.88);
}
.feature-post__body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-post h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature-post p { color: var(--muted); }

/* 21.8 Contact ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: start;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--graphite);
  padding: 40px 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .93rem;
  width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--graphite); color: var(--white); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0, 123, 255, .06);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff6b6b; }
.field .err { font-size: .78rem; color: #ff6b6b; display: none; }
.field.has-error .err { display: block; }
.form-card .btn { margin-top: 26px; }
.form-status {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--cyan);
  display: none;
}
.form-status.is-shown { display: block; }

.info-stack { display: grid; gap: 16px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 26px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .3s var(--ease);
}
.info-card:hover { border-color: rgba(0, 123, 255, .4); }
.info-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .13);
  border: 1px solid rgba(0, 123, 255, .32);
  color: var(--cyan);
}
.info-card__icon svg { width: 18px; height: 18px; }
.info-card h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; }
.info-card a,
.info-card p { color: var(--muted); font-size: .93rem; }
.info-card a { transition: color .25s var(--ease); }
.info-card a:hover { color: var(--cyan); }

.hours-card {
  border: 1px solid rgba(0, 123, 255, .3);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(0, 123, 255, .14), transparent 60%), var(--graphite);
  padding: 26px;
}
.hours-card h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hours-card li:last-child { border-bottom: 0; }
.hours-card li b { color: var(--white); font-weight: 500; }

/* 21.9 Inner-page responsive ------------------------------------------- */
@media (max-width: 1080px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .page-hero { padding: 132px 0 60px; }
  .service-row { grid-template-columns: 1fr; gap: 32px; padding: 42px 0; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .service-row__media img { height: 260px; }
  .case-row,
  .feature-post,
  .contact-layout { grid-template-columns: 1fr; }
  .case-row__media img,
  .feature-post__media img { min-height: 240px; }
  .duo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .value-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card,
  .case-row__body,
  .feature-post__body { padding: 28px 22px; }
  .duo-card { padding: 30px 24px; }
  .result-strip { gap: 22px; }
}

/* ==========================================================================
   22. Dropdown navigation (Services / Industries / Insights)
   ========================================================================== */
.nav-list li.has-dropdown { position: relative; }
.nav-list .drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  color: var(--silver);
  padding: 6px 0;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 500;
  transition: color .25s var(--ease);
}
.drop-trigger:hover,
.has-dropdown.is-open .drop-trigger { color: var(--white); }
.nav-list li.has-dropdown.is-active-parent .drop-trigger { color: var(--white); }
.drop-trigger svg {
  width: 10px;
  height: 10px;
  transition: transform .3s var(--ease);
}
.has-dropdown.is-open .drop-trigger svg,
.has-dropdown:hover .drop-trigger svg { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: rgba(19, 19, 19, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 50;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: normal;
  transition: background .2s var(--ease);
}
.dropdown-panel a:hover { background: rgba(0, 123, 255, .12); }
.dropdown-panel a .item-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
}
.dropdown-panel a .item-sub {
  font-size: .76rem;
  color: var(--muted-dim);
}
.dropdown-panel a::after { display: none; }
.dropdown-panel .drop-all {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.dropdown-panel .drop-all .item-title { color: var(--cyan); }

@media (max-width: 900px) {
  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 14px;
    display: none;
    min-width: 0;
  }
  .has-dropdown.is-open .dropdown-panel { display: block; }
  .drop-trigger { width: 100%; justify-content: space-between; padding: 14px 0; }
  .nav-list li.has-dropdown { border-bottom: 1px solid var(--line-soft); }
  .nav-list li.has-dropdown .dropdown-panel a { padding: 9px 14px; }
}

/* ==========================================================================
   23. Legal / prose pages
   ========================================================================== */
.legal-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(0, 123, 255, .35);
  background: linear-gradient(150deg, rgba(0, 123, 255, .12), transparent 60%), var(--graphite);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 46px;
}
.legal-notice svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--cyan);
  margin-top: 2px;
}
.legal-notice p { color: var(--muted); font-size: .92rem; margin: 0; }
.legal-notice strong { color: var(--white); }

.legal-body { max-width: 780px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 46px;
  margin-bottom: 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-body li { color: var(--muted); font-size: .96rem; margin-bottom: 8px; }
.legal-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta {
  font-size: .82rem;
  color: var(--muted-dim);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 46px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
}
.legal-toc a { font-size: .86rem; color: var(--muted); }
.legal-toc a:hover { color: var(--cyan); }

/* ==========================================================================
   24. Sitemap page
   ========================================================================== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.sitemap-col h3 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sitemap-col > a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.sitemap-col ul { margin: 0 0 22px; display: grid; gap: 9px; }
.sitemap-col ul a { color: var(--muted); font-size: .92rem; }
.sitemap-col ul a:hover { color: var(--cyan); }

/* ==========================================================================
   25. Resource / guide / role cards
   ========================================================================== */
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.resource-card:hover { border-color: rgba(0, 123, 255, .42); transform: translateY(-5px); }
.resource-card__type {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, .3);
  background: rgba(0, 217, 255, .07);
  border-radius: 100px;
  padding: 5px 12px;
}
.resource-card h3 { font-size: 1.08rem; }
.resource-card p { color: var(--muted); font-size: .92rem; }
.resource-card .text-link { margin-top: auto; }

.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: border-color .3s var(--ease);
}
.role-card:hover { border-color: rgba(0, 123, 255, .4); }
.role-card__info h3 { font-size: 1.06rem; margin-bottom: 8px; }
.role-card__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted-dim);
}
.role-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.role-card__meta svg { width: 13px; height: 13px; }
.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.perk-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 28px 20px;
}
.perk-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .12);
  border: 1px solid rgba(0, 123, 255, .3);
  color: var(--cyan);
}
.perk-card__icon svg { width: 20px; height: 20px; }
.perk-card h3 { font-size: .96rem; margin-bottom: 8px; }
.perk-card p { color: var(--muted); font-size: .84rem; }

/* ==========================================================================
   26. Booking page
   ========================================================================== */
.expect-list { display: grid; gap: 18px; }
.expect-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 22px 24px;
}
.expect-item__num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .14);
  border: 1px solid rgba(0, 123, 255, .35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: var(--cyan);
}
.expect-item h3 { font-size: .96rem; margin-bottom: 5px; }
.expect-item p { color: var(--muted); font-size: .88rem; }

/* ==========================================================================
   27. Industry / service icon-grid (hub pages)
   ========================================================================== */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.link-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--graphite);
  padding: 34px 30px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.link-card:hover { transform: translateY(-6px); border-color: rgba(0, 123, 255, .42); background: #202020; }
.link-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .12);
  border: 1px solid rgba(0, 123, 255, .3);
  color: var(--cyan);
  margin-bottom: 22px;
}
.link-card__icon svg { width: 23px; height: 23px; }
.link-card h3 { margin-bottom: 10px; }
.link-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.link-card .text-link { pointer-events: none; }

/* ==========================================================================
   28. Extra responsive for new sections
   ========================================================================== */
@media (max-width: 1080px) {
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .link-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr; }
  .link-card-grid { grid-template-columns: 1fr; }
  .role-card { flex-direction: column; align-items: flex-start; }
  .role-card .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   29. Homepage services grid — 7 items (min-width scoped so it can never
   conflict with the existing max-width breakpoints on .service-grid)
   ========================================================================== */
@media (min-width: 1081px) {
  .service-grid--seven { grid-template-columns: repeat(4, 1fr); }
}
.service-grid--seven .service-card { text-decoration: none; }

/* ==========================================================================
   HOMEPAGE V2 — ADDITIONS ONLY
   Append to the END of css/style.css. Nothing above is modified.
   Every value below reuses existing brand tokens (--blue, --cyan, --graphite,
   --line, --radius, --font-display) so the visual language is unchanged.
   ========================================================================== */

/* --- V2.1 Answer block (AEO / AI-citation target) ------------------------
   A short, quotable definition paragraph. Styled as a quiet callout so it
   reads as authoritative without competing with headings.                  */
.answer-block {
  border-left: 2px solid var(--blue);
  background: linear-gradient(90deg, rgba(0, 123, 255, .07), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 26px 0 0;
  max-width: 68ch;
}
.answer-block p {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}
.answer-block strong { color: var(--white); font-weight: 600; }

/* --- V2.2 Industries grid ------------------------------------------------
   Five specialisms. Reuses the card language of .service-card.            */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  position: relative;
  display: block;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  overflow: hidden;
  transition: transform .38s var(--ease), border-color .38s var(--ease), background .38s var(--ease);
}
.industry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 123, 255, .42);
  background: #202020;
}
.industry-card:hover::before { transform: scaleX(1); }
.industry-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .12);
  border: 1px solid rgba(0, 123, 255, .3);
  color: var(--cyan);
  margin-bottom: 20px;
  transition: background .38s var(--ease), color .38s var(--ease);
}
.industry-card__icon svg { width: 22px; height: 22px; }
.industry-card:hover .industry-card__icon { background: var(--blue); color: var(--white); }
.industry-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.industry-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.industry-card__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.industry-card__metric b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}
.industry-card__metric span {
  font-size: .78rem;
  color: var(--muted-dim);
  letter-spacing: .04em;
}

/* --- V2.3 Technology stack ---------------------------------------------- */
.stack-group { margin-bottom: 34px; }
.stack-group:last-child { margin-bottom: 0; }
.stack-group__label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 500;
  color: var(--silver);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.stack-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.stack-chip:hover {
  border-color: rgba(0, 123, 255, .45);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- V2.4 Comparison table ----------------------------------------------- */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row--head {
  background: var(--graphite-2);
}
.compare__cell {
  padding: 20px 24px;
  font-size: .93rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}
.compare__cell:first-child {
  border-left: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.compare__row--head .compare__cell {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare__row--head .compare__cell--us { color: var(--cyan); }
.compare__cell--us {
  background: rgba(0, 123, 255, .06);
  color: var(--silver);
}
.compare__cell svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; }
.compare__cell--us svg { color: var(--cyan); }
.compare__cell--them svg { color: #6B7178; }

/* --- V2.5 Founder / EEAT ------------------------------------------------- */
.founder-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  margin-top: 26px;
}
.founder-card__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, .14);
  border: 1px solid rgba(0, 123, 255, .35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cyan);
  letter-spacing: .02em;
}
.founder-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
}
.founder-card__role { font-size: .84rem; color: var(--muted-dim); margin-top: 3px; }

.credential-list { display: grid; gap: 14px; margin: 26px 0 0; }
.credential-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: .94rem;
  color: var(--muted);
}
.credential-list li b { color: var(--white); font-weight: 600; }
.credential-list .dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(0, 217, 255, .8);
}

/* --- V2.6 FAQ two-column ------------------------------------------------- */
.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  align-items: start;
}
.faq-columns .accordion { margin-top: 0; }

/* --- V2.7 Framework / system stages -------------------------------------- */
.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 123, 255, .34);
  background: rgba(0, 123, 255, .08);
  border-radius: 100px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: 20px;
}
.system-badge b { color: var(--cyan); font-weight: 700; }

/* --- V2.8 Final CTA — three routes ---------------------------------------- */
.cta-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  text-align: left;
  position: relative;
  z-index: 2;
}
.cta-route {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 11, 11, .5);
  padding: 24px 22px;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.cta-route:hover {
  border-color: rgba(0, 217, 255, .45);
  transform: translateY(-4px);
  background: rgba(11, 11, 11, .8);
}
.cta-route__tag {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}
.cta-route h3 { font-size: 1.02rem; margin-bottom: 7px; }
.cta-route p { color: var(--muted); font-size: .86rem; margin: 0; }
.cta-route__meta {
  display: block;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted-dim);
}

/* --- V2.9 Responsive ------------------------------------------------------ */
@media (max-width: 1080px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-routes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .faq-columns { grid-template-columns: 1fr; gap: 0; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell { border-left: 0; border-top: 1px solid var(--line); }
  .compare__cell:first-child { border-top: 0; padding-bottom: 8px; }
  .compare__row--head { display: none; }
  .compare__cell--us::before { content: "SearchXMedia — "; color: var(--cyan); font-weight: 600; }
  .compare__cell--them::before { content: "Typical agency — "; color: var(--muted-dim); font-weight: 600; }
}
@media (max-width: 640px) {
  .industry-grid { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; align-items: flex-start; }
  .answer-block { padding: 18px 20px; }
}

/* --- V2.10 Anchor offset -------------------------------------------------
   The header is fixed, so jumping to #industries / #compare / #faq etc.
   parked the section heading underneath it. Push the scroll target down.  */
section[id] { scroll-margin-top: 96px; }
@media (max-width: 900px) { section[id] { scroll-margin-top: 78px; } }

/* ==========================================================================
   V3 ADDITIONS
   ========================================================================== */

/* --- V3.1 "Know more" CTA revealed on card hover -------------------------
   The whole card is already an <a>, so this is a styled <span>, not a nested
   link (nested anchors are invalid HTML). Space is reserved permanently via
   opacity rather than display, so hovering never shifts the layout.        */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 217, 255, .32);
  background: rgba(0, 123, 255, .1);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.card-cta svg {
  width: 13px;
  height: 13px;
  transition: transform .3s var(--ease);
}

.service-card:hover .card-cta,
.industry-card:hover .card-cta,
.service-card:focus-visible .card-cta,
.industry-card:focus-visible .card-cta {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover .card-cta svg,
.industry-card:hover .card-cta svg { transform: translateX(3px); }

.service-card:hover .card-cta,
.industry-card:hover .card-cta {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Touch devices have no hover state — show the CTA permanently there. */
@media (hover: none) {
  .card-cta { opacity: 1; transform: none; }
}

/* --- V3.2 Highlighted number sections ------------------------------------
   Hero stats and the metrics band now carry the brand gradient instead of
   flat white, so the proof points read as the focal point of each section. */
.hero__stats .stat__value,
.metrics .metric__value {
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 123, 255, .32));
}
.hero__stats .stat__value .suffix,
.metrics .metric__value .suffix {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Give the hero stat row a touch more presence without moving anything. */
.hero__stats .stat__label,
.metrics .metric__label { color: var(--silver); }

/* Fallback: if a browser can't clip a background to text, the numbers would
   render fully transparent. Force a solid accent colour there instead. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__stats .stat__value,
  .metrics .metric__value,
  .hero__stats .stat__value .suffix,
  .metrics .metric__value .suffix {
    background: none;
    color: var(--cyan);
    -webkit-text-fill-color: var(--cyan);
    filter: none;
  }
}

/* =====================================================================
   Small-screen overflow fixes
   ---------------------------------------------------------------------
   Grid and flex items default to min-width:auto, so an item can refuse to
   shrink below its content and push the whole page wider than the screen.
   Below ~400px the footer's newsletter input did exactly that, forcing a
   315px column inside a 284px container and creating a horizontal scroll
   on every page. These rules let the affected items shrink properly.
   ===================================================================== */

/* Note: deliberately NOT using `html, body { overflow-x: hidden }` here.
   It only hides a symptom, and it breaks `position: sticky` descendants —
   this page uses a sticky article table of contents. The real cause is
   fixed below instead. */

/* Let grid/flex children shrink below their intrinsic content width.
   Without this, a single wide child (an input, a long email) sets a floor
   for the whole track and drags the layout past the edge of the screen. */
.footer-grid > *,
.footer-about,
.footer-col,
.contact-layout > *,
.form-grid > *,
.info-stack > * { min-width: 0; }

/* Long unbroken strings (emails, URLs) must wrap rather than overflow. */
.footer-col a,
.footer-about p,
.footer-col li,
.info-card a,
.info-card p,
.role-card a { overflow-wrap: anywhere; }

/* The legal-links row is a flex line with six items and no wrap, so it ran
   off the side of small screens. Let it wrap onto as many lines as it needs. */
.footer-bar__links {
  flex-wrap: wrap;
  gap: 12px 22px;
}

@media (max-width: 420px) {
  /* Stack the newsletter field above its button so neither is squashed. */
  .newsletter-form { flex-wrap: wrap; }
  .newsletter-form input { flex: 1 1 100%; min-width: 0; }
  .newsletter-form button { flex: 1 1 100%; padding: 12px 22px; }
}

/* Very narrow screens (Galaxy Fold cover display and similar, ~280px):
   the card's 38px side padding leaves too little room for its contents. */
@media (max-width: 340px) {
  .form-card { padding: 26px 18px; }
  .shell { padding-inline: 14px; }
}

/* Cards and panels must never be wider than the column they sit in. */
.form-card,
.info-card,
.hours-card,
.role-card { max-width: 100%; }

/* Media that must never exceed its column. */
img, svg, video, canvas, iframe { max-width: 100%; }

/* Wide content scrolls inside itself instead of stretching the page. */
table { display: block; max-width: 100%; overflow-x: auto; }
pre    { max-width: 100%; overflow-x: auto; }

/* =====================================================================
   Home page: above-the-fold hero + balanced media/copy columns
   ---------------------------------------------------------------------
   1. The hero measured 1047px against an 820px laptop viewport, so the
      stats row sat 227px below the fold. The heading wrapped to five
      lines and the section carried 264px of vertical padding. Wording is
      unchanged — only spacing and type scale are tightened.
   2. In the two-column bands the copy ran ~200px taller than the image
      stack. With `align-items: center` the images floated mid-row leaving
      dead space top and bottom. They now stretch to match the copy.
   ===================================================================== */

/* ---- 1. Hero fits one fold ---------------------------------------- */
.hero { padding: 112px 0 72px; }

/* Three lines instead of five at desktop widths, same words. */
.hero h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero .lead { margin-bottom: 0; }
.hero__actions { margin-top: 26px; }

.hero__stats {
  margin-top: 32px;
  padding-top: 24px;
  gap: 36px;
}

/* Keep the visual in proportion with the now-shorter copy column, and let
   it fill the row so both sides of the hero end level. The floating badges
   are positioned against the frame, so they follow it. */
.hero__layout { align-items: stretch; }
.hero__copy { align-self: center; }
.hero__visual { display: flex; flex-direction: column; }
.hero__frame { flex: 1 1 auto; display: flex; }
.hero__frame img { height: 100%; min-height: 380px; width: 100%; object-fit: cover; }

/* Short viewports (1366x768 laptops, iPad landscape) need a little more off.
   Applies from 901px up — the width at which the hero is still two columns. */
@media (min-width: 901px) and (max-height: 860px) {
  .hero { padding: 96px 0 56px; }
  .hero h1 { font-size: clamp(2rem, 3.4vw, 3.05rem); }
  .hero .lead { font-size: .97rem; }
  .hero__actions { margin-top: 22px; }
  .hero__stats { margin-top: 24px; padding-top: 18px; }
  .hero__frame img { min-height: 320px; }
}

/* Stacked hero: the frame goes back to a fixed height. */
@media (max-width: 900px) {
  .hero__layout { align-items: center; }
  .hero__visual { display: block; }
  .hero__frame { display: block; }
  .hero__frame img { height: 600px; min-height: 0; }
}

/* ---- 2. Media column matches copy height -------------------------- */
.features__layout { align-items: stretch; }

.features__media {
  display: flex;
  flex-direction: column;
}

/* The wide image absorbs the leftover height so both columns end level. */
.features__media .media-wide {
  flex: 1 1 auto;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

/* The lower row keeps its natural height. */
.features__media .media-row {
  flex: 0 0 auto;
  margin-top: 18px;
}
.features__media .media-row img { height: 100%; min-height: 150px; object-fit: cover; }

/* Copy column stays vertically centred against the taller media. */
.features__copy { align-self: center; }

/* Same treatment for the "why" band, which had the identical mismatch.
   Its image already has height:100%, so it only needed the row to stretch. */
.why__layout { align-items: stretch; }
.why__layout > *:not(.why__media) { align-self: center; }

/* Below 900px the layout stacks to one column (see the max-width:900px block
   above), so stretching no longer applies — height is driven by content.
   This breakpoint must stay in step with that one. */
@media (max-width: 900px) {
  .features__layout,
  .why__layout { align-items: center; }
  .features__media .media-wide { height: auto; min-height: 0; flex: 0 0 auto; }
}

/* =====================================================================
   Same treatment applied to the rest of the site
   ---------------------------------------------------------------------
   An audit of every page at 1440x900 found four remaining problems:
     - contact + book-a-strategy-call: aside ~110px shorter than the form
     - services-performance-marketing: hero columns 148px apart
     - blog-single / case-study-single: header ran past the fold
   Everything else already sat level and inside the fold.
   ===================================================================== */

/* Inner-page headers were carrying 248px of vertical padding, which pushed
   article headers past the fold. Trimmed for every page that uses them. */
.page-hero { padding: 132px 0 64px; }

/* Contact and booking: the info column now fills the row so both sides end
   level, with the cards spread evenly instead of bunched at the top. */
.contact-layout { align-items: stretch; }
.info-stack { align-content: space-between; }

/* Performance-marketing hero: match the two columns like the others.
   Only the copy is centred — the media column must stretch to fill, so it
   must not be caught by a blanket align-self rule. */
.pm-hero__layout { align-items: stretch; }
.pm-hero__copy { align-self: center; }

/* Article and case-study headers: a shorter lead image brings the title,
   meta and image inside the first screen. */
.post-hero-img,
.case-hero-img { height: 340px; }

@media (max-width: 900px) {
  .contact-layout { align-items: start; }
  .info-stack { align-content: start; }
  .pm-hero__layout { align-items: center; }
  .post-hero-img,
  .case-hero-img { height: 240px; }
}

/* ==========================================================================
   14. Lead modal — site-wide "Book a strategy call" dialog
   Opened from any booking link and once per session on a timer.
   ========================================================================== */
.lead-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop {
  position: absolute; inset: 0; background: rgba(6, 6, 6, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lead-modal.is-open .lead-modal__backdrop { opacity: 1; }

.lead-modal__dialog {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(0, 123, 255, .10), transparent 46%), var(--graphite);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 1);
  padding: 38px 38px 32px;
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.lead-modal.is-open .lead-modal__dialog { opacity: 1; transform: none; }

.lead-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; padding: 0;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lead-modal__close:hover { color: var(--white); border-color: rgba(0, 217, 255, .4); transform: rotate(90deg); }
.lead-modal__close svg { width: 16px; height: 16px; }

.lead-modal__head { margin-bottom: 24px; padding-right: 34px; }
.lead-modal__head h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 12px 0 10px; }
.lead-modal__head p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0; }

.lead-modal__form { display: grid; gap: 16px; }
.lead-modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-modal__opt { color: var(--muted-dim); font-weight: 400; }
.lead-modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-modal .field { display: grid; gap: 7px; }
.lead-modal .field label { font-size: .78rem; color: var(--muted); }
.lead-modal .field input,
.lead-modal .field select,
.lead-modal .field textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--white);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lead-modal .field textarea { resize: vertical; min-height: 84px; }
.lead-modal .field input:focus,
.lead-modal .field select:focus,
.lead-modal .field textarea:focus {
  outline: none; border-color: rgba(0, 217, 255, .5); background: rgba(255, 255, 255, .05);
}
.lead-modal .field.has-error input,
.lead-modal .field.has-error select,
.lead-modal .field.has-error textarea { border-color: rgba(255, 96, 96, .6); }

.lead-modal__err, .lead-modal__formerr {
  display: none; font-size: .78rem; color: #FF8080; margin: 0;
}
.lead-modal__err.is-shown, .lead-modal__formerr.is-shown { display: block; }

.lead-modal__submit { width: 100%; justify-content: center; margin-top: 4px; }
.lead-modal__submit[disabled] { opacity: .65; cursor: default; }
.lead-modal__note { font-size: .78rem; color: var(--muted-dim); text-align: center; margin: 0; }

/* Success state replaces the form in place. */
.lead-modal__done { text-align: center; padding: 12px 0 8px; }
.lead-modal__done[hidden] { display: none; }
.lead-modal__tick {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(0, 123, 255, .12); border: 1px solid rgba(0, 217, 255, .38);
}
.lead-modal__tick svg { width: 27px; height: 27px; }
.lead-modal__done h3 { font-size: 1.2rem; margin: 0 0 10px; }
.lead-modal__done p { color: var(--muted); font-size: .93rem; line-height: 1.65; margin: 0 0 22px; }

body.has-modal { overflow: hidden; }

@media (max-width: 620px) {
  .lead-modal { padding: 14px; align-items: flex-end; }
  .lead-modal__dialog { padding: 30px 22px 26px; border-radius: 22px; max-height: calc(100vh - 28px); }
  .lead-modal__row { grid-template-columns: 1fr; }
  .lead-modal__head { padding-right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal__backdrop, .lead-modal__dialog { transition: none; }
  .lead-modal__dialog { transform: none; }
  .lead-modal__close:hover { transform: none; }
}
