/* ============================================================
   MEDICAL RESEARCH PROJECTS, TOO — mrpastana.com
   Plain CSS. All assets self-hosted; no external requests.
   ============================================================ */

:root {
  --paper:        #EFF1F0;
  --paper-raised: #F7F8F8;
  --ink:          #121817;
  --slate:        #57635F;
  --rule:         #D2D8D5;
  --accent:       #14584A;
  --accent-deep:  #0E4238;
  --accent-soft:  #E4EDE9;

  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Iowan Old Style", Charter, Palatino, Georgia, serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --notch: 24px;
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

ul li::marker {
  color: var(--accent);
}

address {
  font-style: normal;
}

svg {
  display: block;
}

/* Utility register: labels, requisites, numbers */

.label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

/* ---------- Layout ---------- */

.container {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-wide {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main > section {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--rule);
}

main > section:last-child {
  border-bottom: 0;
}

/* ---------- Scroll reveal (activated by self-hosted JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@media print {
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .container-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--slate);
  padding-block: 0.375rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* language switcher */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--slate);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch a[aria-current="true"] {
  color: #fff;
  background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

/* ---------- Hero (dark stage) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 6rem 11rem;
  background: var(--accent-deep) url("img/range.svg") bottom center / cover no-repeat;
  color: var(--paper-raised);
  border-bottom: 0;
}

/* engineering-paper grid, fading toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 248, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 248, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
  mask-image: linear-gradient(#000 30%, transparent 95%);
  pointer-events: none;
}

/* Trans-Ili Alatau ridgeline: the hand-off from the dark hero to the page */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0,140V60L90,44L150,58L230,30L300,55L390,38L470,62L560,34L650,58L720,42L810,64L900,36L990,60L1080,46L1170,66L1260,40L1350,60L1440,48V140Z' fill='%23E4EDE9' fill-opacity='0.14'/%3E%3Cpath d='M0,140V84L110,62L190,80L280,54L370,78L460,60L550,84L640,62L740,86L830,66L930,88L1020,68L1120,90L1220,72L1320,92L1440,76V140Z' fill='%23E4EDE9' fill-opacity='0.32'/%3E%3Cpath d='M0,140V108L120,90L240,106L360,88L480,108L600,92L720,110L840,96L960,112L1080,98L1200,114L1320,102L1440,112V140Z' fill='%23EFF1F0'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.hero .container-wide {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #FFFFFF;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 3rem;
  margin-bottom: 3rem;
}

.hero .tagline {
  font-size: 1.1875rem;
  color: #B9C9C3;
  margin: 1rem 0 0;
  max-width: 34rem;
}

/* Registry seal — recoloured for the dark stage */

.hero-seal {
  width: clamp(180px, 24vw, 260px);
  height: auto;
}

.hero-seal [stroke="#D2D8D5"] { stroke: rgba(247, 248, 248, 0.22); }
.hero-seal [stroke="#121817"] { stroke: rgba(247, 248, 248, 0.85); }
.hero-seal [stroke="#14584A"] { stroke: #7FC1AE; }
.hero-seal [stroke="#57635F"] { stroke: rgba(247, 248, 248, 0.4); }
.hero-seal [fill="#57635F"]   { fill: rgba(247, 248, 248, 0.6); }
.hero-seal [fill="#14584A"]   { fill: #7FC1AE; }

/* the entity card's hairline border, lightened against the dark hero */
.hero .entity-card {
  background: rgba(247, 248, 248, 0.3);
}

.hero-seal .seal-ring-text {
  animation: seal-spin 80s linear infinite;
  transform-origin: 180px 180px;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Entity record card ---------- */

/* Two clipped layers: the outer paints the border, the inner the card.
   Same notch size on both keeps the diagonal edge parallel. */

.entity-card {
  background: var(--rule);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 1px;
  max-width: 880px;
}

.entity-card-inner {
  position: relative;
  background: var(--paper-raised);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 1.25rem 1.5rem 0.5rem;
}

/* accent fold in the notched corner */
.entity-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: var(--notch) solid var(--accent-soft);
  border-left: var(--notch) solid transparent;
}

.entity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.entity-head .label {
  color: var(--ink);
  font-weight: 600;
}

.entity-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: var(--notch);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0%   { transform: scale(0.4); opacity: 0.9; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { opacity: 0; }
}

.entity-row {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}

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

.entity-row dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin: 0;
  padding-top: 0.1875rem;
}

.entity-row dd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}

.entity-row dd a {
  color: var(--ink);
}

/* card rows fade in on load */

.entity-head,
.entity-row {
  opacity: 0;
  transform: translateY(4px);
  animation: entity-in 0.35s ease-out forwards;
}

.entity-head             { animation-delay: 0ms; }
.entity-row:nth-of-type(1) { animation-delay: 60ms; }
.entity-row:nth-of-type(2) { animation-delay: 120ms; }
.entity-row:nth-of-type(3) { animation-delay: 180ms; }
.entity-row:nth-of-type(4) { animation-delay: 240ms; }
.entity-row:nth-of-type(5) { animation-delay: 300ms; }
.entity-row:nth-of-type(6) { animation-delay: 360ms; }
.entity-row:nth-of-type(7) { animation-delay: 420ms; }

@keyframes entity-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--rule);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 1px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.service-card-inner {
  position: relative;
  height: 100%;
  background: var(--paper-raised);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: calc(150px + 1.5rem) 1.75rem 1.75rem;
}

/* picture band at the top of each service card */
.service-card-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.services-grid .service-card:nth-child(1) .service-card-inner::after {
  background-image: url("img/svc-build.svg");
}

.services-grid .service-card:nth-child(2) .service-card-inner::after {
  background-image: url("img/svc-consult.svg");
}

.services-grid .service-card:nth-child(3) .service-card-inner::after {
  background-image: url("img/svc-ai.svg");
}

.service-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  border-top: 18px solid var(--accent);
  border-left: 18px solid transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover .service-card-inner::before {
  opacity: 1;
}

.service-icon {
  display: none;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.service-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* section backdrop: raised band for Principles */

main > section:has(#principles-title) {
  background: var(--paper-raised);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  border-top: 2px solid var(--rule);
  padding-top: 1.125rem;
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step h3 {
  margin: 0.375rem 0 0.375rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}

.principle {
  background: var(--paper-raised);
  padding: 1.375rem 1.5rem;
}

.principle h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  margin: 0 0 0.375rem;
}

.principle h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 62% 0, 100% 38%, 100% 100%, 0 100%);
  flex: none;
}

.principle p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ---------- Astana Hub ---------- */

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.note-pic {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 2.5rem 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.contact-list {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 1.5rem;
  margin: 0;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  padding-top: 0.1875rem;
}

.contact-list dd {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.75rem 1.375rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--rule);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* map figure */

.contact-map {
  margin: 0;
}

.contact-map svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

/* deepen the map linework (attribute colours live in the inline SVG) */
.contact-map [stroke="#D2D8D5"] { stroke: #BFC9C5; }
.contact-map [stroke="#57635F"] { stroke: #57635F; }

.contact-map figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-top: 0.625rem;
}

.map-pin-pulse {
  animation: status-pulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* ---------- Document pages (privacy, support, terms) ---------- */

.doc-header {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 6.5rem;
  background: radial-gradient(900px 460px at 15% -20%, #17604F, var(--accent-deep) 60%);
  color: #C3D2CC;
}

/* engineering grid, as on the main hero */
.doc-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 248, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 248, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
  mask-image: linear-gradient(#000 30%, transparent 95%);
  pointer-events: none;
}

/* ridge strip hand-off into the document body */
.doc-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0,140V60L90,44L150,58L230,30L300,55L390,38L470,62L560,34L650,58L720,42L810,64L900,36L990,60L1080,46L1170,66L1260,40L1350,60L1440,48V140Z' fill='%23E4EDE9' fill-opacity='0.14'/%3E%3Cpath d='M0,140V84L110,62L190,80L280,54L370,78L460,60L550,84L640,62L740,86L830,66L930,88L1020,68L1120,90L1220,72L1320,92L1440,76V140Z' fill='%23E4EDE9' fill-opacity='0.32'/%3E%3Cpath d='M0,140V108L120,90L240,106L360,88L480,108L600,92L720,110L840,96L960,112L1080,98L1200,114L1320,102L1440,112V140Z' fill='%23EFF1F0'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

.doc-header .container {
  position: relative;
  z-index: 1;
}

/* per-page emblem, top right of the header */
.doc-header .container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 1.25rem;
  width: 150px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.doc-privacy .doc-header .container::after { background-image: url("img/doc-privacy.svg"); }
.doc-support .doc-header .container::after { background-image: url("img/doc-support.svg"); }
.doc-terms   .doc-header .container::after { background-image: url("img/doc-terms.svg"); }

.doc-header .label {
  display: block;
  margin-bottom: 1rem;
  color: #9FE0CB;
}

.doc-header h1 {
  color: #FFFFFF;
}

.doc-header p {
  max-width: 36rem;
}

.doc-header a {
  color: #DCE8E2;
  text-decoration-color: #DCE8E2;
}

.doc-header a:hover {
  color: #9FE0CB;
  text-decoration-color: #9FE0CB;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 1rem;
}

.doc-header .doc-meta {
  color: #9BB0A8;
}

.doc section h2 {
  margin-top: 3rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--rule);
}

.doc section h2::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.75rem;
}

.doc section h3 {
  margin-top: 2rem;
}

.doc section h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 62% 0, 100% 38%, 100% 100%, 0 100%);
  margin-right: 0.625rem;
}

/* requisites block on doc pages reads as a card */
.doc .contact-list {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.placeholder {
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.125rem 0.375rem;
}

/* ---------- Footer (dark bookend) ---------- */

.site-footer {
  background: var(--ink);
  color: #93A29C;
  border-top: 3px solid var(--accent);
  padding-block: 3rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #93A29C;
}

.site-footer a:hover {
  color: #7FC1AE;
  text-decoration-color: #7FC1AE;
}

.site-footer .container-wide {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: start;
}

.footer-requisites {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #93A29C;
}

.footer-requisites strong {
  color: var(--paper-raised);
  font-weight: 600;
}

.footer-nav {
  display: grid;
  gap: 0.5rem;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #6E7D77;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .doc-header .container::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-seal {
    display: none;
  }

  .entity-row,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .entity-row dt,
  .contact-list dt {
    padding-top: 0;
  }

  .entity-card-inner {
    padding-inline: 1rem;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps,
  .principles {
    grid-template-columns: 1fr;
  }

  .doc-header {
    padding-block: 3rem 5rem;
  }

  .doc-header .container::after {
    display: none;
  }

  .site-footer .container-wide {
    grid-template-columns: 1fr;
  }

  main > section {
    padding-block: 3rem;
  }

  .hero {
    padding-block: 3.5rem 7rem;
  }

  .hero::after {
    height: 80px;
  }

  main > section:has(#services-title)::after {
    display: none;
  }
}

/* ---------- Reduced motion: switch everything off ---------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .entity-head,
  .entity-row {
    opacity: 1;
    transform: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
