:root {
  --bg: #07111f;
  --bg-2: #0c1827;
  --panel: #101f30;
  --panel-2: #f6f8fb;
  --text: #eef5fb;
  --muted: #9fb0c0;
  --ink: #162334;
  --ink-soft: #5f6f81;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(22, 35, 52, 0.12);
  --teal: #4f8cff;
  --green: #7b7cff;
  --amber: #f5b94c;
  --blue: #4fa3ff;
  --doc-blue: #2563eb;
  --doc-violet: #6d5dfc;
  --doc-cyan: #38bdf8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.76);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  width: 170px;
}

.brand img {
  width: 100%;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #d9e6ef;
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
}

.header-cta,
.button.primary {
  background: #eef4ff;
  color: #10254a;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eef5fb;
}

.button.full {
  width: 100%;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section-band {
  position: relative;
}

.section-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 112px;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 136px 0 54px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.82) 46%, rgba(7, 17, 31, 0.32) 100%),
    var(--bg);
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0), var(--bg));
  content: "";
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #d7e6ef;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(7, 17, 31, 0.46);
}

.hero-metrics dt {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  padding: 76px 0 70px;
}

.intro > p {
  align-self: end;
  margin: 0;
  color: #cbd8e5;
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-bottom: 34px;
}

.services {
  padding: 34px 0 92px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body {
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 20px;
}

.service-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(79, 140, 255, 0.34);
  border-radius: 999px;
  color: #c9d9ff;
  font-size: 0.78rem;
  font-weight: 750;
}

.service-body p,
.portfolio-grid p,
.process-list p,
.contact-inner p {
  color: #bdcddd;
}

.service-body p {
  margin: 14px 0 22px;
}

.service-body a {
  margin-top: auto;
  color: #eaf1ff;
  font-weight: 800;
}

.process {
  padding: 88px 0;
  background: #f4f7fa;
  color: var(--ink);
}

.process .eyebrow {
  color: #2864d7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-list article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(22, 35, 52, 0.07);
}

.process-list span {
  display: block;
  margin-bottom: 30px;
  color: #315fd0;
  font-weight: 900;
}

.process-list p {
  color: var(--ink-soft);
}

.portfolio {
  padding: 88px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-grid article {
  min-height: 190px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(109, 93, 252, 0.05)),
    rgba(255, 255, 255, 0.035);
}

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

.portfolio-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.clients {
  padding: 86px 0 96px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(12, 24, 39, 0.72) 18%, rgba(12, 24, 39, 0.92) 100%),
    var(--bg);
}

.clients-inner {
  display: grid;
  gap: 30px;
}

.clients-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.clients-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
}

.clients-heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #bdcddd;
}

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

.client-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
  min-height: 166px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(22, 35, 52, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.client-card img {
  width: min(100%, 210px);
  height: 72px;
  object-fit: contain;
}

.client-card.compact-logo img {
  width: auto;
  height: 86px;
}

.client-card.wide-logo img {
  width: min(100%, 260px);
  height: 58px;
}

.client-card h3 {
  color: #253247;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.contact {
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(109, 93, 252, 0.1)),
    var(--bg-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 54px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-link {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-link strong {
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  color: var(--muted);
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.service-hero {
  min-height: 86vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 146px 0 74px;
  background: var(--bg);
}

.service-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0), var(--bg));
  content: "";
}

.service-hero-media {
  position: absolute;
  inset: 0;
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.44;
}

.service-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.78) 50%, rgba(7, 17, 31, 0.32) 100%);
  content: "";
}

.procurement-hero .service-hero-media img {
  object-position: center;
}

.service-hero-content {
  position: relative;
  z-index: 1;
}

.service-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
}

.service-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d4e2ec;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.app-overview,
.app-process {
  padding: 88px 0;
}

.app-feature-grid,
.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-feature-grid article,
.timeline-list article {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(109, 93, 252, 0.05)),
    rgba(255, 255, 255, 0.045);
}

.app-feature-grid span,
.timeline-list span {
  display: block;
  margin-bottom: 28px;
  color: #b9d0ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-feature-grid p,
.timeline-list p {
  color: #bdcddd;
}

.app-portfolio {
  padding: 88px 0;
  background: #f4f7fa;
  color: var(--ink);
}

.app-portfolio .eyebrow {
  color: #2864d7;
}

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

.app-project {
  display: grid;
  grid-template-rows: 186px 1fr;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(22, 35, 52, 0.08);
}

.app-project img {
  width: 100%;
  height: 186px;
  padding: 0;
  background: #eef3f7;
  object-fit: cover;
  object-position: top center;
}

.app-project div {
  padding: 22px;
}

.app-project span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2864d7;
  font-size: 0.76rem;
  font-weight: 850;
}

.app-project p {
  color: var(--ink-soft);
}

.app-project a {
  display: inline-flex;
  margin-top: 8px;
  color: #2864d7;
  font-size: 0.86rem;
  font-weight: 850;
}

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

.procurement-card {
  display: grid;
  grid-template-rows: 156px 1fr;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(22, 35, 52, 0.08);
}

/* Homepage 2026 refresh */
.home-page {
  --home-bg: #080b12;
  --home-panel: #111722;
  --home-paper: #f3f4f1;
  --home-ink: #11141b;
  --home-muted: #a8b0bf;
  --home-blue: #3e68ff;
  --home-cyan: #5aa7ff;
  --home-coral: #ff704f;
  --home-lime: #7b7cff;
  background: var(--home-bg);
  color: #f5f7fb;
}

.home-page .section-wrap {
  width: min(1240px, calc(100% - 48px));
}

.home-page .site-header {
  grid-template-columns: auto 1fr auto;
  width: min(1240px, calc(100% - 40px));
  min-height: 68px;
  margin-top: 14px;
  padding: 9px 10px 9px 16px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.home-page .site-header.is-scrolled {
  border-color: rgba(90, 167, 255, 0.26);
  background: rgba(8, 11, 18, 0.94);
}

.home-page .brand {
  width: 154px;
}

.home-page .site-nav {
  gap: 30px;
  color: #d7dce5;
  font-size: 0.88rem;
  font-weight: 650;
}

.home-page .site-nav a::after {
  height: 1px;
  background: var(--home-cyan);
}

.home-page .header-cta {
  min-height: 46px;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: #f5f7fb;
  color: #10141b;
  font-size: 0.88rem;
}

.home-page .nav-toggle {
  border-radius: 4px;
}

.home-page .hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(820px, 88svh);
  overflow: hidden;
  padding: 132px 0 34px;
  background: var(--home-bg);
}

.home-page .hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.98) 0%, rgba(8, 11, 18, 0.88) 39%, rgba(8, 11, 18, 0.2) 72%),
    linear-gradient(180deg, rgba(8, 11, 18, 0.1) 57%, rgba(8, 11, 18, 0.92) 100%);
  content: "";
}

.home-page .hero::after {
  position: absolute;
  z-index: 2;
  top: 98px;
  bottom: 32px;
  left: max(24px, calc((100% - 1240px) / 2));
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.home-page .hero-media img {
  width: 100%;
  height: 100%;
  opacity: 0.9;
  object-fit: cover;
  object-position: center;
  scale: 1.015;
}

.hero-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-position: center;
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.home-page .hero-content {
  z-index: 3;
  width: min(1240px, calc(100% - 48px));
  padding-left: 28px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #d3dae5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-light {
  width: 7px;
  height: 7px;
  background: var(--home-lime);
  box-shadow: 0 0 16px rgba(199, 243, 107, 0.8);
}

.home-page h1 {
  max-width: none;
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(4.3rem, 12vw, 10.5rem);
  font-weight: 820;
  line-height: 0.78;
  letter-spacing: 0;
}

.home-page .hero-lead {
  max-width: 670px;
  margin-top: 30px;
  color: #d2d8e2;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.55;
}

.home-page .hero-actions {
  margin-top: 28px;
}

.home-page .button {
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.home-page .button.primary {
  justify-content: space-between;
  min-width: 170px;
  background: var(--home-blue);
  color: #ffffff;
}

.home-page .button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 11, 18, 0.36);
  color: #f5f7fb;
  backdrop-filter: blur(8px);
}

.hero-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(8, 11, 18, 0.5);
  backdrop-filter: blur(12px);
}

.hero-console div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-console div:last-child {
  border-right: 0;
}

.hero-console span {
  color: var(--home-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
}

.hero-console strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.84rem;
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - 1240px) / 2));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cad1dc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.signal-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(17, 20, 27, 0.12);
  background: var(--home-paper);
  color: var(--home-ink);
}

.signal-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.5fr;
  gap: 56px;
  align-items: center;
  min-height: 158px;
  padding: 24px 0;
}

.signal-inner > p {
  max-width: 400px;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 760;
  line-height: 1.28;
}

.signal-inner dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.signal-inner dl div {
  min-height: 82px;
  padding: 8px 22px;
  border-left: 1px solid rgba(17, 20, 27, 0.16);
}

.signal-inner dt {
  font-size: 1.65rem;
  font-weight: 820;
  line-height: 1;
}

.signal-inner dd {
  margin: 9px 0 0;
  color: #606775;
  font-size: 0.78rem;
}

.capabilities {
  padding: 108px 0 118px;
}

.home-page .section-heading {
  max-width: none;
  margin-bottom: 42px;
}

.split-heading {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: end;
}

.home-page .eyebrow {
  margin-bottom: 16px;
  color: var(--home-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.home-page h2 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 760;
  line-height: 0.98;
}

.split-heading > p {
  margin: 0 0 4px;
  color: var(--home-muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  grid-column: span 4;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: var(--home-panel);
  --card-lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transition: border-color 200ms ease, transform 180ms ease;
}

.capability-card:hover {
  --card-lift: -3px;
  border-color: rgba(90, 167, 255, 0.52);
}

.home-page.motion-ready .capability-card {
  transform: perspective(1100px) translateY(var(--card-lift)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  will-change: transform;
}

.capability-wide,
.capability-vt {
  grid-column: span 8;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
}

.capability-media {
  position: relative;
  display: block;
  min-height: 238px;
  overflow: hidden;
  background: #0b1019;
}

.capability-wide .capability-media,
.capability-vt .capability-media {
  min-height: 382px;
}

.capability-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, transparent 52%, rgba(8, 11, 18, 0.64));
  content: "";
  pointer-events: none;
}

.capability-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: scale 500ms cubic-bezier(0.2, 0.7, 0, 1);
}

.capability-card:hover .capability-media img {
  scale: 1.035;
}

.home-page.motion-ready .hero-media img {
  transform: translate3d(var(--hero-x, 0px), calc(var(--hero-y, 0px) + var(--hero-scroll, 0px)), 0) scale(1.06);
  will-change: transform;
}

.home-page.motion-ready .hero-content {
  transform: translate3d(0, var(--content-scroll, 0px), 0);
  will-change: transform;
}

.capability-product .capability-media img,
.capability-vt .capability-media img {
  object-position: top center;
}

.media-index {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  min-width: 34px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(8, 11, 18, 0.7);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.live-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 3px;
  background: #f4f6f9;
  color: #111722;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-badge i {
  width: 6px;
  height: 6px;
  background: #4f8cff;
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.72);
}

.capability-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 248px;
  padding: 24px;
}

.capability-wide .capability-copy,
.capability-vt .capability-copy {
  min-height: 382px;
  justify-content: flex-end;
}

.system-tag {
  margin-bottom: 22px;
  color: var(--home-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.capability-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 760;
}

.capability-copy p {
  margin: 14px 0 24px;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: fit-content;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #f6f8fb;
  font-size: 0.78rem;
  font-weight: 780;
}

.product-showcase {
  padding: 106px 0 114px;
  background: var(--home-paper);
  color: var(--home-ink);
}

.product-showcase .eyebrow {
  color: #2551ed;
}

.product-showcase .split-heading > .section-link {
  justify-self: end;
  margin-bottom: 6px;
  color: var(--home-ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 27, 0.16);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(17, 20, 27, 0.08);
}

.product-window-main {
  grid-row: span 2;
}

.window-bar {
  display: grid;
  grid-template-columns: 8px 8px 8px 1fr;
  gap: 7px;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(17, 20, 27, 0.1);
  background: #e9ebef;
}

.window-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7bdc8;
}

.window-bar > span:first-child {
  background: var(--home-coral);
}

.window-bar > span:nth-child(2) {
  background: #e8b949;
}

.window-bar > span:nth-child(3) {
  background: #6596ff;
}

.window-bar strong {
  overflow: hidden;
  color: #69707c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-window img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  object-position: top center;
}

.product-window-main img {
  height: calc(100% - 38px);
  min-height: 510px;
  aspect-ratio: auto;
}

.product-meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(8, 11, 18, 0.84);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.product-meta span {
  color: #c9d1dd;
  font-size: 0.7rem;
}

.product-meta strong {
  font-size: 0.82rem;
  text-align: right;
}

.delivery {
  padding: 116px 0;
  background: #11141b;
}

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
}

.delivery-intro {
  position: sticky;
  top: 118px;
  align-self: start;
}

.delivery-intro h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.delivery-intro > p:last-child {
  max-width: 430px;
  color: var(--home-muted);
}

.delivery-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery-steps li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery-steps li > span,
.delivery-steps li > strong {
  color: var(--home-coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
}

.delivery-steps h3 {
  font-size: 1.45rem;
}

.delivery-steps p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.clients {
  padding: 108px 0 116px;
  background: #e8ebf0;
  color: var(--home-ink);
}

.clients-inner {
  gap: 50px;
}

.clients-statement {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 48px;
  align-items: start;
}

.clients .eyebrow {
  color: #2551ed;
}

.clients-statement h2 {
  max-width: 870px;
  font-size: clamp(2.3rem, 4.3vw, 4.4rem);
}

.home-page .client-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 0;
  background: rgba(17, 20, 27, 0.16);
}

.home-page .client-card {
  align-content: center;
  gap: 13px;
  min-height: 224px;
  padding: 28px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .client-card.client-wide {
  grid-column: auto;
}

.home-page .client-card img {
  width: min(100%, 190px);
  height: 72px;
  object-fit: contain;
}

.home-page .client-card.compact-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.home-page .client-card.wide-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.home-page .client-card span {
  color: #626a77;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  text-align: center;
  text-transform: uppercase;
}

.home-page .client-card strong {
  color: #151922;
  font-size: 0.88rem;
}

.home-page .client-card p {
  max-width: 250px;
  margin: 0;
  color: #626a77;
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.home-page .client-card.park-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.home-page .client-card.ark-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.home-page .client-card.lppi-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.home-page .client-card.mbpi-logo img {
  width: min(100%, 190px);
  height: 72px;
}

.about-arttinov {
  padding: 112px 0;
  background: #111722;
  color: #f5f7fb;
}

.about-arttinov-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.about-arttinov .eyebrow {
  color: var(--home-cyan);
}

.about-arttinov h2 {
  max-width: 700px;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
}

.about-arttinov-copy {
  display: grid;
  gap: 22px;
  color: #c7ceda;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-arttinov-copy p {
  margin: 0;
}

.about-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.about-service-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 20px;
  background: #111722;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 780;
}

.about-service-links a:hover {
  background: #192231;
  color: var(--home-cyan);
}

.about-more {
  width: max-content;
  margin-top: 4px;
  color: var(--home-lime);
}

.contact {
  padding: 42px 0;
  background: var(--home-blue);
  color: #ffffff;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 46px;
  padding: 68px 0 32px;
}

.contact .eyebrow {
  color: var(--home-lime);
}

.contact-copy h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5.2vw, 5.3rem);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 18px;
}

.home-page .contact-primary {
  justify-content: space-between;
  min-height: 58px;
  background: #ffffff;
  color: var(--home-ink);
}

.contact-email {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 700;
}

.contact-details {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #e6eaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  text-transform: uppercase;
}

.home-page .site-footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 96px;
  padding: 26px 0;
  color: #969eac;
  font-size: 0.72rem;
}

.home-page .site-footer img {
  width: 142px;
}

.home-page .site-footer p {
  text-align: center;
}

.home-page.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0, 1);
}

.home-page.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .home-page .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .home-page .site-nav {
    position: fixed;
    top: 94px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(8, 11, 18, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  }

  .home-page .site-nav.is-open {
    display: flex;
  }

  .home-page .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-page .site-nav a:last-child {
    border-bottom: 0;
  }

  .home-page .nav-toggle {
    display: block;
    grid-column: 3;
  }

  .home-page .header-cta {
    display: none;
  }

  .signal-inner,
  .split-heading,
  .delivery-layout,
  .clients-statement,
  .about-arttinov-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .signal-inner {
    gap: 28px;
    padding: 42px 0;
  }

  .capability-card,
  .capability-wide,
  .capability-vt {
    grid-column: span 6;
    grid-template-columns: 1fr;
  }

  .capability-wide .capability-media,
  .capability-vt .capability-media {
    min-height: 270px;
  }

  .capability-wide .capability-copy,
  .capability-vt .capability-copy {
    min-height: 270px;
  }

  .delivery-intro {
    position: static;
  }

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

  .home-page .client-card.client-wide {
    grid-column: span 2;
  }

  .product-window-main img {
    min-height: 430px;
  }

  .about-arttinov {
    padding: 84px 0;
  }
}

@media (max-width: 680px) {
  .home-page .section-wrap,
  .home-page .hero-content,
  .home-page .site-footer {
    width: min(100% - 32px, 1240px);
  }

  .home-page .site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .home-page .brand {
    width: 132px;
  }

  .home-page .hero {
    min-height: 88svh;
    padding: 116px 0 24px;
  }

  .home-page .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.62)),
      linear-gradient(180deg, rgba(8, 11, 18, 0.16) 48%, rgba(8, 11, 18, 0.96) 100%);
  }

  .home-page .hero::after,
  .hero-scroll {
    display: none;
  }

  .home-page .hero-media img {
    object-position: 64% center;
  }

  .home-page .hero-content {
    padding-left: 0;
  }

  .home-page h1 {
    font-size: clamp(3rem, 16.5vw, 4.2rem);
    line-height: 0.84;
  }

  .home-page .hero-lead {
    max-width: 92%;
    margin-top: 22px;
    font-size: 1rem;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .about-service-links {
    grid-template-columns: 1fr;
  }

  .home-page .button {
    min-width: 0;
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .hero-console {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-console div {
    grid-template-columns: 88px 1fr;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-console div:last-child {
    border-bottom: 0;
  }

  .signal-inner dl {
    grid-template-columns: 1fr;
  }

  .signal-inner dl div {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 20, 27, 0.14);
  }

  .signal-inner dd {
    margin: 0;
  }

  .capabilities,
  .product-showcase,
  .delivery,
  .clients {
    padding: 78px 0;
  }

  .home-page h2,
  .delivery-intro h2,
  .clients-statement h2,
  .contact-copy h2 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .split-heading {
    gap: 24px;
  }

  .capability-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .capability-card,
  .capability-wide,
  .capability-vt {
    grid-column: 1;
  }

  .capability-media,
  .capability-wide .capability-media,
  .capability-vt .capability-media {
    min-height: 228px;
  }

  .capability-copy,
  .capability-wide .capability-copy,
  .capability-vt .capability-copy {
    min-height: 240px;
    padding: 21px;
  }

  .product-showcase .split-heading > .section-link {
    justify-self: start;
  }

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

  .product-window-main {
    grid-row: auto;
  }

  .product-window-main img,
  .product-window img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .product-meta strong {
    text-align: left;
  }

  .delivery-layout {
    gap: 44px;
  }

  .delivery-steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .delivery-steps li > strong {
    display: none;
  }

  .home-page .client-grid {
    grid-template-columns: 1fr;
  }

  .home-page .client-card {
    min-height: 150px;
  }

  .home-page .client-card.client-wide {
    grid-column: 1;
  }

  .contact {
    padding: 20px 0;
  }

  .contact-shell {
    gap: 38px;
    padding: 54px 0 24px;
  }

  .contact-details {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-page .site-footer {
    flex-direction: column;
    padding: 32px 0;
  }

  .home-page .site-footer p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.procurement-card img {
  width: 100%;
  height: 156px;
  padding: 28px;
  background: #eef3f7;
  object-fit: contain;
}

.procurement-card div {
  padding: 22px;
}

.procurement-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2864d7;
  font-size: 0.76rem;
  font-weight: 850;
}

.procurement-card p {
  color: var(--ink-soft);
}

.document-page {
  min-height: 100vh;
  background: #edf2f7;
  color: var(--ink);
}

.document-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(22, 35, 52, 0.12);
  background: rgba(7, 17, 31, 0.95);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.document-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-header-actions .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef5fb;
}

.document-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto 48px;
}

.document-panel,
.document-preview-shell {
  border: 1px solid rgba(22, 35, 52, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(22, 35, 52, 0.08);
}

.document-panel {
  padding: clamp(22px, 3vw, 42px);
}

.document-panel .section-heading h1 {
  font-size: 2rem;
  line-height: 1.08;
}

.document-form {
  display: grid;
  gap: 18px;
}

.document-form h2 {
  margin-top: 6px;
  font-size: 1.06rem;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

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

.document-form label,
.item-row label {
  display: grid;
  gap: 7px;
  color: #415167;
  font-size: 0.82rem;
  font-weight: 800;
}

.document-form input,
.document-form select,
.document-form textarea,
.item-row input,
.item-row select,
.item-row textarea,
.pin-box input {
  width: 100%;
  border: 1px solid rgba(22, 35, 52, 0.16);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.document-items {
  display: grid;
  gap: 12px;
}

.document-database {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 35, 52, 0.12);
}

.document-database h2 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.document-database p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}

.document-records {
  display: grid;
  gap: 10px;
}

.document-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(22, 35, 52, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.document-record strong,
.document-record span,
.document-record small {
  display: block;
}

.document-record strong {
  color: var(--ink);
}

.document-record span {
  color: #415167;
  font-size: 0.86rem;
  font-weight: 800;
}

.document-record small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.document-record > div:last-child {
  display: flex;
  gap: 8px;
}

.document-record button {
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  background: #eef4ff;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 8px 10px;
}

.document-record button:last-child {
  border-color: rgba(190, 18, 60, 0.22);
  background: #fff1f2;
  color: #9f1239;
}

.record-empty {
  padding: 12px;
  border: 1px dashed rgba(22, 35, 52, 0.18);
  border-radius: 8px;
  background: #f8fafc;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 80px 130px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(22, 35, 52, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.item-row button {
  min-height: 43px;
  border: 1px solid rgba(190, 18, 60, 0.22);
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  cursor: pointer;
  font-weight: 850;
}

.document-preview-shell {
  padding: clamp(18px, 3vw, 38px);
  overflow: auto;
}

.paper {
  width: min(100%, 860px);
  min-height: 1218px;
  margin: 0 auto;
  padding: 44px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 55px rgba(22, 35, 52, 0.12);
  display: flex;
  flex-direction: column;
}

.paper-main {
  display: block;
}

.paper-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--doc-blue);
}

.paper-head img {
  width: 180px;
}

.paper-head div {
  display: grid;
  gap: 5px;
  color: #536477;
  text-align: right;
}

.paper-head strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.paper-title {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  padding: 28px 0;
}

.paper-title p,
.paper-client p {
  margin: 0 0 6px;
  color: var(--doc-violet);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.paper-title h2 {
  font-size: 2rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.paper-title dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.paper-title dl div,
.paper-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(22, 35, 52, 0.12);
}

.paper-title dt {
  color: #64748b;
  font-weight: 800;
}

.paper-title dd {
  margin: 0;
  text-align: right;
}

.paper-client {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.08));
}

.paper-client h3 {
  margin-bottom: 4px;
  font-size: 1.28rem;
}

.paper-client span {
  display: block;
  color: #536477;
}

.paper-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.paper-table th,
.paper-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(22, 35, 52, 0.12);
  text-align: left;
  vertical-align: top;
}

.paper-table th {
  background: linear-gradient(135deg, var(--doc-blue), var(--doc-violet));
  color: #ffffff;
}

.paper-bottom {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  margin-top: 26px;
}

.paper-notes {
  color: #536477;
}

.paper-summary {
  display: grid;
  gap: 8px;
}

.paper-summary .grand-total {
  border-bottom: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--doc-blue), var(--doc-violet));
  color: #ffffff;
  padding: 12px;
}

.paper-sign {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

.paper-sign div {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 220px;
  text-align: center;
}

.paper-sign img {
  width: 240px;
  height: 150px;
  object-fit: contain;
}

.paper-sign small {
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.paper-validity {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.paper-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}

.paper-footer a {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  word-break: break-all;
}

.paper-qr {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #64748b;
}

.paper-qr img {
  width: 72px;
  height: 72px;
}

.paper-qr span {
  font-size: 0.72rem;
  font-weight: 800;
}

.paper-qr strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.pin-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(12, 24, 39, 0.96)),
    url("assets/hero-bg.png") center/cover;
}

.pin-screen[hidden] {
  display: none;
}

.pin-box {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pin-box img {
  width: 170px;
}

.pin-box h1 {
  font-size: 2rem;
}

.pin-box form {
  display: grid;
  gap: 10px;
}

.pin-box small {
  min-height: 18px;
  color: #fca5a5;
  font-weight: 800;
}

.app-cta {
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(109, 93, 252, 0.1)),
    var(--bg-2);
}

.app-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.app-cta-inner p:not(.eyebrow) {
  max-width: 720px;
  color: #bdcddd;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.98);
  }

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

  .site-nav a {
    padding: 14px 10px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

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

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

  .intro,
  .contact-inner,
  .app-cta-inner,
  .document-workspace,
  .paper-title,
  .paper-bottom {
    grid-template-columns: 1fr;
  }

  .item-row {
    grid-template-columns: 1fr 1fr;
  }

  .item-description {
    grid-column: 1 / -1;
  }

  .contact-panel {
    width: min(100%, 480px);
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    min-height: 64px;
  }

  .brand {
    width: 132px;
  }

  .section-wrap,
  .hero-content,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 82vh;
    padding: 108px 0 26px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(1.72rem, 10vw, 2.45rem);
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .client-grid,
  .app-feature-grid,
  .timeline-list,
  .app-project-grid,
  .procurement-grid,
  .process-list,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-metrics div {
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 1.34rem;
  }

  .hero-metrics dd {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .intro,
  .services,
  .process,
  .portfolio,
  .app-overview,
  .app-process,
  .app-portfolio,
  .app-cta,
  .contact {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .service-hero {
    min-height: 82vh;
    padding: 118px 0 48px;
  }

  .service-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .app-feature-grid article,
  .timeline-list article {
    min-height: auto;
  }

  .app-project {
    grid-template-rows: 176px 1fr;
  }

  .app-project img {
    height: 176px;
  }

  .procurement-card {
    grid-template-rows: 148px 1fr;
  }

  .procurement-card img {
    height: 148px;
  }

  .document-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .document-header-actions {
    width: 100%;
  }

  .document-header-actions .button {
    width: auto;
    flex: 1;
  }

  .document-workspace {
    width: min(100% - 20px, 1220px);
  }

  .form-grid.two,
  .form-grid.three,
  .item-row {
    grid-template-columns: 1fr;
  }

  .paper {
    min-height: auto;
    padding: 24px;
  }

  .paper-head {
    grid-template-columns: 1fr;
  }

  .paper-head div {
    text-align: left;
  }

  .paper-title h2 {
    font-size: 1.55rem;
  }

  .paper-table {
    font-size: 0.78rem;
  }

  .paper-table th,
  .paper-table td {
    padding: 9px 6px;
  }

  .clients {
    padding-top: 66px;
    padding-bottom: 64px;
  }

  .clients-inner {
    gap: 24px;
  }

  .client-card {
    min-height: 150px;
  }

  .service-body {
    min-height: auto;
  }

  .portfolio-grid article,
  .portfolio-grid article:nth-child(2n),
  .portfolio-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-grid article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  html,
  body,
  body.document-page {
    width: auto;
    min-width: 0;
    margin: 0;
    background: #ffffff !important;
    color: #162334;
  }

  .pin-screen,
  .document-header,
  .document-panel {
    display: none !important;
  }

  .document-workspace,
  .document-preview-shell {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .paper {
    width: 190mm;
    max-width: 100%;
    min-height: 277mm;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    font-size: 9pt;
    line-height: 1.25;
  }

  .paper-head {
    display: grid;
    grid-template-columns: 42mm 1fr;
    gap: 8mm;
    align-items: start;
    padding-bottom: 5mm;
    border-bottom-width: 1.5pt;
  }

  .paper-head img {
    width: 34mm;
  }

  .paper-head div {
    gap: 1.5mm;
    color: #536477;
    font-size: 7.4pt;
    line-height: 1.2;
    text-align: right;
  }

  .paper-head strong {
    font-size: 11pt;
  }

  .paper-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42mm;
    gap: 7mm;
    padding: 7mm 0 5mm;
  }

  .paper-title p,
  .paper-client p {
    margin-bottom: 2mm;
    font-size: 7pt;
  }

  .paper-title h2 {
    margin: 0;
    font-size: 17pt;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .paper-title dl {
    gap: 2mm;
    font-size: 8pt;
  }

  .paper-title dl div,
  .paper-summary div {
    gap: 5mm;
    padding-bottom: 2mm;
  }

  .paper-client {
    padding: 5mm;
  }

  .paper-client h3 {
    margin-bottom: 1mm;
    font-size: 10.5pt;
  }

  .paper-table {
    margin-top: 6mm;
    font-size: 8pt;
  }

  .paper-table th,
  .paper-table td {
    padding: 2.7mm 2.4mm;
  }

  .paper-bottom {
    display: grid;
    grid-template-columns: 1fr 54mm;
    gap: 8mm;
    margin-top: 6mm;
  }

  .paper-summary {
    gap: 2mm;
  }

  .paper-summary .grand-total {
    padding: 3mm;
  }

  .paper-sign {
    margin-top: 6mm;
  }

  .paper-sign div {
    gap: 2mm;
    width: 48mm;
  }

  .paper-sign img {
    width: 50mm;
    height: 32mm;
  }

  .paper-sign small {
    font-size: 7pt;
  }

  .paper-validity {
    font-size: 7pt;
  }

  .paper-footer {
    gap: 2mm;
    padding-top: 5mm;
  }

  .paper-footer a {
    font-size: 5.7pt;
  }

  .paper-qr img {
    width: 18mm;
    height: 18mm;
  }

  .paper-qr span,
  .paper-qr strong {
    font-size: 6.2pt;
  }

  .paper-head,
  .paper-title,
  .paper-client,
  .paper-bottom,
  .paper-sign {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .paper-table thead {
    display: table-header-group;
  }

  .paper-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
