:root {
  --ink: #161713;
  --text: #2b2d28;
  --muted: #696b63;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #dedbd3;
  --line-dark: rgba(255, 255, 255, 0.24);
  --deep: #10130f;
  --accent: #8d6b45;
  --green: #5f715e;
  --max: 1216px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-inline: clamp(28px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 211, 199, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.site-nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.site-nav a:hover,
body[data-page="sluzby"] .site-nav a[href="sluzby.html"],
body[data-page="reference"] .site-nav a[href="reference.html"],
body[data-page="odbornost"] .site-nav a[href="odbornost.html"],
body[data-page="o-nas"] .site-nav a[href="o-nas.html"],
body[data-page="kontakt"] .site-nav a[href="kontakt.html"] {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(0.74) contrast(0.92);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, rgba(16, 19, 15, 0.46), rgba(16, 19, 15, 0.46)),
    radial-gradient(circle at 50% 48%, rgba(16, 19, 15, 0.08) 0%, rgba(16, 19, 15, 0.28) 62%, rgba(16, 19, 15, 0.54) 100%);
}

.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  width: min(calc(100% - 48px), 760px);
  margin-inline: auto;
  place-content: center;
  text-align: center;
}

.hero-center p {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-center h1 {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: lowercase;
}

.hero-center span {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 38px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.45rem, 4.3vw, 4.4rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button-primary {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.hero .button-primary,
.section-dark .button-primary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--surface);
}

.button-primary:hover {
  color: var(--surface);
  background: var(--green);
  border-color: var(--green);
}

.hero .button-primary:hover,
.section-dark .button-primary:hover {
  color: var(--surface);
  background: var(--green);
  border-color: var(--green);
}

.button-secondary {
  color: inherit;
  background: transparent;
}

.section {
  padding: clamp(88px, 10vw, 132px) 0;
}

.section-muted {
  background: #f6f5f1;
}

.section-dark {
  color: var(--surface);
  background: var(--deep);
}

.section-dark .eyebrow {
  color: #c6a479;
}

.two-column,
.split-showcase,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: start;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.95rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.copy-block {
  max-width: 650px;
  color: var(--text);
  font-size: 1.05rem;
}

.copy-block p + p,
.expert-article p + p {
  margin-top: 18px;
}

.intro-center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-center h2 {
  max-width: 920px;
}

.intro-center > p:last-child {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.28vw, 1.16rem);
}

.section-title {
  max-width: 760px;
  margin: 0 auto clamp(42px, 6vw, 76px);
  text-align: center;
}

.service-overview {
  max-width: 1120px;
}

.service-row {
  display: grid;
  grid-template-columns: 96px minmax(220px, 0.54fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row span,
.knowledge-list span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-row h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
}

.service-row p {
  color: var(--muted);
}

.service-row:hover h3,
.knowledge-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
}

.work-types {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.work-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
}

.reference-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 38px;
}

.reference-strip figure {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reference-strip img {
  width: 104px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.72);
}

.reference-strip figcaption {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-preview {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
}

.knowledge-preview .section-title {
  margin: 0;
  text-align: left;
}

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

.knowledge-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 600;
  text-decoration: none;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  margin-bottom: clamp(38px, 6vw, 78px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 760px;
}

.service-grid,
.type-grid,
.reference-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.feature-card,
.type-grid article,
.reference-card {
  min-height: 238px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.feature-card:not(:first-child),
.type-grid article:not(:first-child),
.reference-card:not(:first-child) {
  padding-left: 28px;
}

.feature-card:nth-child(3n),
.reference-card:nth-child(3n),
.credential-grid .feature-card:nth-child(3n) {
  border-right: 0;
}

.type-grid article:nth-child(4n) {
  border-right: 0;
}

.feature-card p,
.type-grid p,
.reference-card p {
  max-width: 340px;
  margin-top: 18px;
  color: var(--muted);
}

.feature-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
}

.card-index,
.service-number {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.split-showcase {
  align-items: center;
}

.showcase-text p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
}

.image-collage,
.reference-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}

.image-collage img,
.reference-mosaic img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.92);
  background: var(--surface);
}

.image-collage .image-wide,
.reference-mosaic img:first-child {
  grid-row: span 2;
  height: 100%;
}

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

.dark-list a {
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.dark-list a:hover {
  color: #fff;
}

.contact-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-dark .contact-band {
  border-color: var(--line-dark);
}

.contact-band p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 16px;
  color: var(--muted);
}

.section-dark .contact-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.page-hero {
  padding: clamp(88px, 12vw, 158px) 0 clamp(66px, 8vw, 112px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-heading {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.page-heading > *,
.article-header > * {
  min-width: 0;
  max-width: 100%;
}

.page-heading h1,
.article-header h1 {
  max-width: min(980px, 100%);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.45rem, 4.3vw, 4.4rem);
  line-height: 1.06;
}

.page-heading > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.32vw, 1.16rem);
}

.page-lead {
  align-self: end;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
}

.service-detail-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-detail {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(26px, 4vw, 54px);
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.77em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
  counter-reset: step;
}

.timeline li {
  min-height: 238px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  display: block;
  margin-bottom: 34px;
  counter-increment: step;
  content: "0" counter(step);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 10px;
  color: var(--muted);
}

.reference-lead {
  padding-bottom: 38px;
}

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

.reference-mosaic img {
  height: 180px;
}

.reference-mosaic img:first-child {
  min-height: 372px;
}

.reference-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.project-columns ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.project-columns li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.article-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.expert-article {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(34px, 6vw, 86px);
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.expert-article p {
  color: var(--muted);
}

.technical-figure {
  margin: 0;
}

.technical-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.technical-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.document-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.document-strip img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  background: var(--surface);
  filter: grayscale(0.35);
}

.contact-panel {
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}

.contact-panel p {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.contact-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
}

.address-block {
  min-height: 330px;
  padding: 28px;
  color: var(--surface);
  background: var(--deep);
}

.address-block h2 {
  margin-top: 12px;
}

.address-block p:last-child {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-guidance .check-list {
  margin-top: 24px;
}

.featured-references {
  display: grid;
  max-width: 980px;
  gap: 0;
}

.featured-references article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.featured-references article:first-child {
  border-top: 1px solid var(--line);
}

.featured-references img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  filter: grayscale(0.55);
  border: 1px solid var(--line);
}

.featured-references span,
.article-teaser span,
.updates-archive time {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-references h2,
.article-teaser h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.18;
}

.featured-references p,
.article-teaser p {
  margin-top: 16px;
  color: var(--muted);
}

.reference-archive {
  display: grid;
  gap: clamp(42px, 6vw, 72px);
}

.archive-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.archive-group h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
}

.archive-group ul {
  columns: 2;
  column-gap: clamp(28px, 4vw, 54px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-group li {
  break-inside: avoid;
  padding: 0 0 12px;
  color: var(--muted);
}

.audience-lines {
  max-width: 1120px;
}

.audience-row,
.credential-row {
  display: grid;
  grid-template-columns: 84px minmax(220px, 0.34fr) minmax(0, 0.48fr) minmax(160px, 0.18fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.audience-row:last-child,
.credential-row:last-child {
  border-bottom: 1px solid var(--line);
}

.audience-row span,
.credential-row span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.audience-row p,
.credential-row p {
  color: var(--muted);
}

.audience-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credential-list {
  max-width: 1040px;
  margin-inline: auto;
}

.credential-row {
  grid-template-columns: 84px minmax(220px, 0.36fr) minmax(0, 0.64fr);
}

.article-index {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-teaser {
  display: grid;
  grid-template-columns: minmax(150px, 0.2fr) minmax(260px, 0.34fr) minmax(0, 0.46fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.article-teaser:hover h2 {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 7px;
}

.article-note {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(42px, 7vw, 104px);
}

.article-note p + p {
  margin-top: 18px;
}

.article-note div:last-child {
  color: var(--muted);
}

.updates-archive ol {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.updates-archive li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.updates-archive p {
  color: var(--muted);
}

.article-page {
  background: var(--paper);
}

.article-header {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(86px, 11vw, 138px) 0 clamp(50px, 7vw, 82px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
  line-height: 1.04;
  font-weight: 500;
}

.article-header > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.32vw, 1.16rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.article-body {
  max-width: 880px;
  padding: clamp(56px, 8vw, 96px) 0 clamp(84px, 11vw, 132px);
}

.article-body h2 {
  margin: 48px 0 18px;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: var(--text);
}

.article-body p + p {
  margin-top: 18px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.data-table {
  width: 100%;
  margin: 22px 0 34px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  background: #f6f5f1;
  font-weight: 700;
}

.article-figure {
  margin: 34px 0;
}

.article-figure img {
  width: 100%;
  border: 1px solid var(--line);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.66);
  background: var(--deep);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

.site-footer strong {
  color: var(--surface);
}

.site-footer p {
  margin-top: 6px;
}

.site-footer span {
  display: block;
  text-align: right;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--surface);
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 5px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    padding: 18px 28px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .two-column,
  .split-showcase,
  .contact-layout,
  .expert-article,
  .work-types,
  .knowledge-preview,
  .article-note,
  .archive-group {
    grid-template-columns: 1fr;
  }

  .knowledge-preview .section-title {
    max-width: 760px;
  }

  .service-grid,
  .type-grid,
  .reference-grid,
  .credential-grid,
  .project-columns {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:nth-child(3n),
  .reference-card:nth-child(3n),
  .credential-grid .feature-card:nth-child(3n),
  .type-grid article:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .feature-card:nth-child(2n),
  .reference-card:nth-child(2n),
  .credential-grid .feature-card:nth-child(2n),
  .type-grid article:nth-child(2n) {
    border-right: 0;
  }

  .service-detail {
    grid-template-columns: 70px 1fr;
  }

  .service-detail .check-list {
    grid-column: 2;
  }

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

  .service-row {
    grid-template-columns: 70px minmax(190px, 0.48fr) 1fr;
  }

  .article-teaser {
    grid-template-columns: 130px 1fr;
  }

  .article-teaser p {
    grid-column: 2;
  }

  .archive-group ul {
    columns: 1;
  }

  .audience-row,
  .credential-row {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
  }

  .audience-row p,
  .audience-row small,
  .credential-row p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .container,
  .hero-center {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    inset: 70px 0 auto 0;
    padding-inline: 16px;
  }

  .hero {
    min-height: calc(100svh - 70px);
  }

  .hero-center p {
    font-size: clamp(1.62rem, 8.4vw, 2rem);
    letter-spacing: 0.035em;
  }

  .hero-center h1 {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }

  .hero-center span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.07;
    overflow-wrap: break-word;
  }

  .article-header h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.07;
    overflow-wrap: break-word;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(16, 19, 15, 0.54), rgba(16, 19, 15, 0.54)),
      radial-gradient(circle at 50% 46%, rgba(16, 19, 15, 0.06) 0%, rgba(16, 19, 15, 0.28) 62%, rgba(16, 19, 15, 0.58) 100%);
  }

  .hero-actions,
  .contact-actions,
  .contact-band,
  .footer-grid,
  .footer-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading,
  .service-grid,
  .type-grid,
  .reference-grid,
  .credential-grid,
  .project-columns,
  .document-strip,
  .timeline,
  .reference-strip,
  .featured-references {
    grid-template-columns: 1fr;
  }

  .intro-center {
    justify-items: start;
    text-align: left;
  }

  .section-title,
  .knowledge-preview .section-title {
    margin-inline: 0;
    text-align: left;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .article-teaser,
  .updates-archive li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-teaser p {
    grid-column: auto;
  }

  .featured-references article,
  .featured-references article + article,
  .featured-references article:not(:first-child) {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-right: 0;
  }

  .featured-references img {
    width: 96px;
    height: 68px;
  }

  .audience-row,
  .credential-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .audience-row p,
  .audience-row small,
  .credential-row p {
    grid-column: auto;
  }

  .knowledge-list a {
    grid-template-columns: 44px 1fr;
  }

  .reference-strip {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .type-grid article,
  .reference-card,
  .feature-card:not(:first-child),
  .type-grid article:not(:first-child),
  .reference-card:not(:first-child) {
    min-height: auto;
    padding: 26px 0;
    border-right: 0;
  }

  .feature-card:nth-child(3n),
  .reference-card:nth-child(3n),
  .credential-grid .feature-card:nth-child(3n),
  .type-grid article:nth-child(4n),
  .feature-card:nth-child(2n),
  .reference-card:nth-child(2n),
  .credential-grid .feature-card:nth-child(2n),
  .type-grid article:nth-child(2n) {
    border-right: 0;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-detail .check-list {
    grid-column: auto;
  }

  .timeline li {
    min-height: auto;
  }

  .image-collage,
  .reference-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .image-collage .image-wide,
  .reference-mosaic img:first-child {
    grid-column: span 2;
    grid-row: auto;
    min-height: 210px;
  }

  .site-footer span {
    text-align: left;
  }

  .page-heading,
  .article-header {
    justify-items: start;
    text-align: left;
  }

  .data-table {
    display: table;
    table-layout: fixed;
    overflow: visible;
    white-space: normal;
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }
}
