/* ============================================================
   DEVSFLOW Guarding. Adapted from devsflow/main/engineering.css.
   Same system: ink masthead, hairlines, mono labels, yellow as a
   marker only. Single stylesheet, no layering.
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #161B22;
  --paper: #FFFFFF;
  --alt: #F4F4F1;
  --line: #DEDEDA;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #5C6270;
  --muted-dark: rgba(255, 255, 255, 0.62);
  --mark: #F5C518;
  --mark-on-light: #876D00;
  --mark-hover: #FFD93D;
  --text-body: #23262D;
  --text-on-dark: #E6E8EB;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
  --col: 1180px;
  --gutter: 32px;
  color-scheme: light only;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 17, 22, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 30px; height: auto; }

.nav-brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.nav-cta,
.nav-links a.nav-cta,
.nav-links .nav-cta {
  display: inline-block;
  padding: 9px 16px;
  background: var(--mark);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--mark-hover); }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--mark); color: var(--ink); }
.btn-primary:hover { background: var(--mark-hover); }

.btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }

.section-title {
  max-width: 24ch;
  font-size: clamp(1.7rem, 2.7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-sub {
  max-width: 66ch;
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- Light sections between the alt bands ---------- */
.problem-section,
.results,
.how-it-works,
.faq { background: var(--paper); }

/* ---------- 1 / Intro masthead ---------- */
.intro {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(95deg, rgba(14, 17, 22, 0.96) 0%, rgba(14, 17, 22, 0.92) 34%, rgba(14, 17, 22, 0.55) 62%, rgba(14, 17, 22, 0.3) 100%),
    url("slideshow/toronto.avif");
  background-size: auto, cover;
  background-position: center, 62% 40%;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 168px 0 112px;
  isolation: isolate;
}

.intro-inner { position: relative; }

.intro-tag {
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mark);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.intro h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 3.8vw, 3.1rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.intro h1 span { color: #fff; }

.intro-sub {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted-dark);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- 2 / Stats band ---------- */
.stats-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

/* ---------- 3 / Problem and solution ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.problem-col h3 {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.25rem;
}

.problem-col > p {
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.problem-list,
.solution-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.problem-list li,
.solution-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 21px;
  width: 10px; height: 1px;
  background: var(--muted);
}

.solution-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 10px; height: 3px;
  background: var(--mark);
}

/* ---------- 4 / Case study ---------- */
.case-study { background: var(--alt); }

.case-content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.case-content > img {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.case-text h3 {
  font-size: 1.3rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.case-text p {
  margin-top: 16px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.case-quote {
  margin-top: 30px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--mark);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}

.case-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.case-quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.case-quote strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tech-tag {
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 5 / Results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 22px 28px 20px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-number {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.result-label {
  max-width: 22ch;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 6 / Challenges and capabilities ---------- */
.challenges,
.capabilities { background: var(--alt); }

.challenge-grid,
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.challenge-card,
.cap-item {
  padding: 30px 28px;
  background: var(--paper);
}

.challenge-card h3,
.cap-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.challenge-card p,
.cap-item p {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 7 / Engagement timeline ---------- */

/* ---------- 8 / FAQ ---------- */
.faq-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0 56px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 9 / Insights ---------- */
.insights { background: var(--alt); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: var(--paper);
}

.insight-card:hover { background: #FAFAF8; }

.insight-tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.insight-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.insight-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

.insights-cta { margin-top: 30px; font-size: 0.9rem; font-weight: 500;}

.insights-cta a {
  display: inline-block;
  font-weight: 500;
  border-bottom: 2px solid var(--mark-on-light);
  padding-bottom: 2px;
}

.insights-cta a:hover { border-bottom-color: var(--ink); }

/* ---------- 10 / Contact band ---------- */
.cta-section {
  background: var(--ink-2);
  color: #fff;
  padding: 86px 0;
}

.cta-section h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.cta-section p {
  max-width: 60ch;
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 560px) {
  .cta-actions { align-items: stretch; flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }
}

/* ---------- 11 / Related services ---------- */
.related-services {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.related-services h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.related-sub {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: var(--paper);
}

.related-card:hover { background: var(--alt); }

.related-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.related-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.related-card span {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Blog index ---------- */
.blog-header {
  background: var(--ink);
  color: #fff;
  padding: 152px 0 64px;
}

.blog-header h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.blog-header p {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter {
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-filter:hover,
.blog-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.blog-card { background: var(--paper); }

.blog-card:hover { background: #FAFAF8; }

.blog-card.hidden { display: none; }

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 30px 28px;
}

.blog-card-tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-card-body h2 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.blog-card-body h2 a { color: var(--ink); }
.blog-card-body h2 a:hover { text-decoration: underline; text-decoration-color: var(--mark-on-light); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.blog-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.blog-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.blog-card-link:hover { text-decoration: underline; text-decoration-color: var(--mark-on-light); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Article ---------- */
.post-head {
  background: var(--ink);
  color: #fff;
  padding: 152px 0 60px;
}

.post-head h1 {
  max-width: 28ch;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.post-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  font-weight: 500;
}

article > .container {
  max-width: 784px;
  padding-top: 64px;
  padding-bottom: 88px;
}

article p { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.72; color: var(--text-body); overflow-wrap: break-word; }

article h2 {
  margin: 52px 0 18px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

article h3 { margin: 36px 0 14px; font-size: 1.1rem; font-weight: 600; }

article ul, article ol { margin: 0 0 22px; padding-left: 22px; }
article li { margin-bottom: 10px; font-size: 1.02rem; line-height: 1.7; color: var(--text-body); overflow-wrap: break-word; }

article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

article code {
  padding: 2px 6px;
  overflow-wrap: anywhere;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
}

.blog-cta {
  margin: 44px 0 0;
  padding: 22px 24px;
  background: var(--alt);
  border-left: 2px solid var(--mark);
}

.blog-cta p { margin: 0; font-size: 1rem; line-height: 1.7; }

.blog-cta a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }

.blog-related h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-font-smoothing: auto;
}

.blog-related ul { margin: 0; padding: 0; list-style: none; }
.blog-related li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.blog-related strong { font-weight: 600; }

.blog-related a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.blog-related a:hover { text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 52px 0 40px;
  font-size: 0.86rem;
  font-weight: 500;
}

footer a { color: rgba(255, 255, 255, 0.6); }
footer a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

footer p {
  margin: 0;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ---------- Consent banner ---------- */

/* ---------- Entrance only ---------- */
.fade-in, .reveal-up, .reveal-left, .reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenge-grid,
  .cap-grid,
  .blog-grid,
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .case-content { grid-template-columns: 1fr; gap: 32px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-item { grid-template-columns: 1fr; gap: 10px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 24px; border-top: 1px solid var(--line-dark); }
  .nav-cta-mobile .nav-cta { margin: 12px 24px 16px; padding: 12px 16px; border-top: 0; text-align: center; }

  .section { padding: 72px 0; }
  .related-services { padding: 72px 0; }
  .cta-section { padding: 72px 0; }

  .eng-phase-when,
  .eng-phase h3,
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .intro { padding: 122px 0 80px; }
  .intro h1 { font-size: 2.15rem; }
  .intro-sub { font-size: 1rem; }
  .intro-actions { flex-direction: column; align-items: stretch; }
  .intro-actions .btn { width: 100%; text-align: center; }

  .challenge-grid,
  .cap-grid,
  .blog-grid,
  .related-grid,
  .insights-grid { grid-template-columns: 1fr; }

  .blog-header,
  .post-head { padding: 122px 0 48px; }

  article > .container { padding-top: 44px; padding-bottom: 64px; }

  .result-item { padding: 22px 16px 22px 16px; }
  .result-number { font-size: 1.6rem; }

}

/* ---------- Shared footer (ported from the main property) ---------- */
.footer-cta {
  background: var(--ink-2);
  color: #fff;
  padding: 86px 0;
}
.footer-cta-title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.footer-cta-sub {
  max-width: 60ch;
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--muted-dark);
}
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
  font-size: 0.86rem;
  font-weight: 500;
}
.footer a { color: rgba(255, 255, 255, 0.6); }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 28px; height: auto; }
.footer-tagline { max-width: 34ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.footer-social { display: inline-flex; gap: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.footer-bottom p { margin: 0; }
.footer-dot { opacity: 0.4; }
.back-to-top {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .footer { padding: 44px 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-brand { align-items: flex-start; }
  .footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; }
  .footer-links a { display: flex; align-items: center; min-height: 24px; }
  .footer-end { justify-self: start; }
  .footer-social,
  .back-to-top { width: 44px; height: 44px; align-items: center; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; padding-top: 20px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-dot { display: none; }
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 2px solid var(--mark-on-light);
  outline-offset: 3px;
  border-radius: 1px;
}

.hero :focus-visible,
.footer :focus-visible,
.navbar :focus-visible { outline-color: var(--mark); }

/* ---------- Consent banner (canonical, shared by all properties) ---------- */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mark);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  font-family: var(--sans);
}
.consent-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.consent-text { flex: 1; min-width: 280px; }
.consent-title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.consent-body { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted); font-weight: 500;}
.consent-body a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--mark-on-light); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.consent-btn-primary { background: var(--mark); color: var(--ink); }
.consent-btn-primary:hover { background: var(--mark-hover); }
.consent-btn-secondary { background: transparent; color: var(--ink); border-color: var(--muted); }
.consent-btn-secondary:hover { background: var(--alt); }
@media (max-width: 640px) {
  .consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}

.intro > .container {
  position: relative;
  z-index: 2;
}

.intro::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 84% 50%, rgba(91, 117, 145, 0.07), transparent 35%);
}

.intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(14, 17, 22, 0.88) 66%, rgba(14, 17, 22, 0.18) 100%);
  pointer-events: none;
}
