/*
Theme Name: ChinaTranslate
Theme URI: https://chinatranslate.ru/
Author: iTrex
Author URI: https://itrex.ru/
Description: Fast, accessible editorial theme for the ChinaTranslate division of iTrex.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chinatranslate
*/

:root {
  --paper: #f7f1e8;
  --paper: oklch(96% 0.018 72);
  --paper-deep: #eee4d7;
  --paper-deep: oklch(92% 0.025 72);
  --surface: #fcf8f2;
  --surface: oklch(98% 0.012 72);
  --ink: #211c1b;
  --ink: oklch(23% 0.018 30);
  --ink-soft: #5f5551;
  --ink-soft: oklch(45% 0.025 35);
  --line: #cfc1b4;
  --line: oklch(80% 0.03 62);
  --red: #ad2431;
  --red: oklch(48% 0.18 22);
  --red-dark: #7f1722;
  --red-dark: oklch(38% 0.15 22);
  --red-pale: #f1d9d6;
  --red-pale: oklch(89% 0.045 28);
  --green: #296848;
  --green: oklch(47% 0.09 155);
  --focus: #144fc1;
  --focus: oklch(48% 0.19 258);
  --font-body: "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: clamp(1.12rem, 1.5vw, 1.32rem);
  --text-xl: clamp(1.65rem, 4vw, 2.75rem);
  --text-display: clamp(2.55rem, 10vw, 5.9rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --shell: 74rem;
  --measure: 66ch;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-kerning: normal;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.preview .below-fold {
  content-visibility: visible;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--red-pale);
  color: var(--ink);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  hyphens: none;
  letter-spacing: -0.025em;
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h2 {
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.2;
}

p,
li {
  max-width: var(--measure);
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 52rem);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--red-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 500;
  padding: var(--space-3) var(--space-4);
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4.75rem;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  background: var(--red);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-name {
  font-size: 1.07rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.brand-parent {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.2;
}

.site-nav {
  position: static;
}

.menu-toggle {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid var(--line);
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  width: 1.15rem;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform 180ms var(--ease-out);
}

.menu-toggle::before {
  transform: translateY(-0.24rem);
}

.menu-toggle::after {
  transform: translateY(0.24rem);
}

.site-nav[open] .menu-toggle::before {
  transform: rotate(45deg);
}

.site-nav[open] .menu-toggle::after {
  transform: rotate(-45deg);
}

.nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: var(--space-4) 1rem var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-nav[open] .nav-panel {
  display: grid;
}

.nav-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: var(--space-4);
  padding-inline: var(--space-4);
  background: var(--red);
  color: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--red-dark);
  color: var(--surface);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 9vw, 7.5rem);
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -13rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: var(--space-12);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-6);
  font-size: var(--text-display);
}

.hero-lead {
  max-width: 44rem;
  margin-bottom: var(--space-8);
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.52;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.button:hover {
  background: var(--red-dark);
  color: var(--surface);
}

.button:active {
  transform: translateY(1px);
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.hero-seal {
  display: grid;
  width: min(12rem, 48vw);
  aspect-ratio: 1;
  margin-inline: auto;
  transform: rotate(2.5deg);
  place-items: center;
  border: 0.22rem solid var(--red);
  color: var(--red);
}

.seal-inner {
  display: grid;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  text-align: center;
}

.seal-han {
  font-size: clamp(2.8rem, 12vw, 4.8rem);
  font-weight: 700;
  line-height: 0.9;
}

.seal-label {
  max-width: 8rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-compact {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section-intro {
  max-width: 45rem;
  margin-bottom: var(--space-12);
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

.section-rule {
  border-top: 1px solid var(--line);
}

.service-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.service-row dt,
.service-row dd {
  margin: 0;
}

.service-row dt a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.14;
  text-decoration: none;
}

.service-row dt a:hover {
  color: var(--red-dark);
}

.service-row dd {
  color: var(--ink-soft);
}

.service-arrow {
  display: none;
  color: var(--red);
  font-size: 1.6rem;
}

.evidence {
  background: var(--ink);
  color: var(--paper);
}

.evidence-grid {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.evidence-item {
  margin: 0;
}

.evidence-value {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.evidence-label {
  color: var(--paper-deep);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.split {
  display: grid;
  gap: var(--space-12);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.document-list li {
  min-height: 5rem;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.price-panel {
  container-type: inline-size;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.price-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row h3,
.price-row p {
  margin-bottom: 0;
}

.price-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.price-note {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.process-list {
  display: grid;
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  border-top: 1px solid var(--line);
}

.process-list li {
  position: relative;
  padding: var(--space-6) 0 var(--space-6) 3.2rem;
  border-bottom: 1px solid var(--line);
  counter-increment: process;
}

.process-list li::before {
  position: absolute;
  top: var(--space-6);
  left: 0;
  color: var(--red);
  content: "0" counter(process);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.process-list h3,
.process-list p {
  margin-bottom: var(--space-2);
}

.quality-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-8) 0;
  padding: 0;
  list-style: none;
}

.quality-chain li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--ink);
  font-weight: 700;
}

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

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

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 4.5rem;
  padding: var(--space-4) 3rem var(--space-4) 0;
  cursor: pointer;
  list-style: none;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
}

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

.faq-list summary::after {
  position: absolute;
  right: 0.25rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--red);
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 0.75;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 2.5rem var(--space-6) 0;
  color: var(--ink-soft);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.article-list {
  display: grid;
  gap: 0;
  margin-top: var(--space-12);
  border-top: 1px solid var(--line);
}

.article-teaser {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.article-teaser h2,
.article-teaser h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
}

.article-teaser a {
  color: var(--ink);
  text-decoration: none;
}

.article-teaser a:hover {
  color: var(--red-dark);
}

.article-meta {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.contact-band {
  background: var(--red);
  color: var(--surface);
}

.contact-grid {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.contact-band h2 {
  max-width: 15ch;
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 7vw, 4.5rem);
}

.contact-band p {
  color: var(--red-pale);
}

.contact-band .eyebrow {
  color: var(--surface);
}

.contact-band .button {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--red-dark);
}

.contact-band .button:hover {
  background: var(--paper-deep);
  color: var(--red-dark);
}

.contact-band .text-link {
  color: var(--surface);
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--red-pale);
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--red-pale);
  color: var(--surface);
  font-weight: 650;
  text-decoration: none;
}

.quote-form {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  color: var(--ink);
}

.quote-form label {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.form-field-label {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.22rem;
  line-height: 1.25;
}

.form-required {
  color: var(--red);
  font-size: 0.92em;
  line-height: 1;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.quote-form input[type="email"],
.quote-form input[type="text"],
.quote-form input[type="file"],
.quote-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.quote-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  font-weight: 400 !important;
  line-height: 1.45;
}

.consent-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.12rem 0 0;
}

.consent-field a {
  color: var(--red-dark);
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.form-submit span {
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.contact-band .quote-form p {
  color: inherit;
}

.contact-band .quote-form .button {
  border-color: var(--red);
  background: var(--red);
  color: var(--surface);
}

.contact-band .quote-form .button:hover {
  background: var(--red-dark);
  color: var(--surface);
}

.form-message {
  margin: 0;
  padding: var(--space-3);
  border-left: 0.25rem solid currentColor;
}

.form-message-success {
  background: #e4f1e8;
  color: var(--green) !important;
}

.form-message-error {
  background: var(--red-pale);
  color: var(--red-dark) !important;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.site-footer {
  padding-block: var(--space-12) max(var(--space-8), env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper-deep);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

.footer-brand {
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 750;
}

.footer-note {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--paper-deep);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--paper);
}

.footer-legal {
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-soft);
  color: var(--paper-deep);
  font-size: var(--text-xs);
}

.page-hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 17ch;
  margin-bottom: var(--space-6);
  font-size: clamp(2rem, 8vw, 5.25rem);
}

.breadcrumbs {
  margin-bottom: var(--space-6);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.breadcrumbs a {
  color: inherit;
}

.entry-layout {
  display: grid;
  gap: var(--space-12);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.entry-content {
  min-width: 0;
  font-size: 1.04rem;
  line-height: 1.72;
}

.entry-content > * {
  max-width: var(--measure);
}

.entry-content > h2,
.entry-content > h3,
.entry-content > .wide,
.entry-content > table {
  max-width: 100%;
}

.entry-content h2 {
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
}

.entry-content h3 {
  margin-top: var(--space-8);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.entry-content li + li {
  margin-top: var(--space-2);
}

.entry-content blockquote {
  margin-block: var(--space-8);
  padding: var(--space-6);
  border-block: 1px solid var(--red);
  color: var(--red-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
  min-width: 10rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--paper-deep);
}

.entry-aside {
  align-self: start;
  padding-top: var(--space-6);
  border-top: 3px solid var(--red);
}

.entry-aside h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.entry-aside p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.entry-aside .button {
  width: 100%;
}

.notice {
  margin-block: var(--space-8);
  padding: var(--space-6);
  background: var(--paper-deep);
}

.notice > :last-child {
  margin-bottom: 0;
}

.editorial-boundary {
  margin-bottom: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border-block: 2px solid var(--blue);
  background: var(--blue-pale);
}

.editorial-boundary strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--blue-dark);
}

.editorial-boundary p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.not-found {
  min-height: 60vh;
  padding-block: var(--space-24);
}

.below-fold {
  content-visibility: visible;
}

/* Lighthouse contrast gate: keep brand colors, strengthen small text. */
.service-card-dark .service-index,
.evidence .eyebrow,
.contact-band > .contact-grid > div > p {
  color: #fff;
}

/* Evidence-led editorial pages: practical tools, project case and named expert. */
.article-deck {
  max-width: 54rem;
  margin: 0 0 clamp(2.25rem, 5vw, 4rem);
  color: var(--blue-dark);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 640;
  line-height: 1.55;
}

.entry-content .article-section {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.entry-content .article-section > :last-child,
.article-case-card > :last-child,
.article-expert-card p:last-of-type,
.article-cta p:last-of-type {
  margin-bottom: 0;
}

.article-steps,
.article-factor-grid {
  display: grid;
  margin-top: 1.75rem;
  border-top: 1px solid var(--blue-dark);
}

.article-steps article,
.article-factor-grid article {
  padding: 1.2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.article-steps h3,
.article-factor-grid h3 {
  max-width: 26rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
  font-size: 1.16rem;
}

.article-steps p,
.article-factor-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-numbered-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: editorial-step;
}

.article-numbered-list li {
  position: relative;
  min-height: 2.35rem;
  padding: 0.42rem 0 0.42rem 3rem;
  counter-increment: editorial-step;
}

.article-numbered-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: var(--blue-dark);
  color: #fff;
  content: counter(editorial-step, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.article-cta,
.article-case-card {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.35rem, 4vw, 2.35rem);
}

.article-cta {
  border: 1px solid var(--red);
  background: var(--red-pale);
}

.article-cta .eyebrow,
.article-case-card .eyebrow,
.article-expert-card .eyebrow {
  margin-bottom: 0.85rem;
}

.article-cta h3 {
  max-width: 25rem;
  margin-bottom: 0.75rem;
  color: var(--red-dark);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.article-cta .button {
  margin-top: 1.25rem;
}

.article-case-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.article-case-card::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
}

.article-case-card > * {
  position: relative;
  z-index: 1;
}

.article-case-card .eyebrow {
  color: #ffb3bc;
}

.article-case-card h2 {
  max-width: 23ch;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.article-case-card p {
  color: #dce7f5;
}

.article-case-card a {
  color: #fff;
  font-weight: 750;
}

.article-expert-card {
  display: grid;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-expert-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center top;
}

.article-expert-card > div {
  padding: clamp(1.35rem, 4vw, 2.2rem);
}

.article-expert-card h2 {
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.article-expert-card a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 750;
}

@media (min-width: 44rem) {
  .article-factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .article-steps article {
    display: grid;
    grid-template-columns: minmax(13rem, 0.44fr) minmax(0, 0.56fr);
    gap: 1.5rem;
    align-items: start;
  }

  .article-steps h3 {
    margin: 0;
  }

  .article-expert-card {
    grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 0.62fr);
    align-items: stretch;
  }

  .article-expert-card img {
    height: 100%;
    min-height: 17rem;
  }
}

/* Evidence and conversion layer — lightweight, server-rendered, no library. */
.site-proof{background:#17191d;color:#fff;border-bottom:1px solid rgba(255,255,255,.14)}
.site-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.5fr;align-items:stretch}
.site-proof p{min-height:7rem;margin:0;padding:1.35rem 1.1rem;border-right:1px solid rgba(255,255,255,.14)}
.site-proof strong,.site-proof span{display:block}.site-proof strong{color:#ff6257;font:700 clamp(1.55rem,3vw,2.35rem)/1 var(--font-display,system-ui)}
.site-proof span{margin-top:.5rem;color:#e4e5e8;font-size:.76rem;line-height:1.35}
.site-proof small{align-self:center;padding:1.2rem;color:#c4c6cc;font-size:.73rem;line-height:1.45}
.context-links{margin-top:3rem;padding-block:1.4rem;border-block:1px solid var(--line)}
.context-links>p{margin:0 0 .8rem;color:var(--red,#c9252d);font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.context-links>div{display:grid;grid-template-columns:1fr 1fr;gap:0 1.4rem}.context-links a{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;border-top:1px solid var(--line);font-size:.88rem;font-weight:700;text-decoration:none}.context-links span{color:var(--red,#c9252d)}
.brief-launcher{position:fixed;right:1.2rem;bottom:1.25rem;z-index:48;min-height:2.9rem;padding:.75rem 1rem;border:0;background:#c9252d;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 .6rem 1.7rem rgba(0,0,0,.22)}
.brief-dialog{width:min(41rem,calc(100% - 2rem));max-height:calc(100svh - 2rem);padding:0;border:0;color:#17191d;background:#fff;box-shadow:0 2rem 6rem rgba(0,0,0,.4)}.brief-dialog::backdrop{background:rgba(12,14,18,.68)}
.brief-shell{position:relative;padding:2rem}.brief-close{position:absolute;right:.8rem;top:.8rem;width:2.75rem;height:2.75rem;border:1px solid var(--line);background:#fff;font-size:1.5rem;cursor:pointer}.brief-progress{color:#c9252d;font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.brief-shell h2{max-width:31rem;margin:.45rem 0 1rem;padding-right:2rem;font-size:clamp(1.7rem,5vw,2.6rem);line-height:1.05}.brief-options{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin:1.4rem 0 1rem}.brief-option,.brief-back{min-height:3rem;padding:.7rem;border:1px solid var(--line);background:#fff;color:#17191d;font-weight:700;text-align:left;cursor:pointer}.brief-option:hover,.brief-option:focus-visible{border-color:#c9252d;background:#fff5f4}
@media(max-width:1023px){.site-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-proof small{grid-column:1/-1}.brief-launcher{right:.7rem;bottom:5rem}.site-proof p{min-height:6.2rem}.context-links>div{grid-template-columns:1fr}}
@media(max-width:560px){.site-proof p{padding:1rem .7rem}.site-proof strong{font-size:1.5rem}.site-proof span{font-size:.68rem}.brief-options{grid-template-columns:1fr}.brief-shell{padding:1.5rem 1rem}.brief-launcher{font-size:.74rem}}

/* Information architecture and multi-level navigation. */
.mobile-menu,
.primary-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu > li > a,
.mobile-submenu > summary {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 760;
  text-decoration: none;
}

.mobile-submenu > summary {
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
  list-style: none;
}

.mobile-submenu > summary::-webkit-details-marker,
.desktop-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-submenu > summary::after {
  position: absolute;
  right: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: rotate(45deg);
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  content: "";
  transition: transform 160ms var(--ease-out);
}

.mobile-submenu[open] > summary::after {
  transform: rotate(225deg) translate(-0.15rem, -0.15rem);
}

.mobile-submenu-panel {
  display: grid;
  padding: 0.75rem 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-submenu-panel > span {
  margin: 0.9rem 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mobile-submenu-panel a {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-submenu-panel .mobile-menu-all {
  color: var(--red);
  font-weight: 800;
}

.mobile-menu-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 3px solid var(--red);
}

.mobile-menu-contacts a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.mobile-nav .nav-panel {
  max-height: calc(100dvh - 8.8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.primary-nav {
  display: flex;
  width: min(100%, var(--shell));
  min-height: 3rem;
  align-items: stretch;
  gap: clamp(1.4rem, 3.2vw, 3.2rem);
}

.primary-nav > li {
  display: flex;
  align-items: stretch;
}

.primary-nav > li > a,
.desktop-menu > summary {
  position: relative;
  display: flex;
  min-height: 3rem;
  align-items: center;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: clamp(0.75rem, 0.9vw, 0.84rem);
  font-weight: 750;
  list-style: none;
  text-decoration: none;
}

.desktop-menu > summary {
  padding-right: 1.05rem;
}

.desktop-menu > summary::after {
  position: absolute;
  right: 0;
  width: 0.38rem;
  height: 0.38rem;
  transform: translateY(-0.12rem) rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

.primary-nav-dropdown,
.desktop-menu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 500;
  display: none;
  width: min(56rem, calc(100vw - 2rem));
  grid-template-columns: 1.05fr 1fr 1fr;
  border: 1px solid var(--blue-dark);
  background: var(--surface);
  box-shadow: 0 1.25rem 2.5rem rgba(23, 59, 120, 0.16);
}

.desktop-menu[open] .mega-menu {
  display: grid;
}

.mega-menu-lead,
.mega-menu-group {
  display: grid;
  align-content: start;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.mega-menu-lead {
  background: var(--blue-dark);
  color: #fff;
}

.mega-menu-lead > span,
.mega-menu-group > span {
  margin-bottom: 0.75rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mega-menu-lead > a {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.08;
  text-decoration: none;
}

.mega-menu-lead p {
  margin: 1rem 0 0;
  color: #dbe6f5;
  font-size: 0.82rem;
}

.mega-menu-group + .mega-menu-group {
  border-left: 1px solid var(--line);
}

.mega-menu-group > span {
  color: var(--red);
}

.mega-menu-group a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

/* Exact crops from the upper-left portrait in the original 2x2 photo sheets. */
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 0.3rem solid var(--red);
  background: var(--paper-deep);
}

.team-member-support .team-photo {
  aspect-ratio: 4 / 3;
  border-color: var(--blue);
}

.team-photo img,
.team-member .team-photo img,
.about-expert .team-photo img {
  width: 200%;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  object-fit: fill;
  object-position: left top;
}

.team-copy h2 {
  max-width: 19ch;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Directory, pricing, and division pages. */
.directory-hero h1,
.about-hero h1 {
  max-width: 19ch;
}

.directory-section {
  border-bottom: 1px solid var(--blue-dark);
}

.directory-section-blue {
  background: var(--blue-pale);
}

.directory-layout,
.about-grid {
  display: grid;
  gap: clamp(2rem, 7vw, 6rem);
}

.directory-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.directory-intro p:last-child {
  color: var(--ink-soft);
}

.directory-links {
  border-top: 1px solid var(--blue-dark);
}

.directory-link {
  display: grid;
  gap: 0.45rem;
  min-height: 8rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  text-decoration: none;
}

.directory-link > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-link > strong {
  max-width: 28ch;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.12;
}

.roadmap-grid,
.price-page-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--blue-dark);
  background: var(--blue-dark);
}

.roadmap-grid article,
.price-page-grid article {
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--surface);
}

.roadmap-grid article > span,
.price-page-grid article > span {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-grid p,
.price-page-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.price-page-grid article {
  display: grid;
  align-content: start;
}

.price-page-grid strong {
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.95;
}

.factor-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 650;
}

.about-expert {
  margin: 0;
}

.about-expert .team-photo {
  max-width: 19rem;
  margin-inline: auto;
}

.about-expert figcaption {
  max-width: 19rem;
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--blue-dark);
  border-top: 0;
  color: var(--blue-dark);
  font-weight: 750;
}

.about-principles {
  background: var(--blue-pale);
}

@media (min-width: 48rem) {
  .directory-layout,
  .about-grid {
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .roadmap-grid,
  .price-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .header-actions {
    gap: clamp(0.7rem, 1.35vw, 1.25rem);
  }

  .header-telegram strong {
    color: var(--blue);
  }

  .desktop-nav {
    display: block;
  }
}

@container (min-width: 36rem) {
  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .price-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 40rem) {
  .shell,
  .narrow {
    width: min(calc(100% - 3rem), var(--shell));
  }

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

  .narrow {
    max-width: 52rem;
  }

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

  .service-row {
    grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1fr) auto;
    align-items: center;
  }

  .service-arrow {
    display: block;
  }

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

  .process-list li:nth-child(odd) {
    padding-right: var(--space-6);
    border-right: 1px solid var(--line);
  }

  .process-list li:nth-child(even) {
    padding-left: calc(3.2rem + var(--space-6));
  }

  .process-list li:nth-child(even)::before {
    left: var(--space-6);
  }

  .article-teaser {
    grid-template-columns: minmax(0, 1fr) 10rem;
    align-items: end;
  }
}

@media (min-width: 52rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 5.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-panel,
  .site-nav[open] .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.6rem);
  }

  .nav-list a {
    min-height: 2.75rem;
    border: 0;
    font-size: 0.82rem;
  }

  .nav-cta {
    min-height: 2.75rem;
    margin: 0 0 0 var(--space-4);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(12rem, 0.45fr);
  }

  .hero-seal {
    width: min(13.5rem, 100%);
  }

  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 7rem);
  }

  .evidence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: end;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }

  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: clamp(3rem, 7vw, 6rem);
  }

  .entry-aside {
    position: sticky;
    top: var(--space-8);
  }
}

@media (hover: hover) and (pointer: fine) {
  .service-row:hover .service-arrow {
    transform: translateX(0.25rem);
  }

  .service-arrow {
    transition: transform 180ms var(--ease-out);
  }
}

@media (pointer: coarse) {
  .button,
  .nav-list a,
  .contact-list a,
  .contact-list span {
    min-height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contact-band,
  .entry-aside,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

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

  .section,
  .page-hero,
  .entry-layout {
    padding-block: 1.5rem;
  }
}

/* Final specificity for small text on saturated brand backgrounds. */
.service-card-dark .service-index,
.evidence .eyebrow,
.contact-band > .contact-grid > div > p {
  color: #fff;
}

/* ChinaTranslate concept v2: official iTrex specialist practice. */
:root {
  --paper: #f4f7fb;
  --paper-deep: #e7edf6;
  --surface: #fff;
  --ink: #17233c;
  --ink-soft: #56647a;
  --line: #cbd5e3;
  --red: #df1e2f;
  --red-dark: #ad1524;
  --red-pale: #fbe8eb;
  --blue: #2454a6;
  --blue-dark: #173b78;
  --blue-pale: #eaf1fb;
  --green: #2d963d;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --text-display: clamp(2.5rem, 6vw, 5.35rem);
  --shell: 80rem;
}

body {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 59, 120, 0.035) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.site-header {
  position: sticky;
  top: 0;
  border-color: rgba(23, 59, 120, 0.16);
  background: rgba(255, 255, 255, 0.97);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
  }
}

.header-inner {
  min-height: 5rem;
}

.brand {
  gap: 0.7rem;
}

.brand-mark {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  overflow: hidden;
  background: var(--red);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-mark::after {
  position: absolute;
  right: 0.33rem;
  bottom: 0.33rem;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
}

.brand-parent {
  font-size: 0.67rem;
  letter-spacing: 0.025em;
}

.brand-parent strong {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
}

.desktop-nav {
  display: none;
}

.mobile-nav {
  position: static;
}

.mobile-nav[open] .menu-toggle::before {
  transform: rotate(45deg);
}

.mobile-nav[open] .menu-toggle::after {
  transform: rotate(-45deg);
}

.mobile-nav[open] .nav-panel {
  display: grid;
}

.nav-list a {
  position: relative;
}

.desktop-nav .nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--red);
  content: "";
  transition: transform 180ms var(--ease-out);
}

.desktop-nav .nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding-block: clamp(1rem, 2.5vw, 2rem) clamp(3.5rem, 7vw, 6rem);
}

.hero::after {
  display: none;
}

.hero-stage {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(23, 23, 23, 0.18);
  background: var(--surface);
}

.hero-visual {
  order: 1;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #edeae5;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  order: 2;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: var(--space-6);
  font-size: var(--text-display);
  line-height: 0.98;
}

.hero-lead {
  max-width: 39rem;
  margin-bottom: var(--space-8);
  color: #474440;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 39rem;
  margin: var(--space-8) 0 0;
  padding: var(--space-5, 1.25rem) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 0.1rem;
  padding-right: var(--space-3);
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero-proof strong {
  color: var(--ink);
  font-size: clamp(0.83rem, 2vw, 1rem);
}

.hero-proof span {
  color: var(--ink-soft);
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: none;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-caption span {
  margin-right: 0.8rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.section-heading {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(2.25rem, 6vw, 4.5rem);
}

.section-heading h2,
.team-copy h2,
.solution-sticky h2 {
  max-width: 17ch;
  font-size: clamp(2.05rem, 5vw, 4rem);
  line-height: 1;
}

.section-heading .section-intro,
.team-copy .section-intro,
.solution-sticky .section-intro {
  align-self: end;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 18rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  flex-direction: column;
  background: var(--surface);
}

.service-card h3 {
  max-width: 18ch;
  margin-top: auto;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.service-index {
  color: var(--red);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  margin-top: var(--space-4);
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.service-card-featured {
  min-height: 25rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(23, 23, 23, 0.12) 40px);
}

.service-card-dark {
  background: var(--ink);
  color: var(--paper);
}

.service-card-dark p {
  color: #c9c5bd;
}

.service-card-dark .card-link {
  color: var(--paper);
}

.evidence {
  position: relative;
  overflow: hidden;
}

.evidence::after {
  position: absolute;
  top: -9rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.evidence-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.evidence-copy {
  position: relative;
  z-index: 1;
}

.evidence-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.98;
}

.evidence-copy p:not(.eyebrow) {
  color: var(--paper-deep);
}

.evidence .eyebrow {
  color: #ff6377;
}

.evidence-grid {
  position: relative;
  z-index: 1;
  padding-block: 0;
}

.solution-layout {
  display: grid;
  gap: var(--space-12);
}

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

.solution-visual {
  position: relative;
  margin: var(--space-8) 0 0;
}

.solution-visual img {
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.solution-visual figcaption {
  display: flex;
  gap: 0.8rem;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.solution-visual figcaption span {
  color: var(--red);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.solution-list li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.solution-list li > span {
  padding-top: 0.25rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 750;
}

.solution-list h3 {
  font-size: clamp(1.45rem, 4vw, 2.25rem);
}

.solution-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.process-section {
  border-block: 1px solid var(--ink);
  background: var(--surface);
}

.team-layout {
  display: grid;
  gap: var(--space-12);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 3vw, 1.5rem);
  align-items: start;
}

.team-member {
  margin: 0;
}

.team-member:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 0.4rem);
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-bottom: 0.3rem solid var(--red);
  background: var(--paper-deep);
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.team-member figcaption {
  display: grid;
  gap: 0.15rem;
  padding-top: var(--space-3);
  font-size: 0.78rem;
  line-height: 1.35;
}

.team-member figcaption strong {
  font-size: 0.92rem;
}

.team-member figcaption span {
  color: var(--ink-soft);
}

.contact-band {
  background: var(--red);
}

.contact-grid {
  align-items: start;
}

.contact-band .quote-form {
  box-shadow: 1rem 1rem 0 rgba(116, 5, 25, 0.35);
}

.quote-form input[type="email"],
.quote-form input[type="text"],
.quote-form input[type="file"],
.quote-form textarea {
  border-color: #aaa59c;
}

.footer-brand span {
  color: #bcb7af;
  font-size: 0.76rem;
  font-weight: 500;
}

.footer-legal a {
  color: var(--paper);
}

@media (min-width: 44rem) {
  .section-heading {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  }

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

  .service-card-featured {
    grid-row: span 2;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-member:last-child {
    grid-column: auto;
    width: auto;
  }

  .team-member-offset {
    margin-top: 3rem;
  }
}

@media (min-width: 64rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 5.6rem;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .desktop-nav .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.65vw, 1.55rem);
  }

  .desktop-nav .nav-list a {
    min-height: 2.75rem;
    border: 0;
    font-size: clamp(0.75rem, 0.9vw, 0.84rem);
  }

  .desktop-nav .nav-cta {
    min-height: 2.85rem;
    margin: 0 0 0 clamp(1rem, 2vw, 2rem);
  }

  .mobile-nav {
    display: none;
  }

  .hero-stage {
    display: grid;
    min-height: clamp(34rem, 47vw, 40rem);
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  }

  .hero-stage::after {
    display: none;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    order: initial;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .hero-visual img {
    object-position: center;
  }

  .hero-copy {
    align-self: center;
    order: initial;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero-caption {
    display: block;
  }

  .service-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .service-card {
    grid-column: span 4;
  }

  .service-card-featured {
    grid-column: span 7;
    grid-row: span 2;
  }

  .service-card-dark {
    grid-column: span 5;
  }

  .evidence-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }

  .solution-layout {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(4rem, 10vw, 9rem);
  }

  .solution-sticky {
    position: sticky;
    top: 8rem;
    align-self: start;
  }

  .team-layout {
    grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(4rem, 9vw, 8rem);
    align-items: center;
  }

  .team-member-offset {
    margin-top: 5rem;
  }
}

@media (max-width: 28rem) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .hero-proof li {
    grid-template-columns: auto 1fr;
    gap: var(--space-2);
  }
}

@media print {
  .hero-visual,
  .hero-caption,
  .team-grid,
  .desktop-nav,
  .mobile-nav,
  .mobile-action-dock,
  .header-actions {
    display: none !important;
  }
}

/* Brand and conversion layer: shared iTrex palette, persistent actions, cases. */
html {
  scroll-padding-top: 7rem;
}

body {
  padding-bottom: calc(4.15rem + env(safe-area-inset-bottom));
}

.telegram-glyph {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.35em;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.15em;
}

.article-answer {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 0.35rem solid var(--red);
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.55;
}

.article-section + .article-section,
.article-attribution {
  margin-top: clamp(2.4rem, 6vw, 4.5rem);
}

.article-checklist {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.article-checklist li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.6rem;
  border-bottom: 1px solid var(--line);
}

.article-checklist li::before {
  position: absolute;
  top: 1.28rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
  content: "";
}

.article-attribution {
  padding-top: 1.5rem;
  border-top: 1px solid var(--blue-dark);
}

.mobile-header-telegram .telegram-glyph {
  margin-right: 0;
}

.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 4.65rem;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  min-width: 0;
}

.brand img {
  width: clamp(12.25rem, 66vw, 19rem);
  height: auto;
}

.header-actions {
  display: none;
}

.mobile-header-telegram {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--blue);
  text-decoration: none;
}

.mobile-header-telegram svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.mobile-action-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 450;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  min-height: calc(4.15rem + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -0.45rem 1.5rem rgba(23, 59, 120, 0.12);
}

@supports (backdrop-filter: blur(12px)) {
  .mobile-action-dock {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
  }
}

.mobile-action-dock a {
  display: flex;
  min-width: 0;
  min-height: 4.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-left: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.mobile-action-dock a:first-child {
  border-left: 0;
}

.mobile-action-dock svg {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.mobile-action-dock .mobile-action-primary {
  background: var(--red);
  color: #fff;
}

.desktop-nav {
  background: var(--surface);
}

.desktop-nav .nav-list a::after {
  background: var(--blue);
}

.hero-stage,
.service-grid {
  border-color: var(--blue-dark);
}

.service-grid {
  background: var(--blue-dark);
}

.service-card-dark,
.evidence,
.site-footer {
  background: var(--blue-dark);
}

.service-card-dark p {
  color: #d7e1ef;
}

.evidence::after {
  border-color: rgba(255, 255, 255, 0.2);
}

.evidence .eyebrow {
  color: #ff6f7b;
}

.evidence-copy p:not(.eyebrow) {
  color: #dbe6f5;
}

.process-section {
  border-color: var(--blue-dark);
}

.cases-section {
  border-bottom: 1px solid var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(36, 84, 166, 0.065), transparent 48%),
    var(--surface);
}

.case-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.case-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--blue-dark);
  background: var(--surface);
}

.case-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(4rem, 11vw, 7rem);
  height: clamp(4rem, 11vw, 7rem);
  transform: translate(42%, -42%) rotate(45deg);
  background: currentColor;
  content: "";
  opacity: 0.11;
}

.case-card-red {
  color: var(--red);
}

.case-card-blue {
  color: var(--blue);
}

.case-card-meta {
  display: flex;
  min-height: 4.25rem;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-card-meta strong {
  flex: 0 0 auto;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: -0.04em;
  text-transform: none;
}

.case-card-body {
  display: flex;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  flex-direction: column;
  color: var(--ink);
}

.case-kicker {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card h3 {
  max-width: 22ch;
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.03;
}

.case-card h2 {
  max-width: 22ch;
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.03;
}

.case-decisions {
  display: grid;
  gap: 1rem;
  margin: auto 0 0;
}

.case-decisions div {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-decisions dt {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-decisions dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.case-link {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  align-items: center;
  gap: 0.55rem;
  color: currentColor;
  font-size: 0.84rem;
  font-weight: 800;
}

.expert-focus {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.expert-focus li {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr);
  gap: 0.65rem;
  color: var(--ink-soft);
}

.expert-focus li::before {
  width: 0.52rem;
  height: 0.52rem;
  margin-top: 0.48rem;
  background: var(--green);
  content: "";
}

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

.team-member-lead {
  grid-column: 1 / -1;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.team-member:last-child,
.team-member-support {
  grid-column: auto;
  width: auto;
}

.team-member img {
  border-color: var(--blue);
}

.team-member-lead img {
  border-color: var(--red);
}

.team-member-lead figcaption strong {
  color: var(--blue-dark);
  font-size: 1.08rem;
}

.team-member-support figcaption span {
  font-size: 0.72rem;
}

.contact-band {
  background: var(--red);
}

.contact-band .quote-form {
  box-shadow: 1rem 1rem 0 rgba(103, 7, 20, 0.32);
}

/* Detailed case-study pages. */
.case-hero {
  padding-block: clamp(2.25rem, 7vw, 5.75rem);
  border-bottom: 1px solid var(--blue-dark);
  background:
    linear-gradient(115deg, rgba(36, 84, 166, 0.08), transparent 48%),
    var(--surface);
}

.case-hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 6vw, 4.5rem);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.breadcrumbs a {
  color: inherit;
}

.case-hero h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  line-height: 0.98;
}

.case-lead {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.case-expert-mini {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 3px solid var(--red);
}

.expert-portrait {
  display: block;
  width: 5.25rem;
  height: 6.5rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.case-expert-mini .expert-portrait img {
  width: 10.5rem;
  max-width: none;
  height: auto;
}

.case-expert-mini p,
.case-expert-mini span,
.case-expert-mini strong,
.case-expert-mini small {
  display: block;
  margin: 0;
}

.case-expert-mini span,
.case-expert-mini small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.35;
}

.case-expert-mini strong {
  margin-block: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.case-facts {
  background: var(--blue-dark);
  color: #fff;
}

.case-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-facts p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.case-facts p:nth-child(even) {
  border-right: 0;
}

.case-facts strong {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  line-height: 1.1;
}

.case-facts span {
  color: #cbd8eb;
  font-size: 0.72rem;
  line-height: 1.35;
}

.case-content-grid {
  display: grid;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.case-toc {
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.case-toc p {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-toc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.case-toc a {
  color: inherit;
}

.case-article-body {
  max-width: 48rem;
}

.case-article-body > section + section {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.case-article-body h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1;
}

.case-article-body p {
  color: var(--ink-soft);
}

.case-step-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--blue-dark);
  counter-reset: case-step;
  list-style: none;
}

.case-step-list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.25rem;
  border-bottom: 1px solid var(--line);
  counter-increment: case-step;
}

.case-step-list li::before {
  position: absolute;
  top: 1.65rem;
  left: 0;
  color: var(--red);
  content: "0" counter(case-step);
  font-size: 0.76rem;
  font-weight: 800;
}

.case-step-list h3 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.case-step-list p {
  margin-bottom: 0;
}

.case-result {
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--blue-dark);
  color: #fff;
}

.case-result .eyebrow {
  color: #ff7783;
}

.case-result ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.15rem;
  color: #dbe6f5;
}

.case-checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-checklist li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.case-checklist li::before {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.38rem;
  border: 2px solid var(--green);
  content: "";
}

/* Editorial media restored from the previous ChinaTranslate site. */
.page-media-section,
.case-media-section {
  padding-block: clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.case-media-section {
  background: var(--surface);
}

.page-visual {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(2rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}

.page-media-section .page-visual,
.case-media-section .page-visual,
.entry-featured .page-visual {
  margin-bottom: 0;
}

.page-visual-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--blue-dark);
}

.page-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-visual-position-top .page-visual-frame img {
  object-position: center 22%;
}

.page-visual-position-right .page-visual-frame img {
  object-position: 70% center;
}

.page-visual figcaption {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--blue-dark);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.page-visual figcaption span {
  display: grid;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.entry-content > .faq-section,
.faq-section-wide {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.faq-section-wide {
  border-top: 1px solid var(--blue-dark);
  background:
    linear-gradient(120deg, rgba(36, 84, 166, 0.07), transparent 52%),
    var(--surface);
}

.faq-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.faq-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.entry-content .faq-heading h2 {
  margin: 0;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.article-teaser-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}

.article-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-teaser-media:hover img {
  transform: scale(1.025);
}

.entry-featured {
  padding-top: clamp(1.5rem, 5vw, 4rem);
}

.entry-featured figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--paper-deep);
}

.entry-featured figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 44rem) {
  .page-visual-frame {
    aspect-ratio: 16 / 7;
  }

  .page-media-section .page-visual-frame,
  .case-media-section .page-visual-frame,
  .entry-featured .page-visual-frame {
    max-height: 42vh;
  }

  .entry-content > .page-visual .page-visual-frame {
    aspect-ratio: 16 / 9;
  }

  .faq-section-wide > .shell {
    display: grid;
    grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: start;
  }

  .article-teaser {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: start;
  }

  .article-teaser-media {
    aspect-ratio: 4 / 3;
  }

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

  .case-card-body {
    min-height: 34rem;
  }

  .case-facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-facts p,
  .case-facts p:nth-child(even) {
    min-height: 7.5rem;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 0;
  }

  .case-facts p:last-child {
    border-right: 0;
  }
}

@media (max-width: 63.99rem) {
  .hero-visual {
    aspect-ratio: 16 / 5;
  }

  .hero-copy {
    padding: clamp(1.1rem, 5vw, 1.5rem);
  }

  .hero-lead {
    margin-bottom: 1.25rem;
  }

  .hero-proof {
    margin-top: 1.25rem;
  }

  /* The fixed dock already supplies the primary quote action on touch layouts. */
  .hero .hero-actions .button {
    display: none;
  }
}

@media (min-width: 64rem) {
  html {
    scroll-padding-top: 8.5rem;
  }

  body {
    padding-bottom: 0;
  }

  .header-main {
    min-height: 4.8rem;
  }

  .brand img {
    width: clamp(17rem, 27vw, 21.5rem);
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.9rem, 2vw, 1.75rem);
  }

  .mobile-header-telegram {
    display: none;
  }

  .header-contact {
    display: grid;
    gap: 0.1rem;
    min-height: 2.75rem;
    align-content: center;
    color: var(--blue-dark);
    line-height: 1.15;
    text-decoration: none;
  }

  .header-contact span {
    color: var(--ink-soft);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .header-contact strong {
    font-size: clamp(0.78rem, 1vw, 0.9rem);
  }

  .header-actions .nav-cta {
    min-height: 2.85rem;
    margin: 0;
    padding-inline: clamp(1rem, 2vw, 1.45rem);
    white-space: nowrap;
  }

  .desktop-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .desktop-nav .primary-nav {
    width: min(calc(100% - 3rem), var(--shell));
    margin-inline: auto;
  }

  .desktop-nav .nav-list {
    display: flex;
    width: min(100%, var(--shell));
    min-height: 2.85rem;
    padding-inline: 1rem;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 3.2vw, 3rem);
  }

  .desktop-nav .nav-list a {
    min-height: 2.85rem;
    border: 0;
    font-size: clamp(0.73rem, 0.9vw, 0.83rem);
  }

  .mobile-nav,
  .mobile-action-dock {
    display: none;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(11rem, 0.65fr);
    grid-template-rows: repeat(2, minmax(0, auto));
  }

  .team-member-lead {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    margin-inline: 0;
  }

  .team-member-support {
    grid-column: 2;
  }

  .team-member-lead img {
    min-height: 35rem;
  }

  .team-member-support img {
    aspect-ratio: 4 / 3;
  }

  .case-hero-grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .case-content-grid {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
  }

  .case-toc {
    position: sticky;
    top: 9.5rem;
  }

  .entry-featured figure {
    max-height: 42vh;
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 23rem) {
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .mobile-action-dock a {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.67rem;
  }

  .mobile-action-dock svg {
    width: 1rem;
  }
}

@media print {
  body {
    padding-bottom: 0;
  }

  .mobile-action-dock,
  .header-actions {
    display: none !important;
  }
}

/* Final cascade: small text on saturated brand backgrounds must pass AA. */
.service-card-dark .service-index,
.evidence .eyebrow,
.contact-band > .contact-grid > div > p {
  color: #fff;
}
