.hero {
  padding-top: 64px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
}

.hero-content {
  max-width: 760px;
}

.actions {
  margin: 64px 0 0;
}

.hero .eyebrow {
  font-size: 2.1rem;
}

.lead + p,
.hero-content p + p {
  margin-top: 18px;
  max-width: 690px;
  color: var(--text);
  font-size: 1.05rem;
}

.hero .actions {
  margin: 32px 0 32px;
}

.hero-aside {
  align-self: center;
}

.logo-plate {
  display: grid;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  place-items: center;
}

.logo-plate img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.focus-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.focus-list li {
  min-height: 100px;
  padding: 16px 20px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: rgba(74, 74, 74, 0.62);
  color: var(--text-strong);
  font-weight: 600;
}

.section-heading {
  margin-bottom: 34px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(74, 74, 74, 0.74);
}

.service-card {
  padding: 24px;
}

.service-card ul,
.project-card ul {
  display: grid;
  gap: 8px;
}

.service-card li,
.project-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

.service-card li::before,
.project-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.service-card h3 {
  margin-bottom: 18px;
}

.service-card p {
  margin-bottom: 12px;
}

.service-card a {
  margin-top: 24px;
}

.profile-section .content {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 40px;
}

.profile-copy p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.08rem;
}

.profile-facts {
  display: grid;
  gap: 14px;
}

.profile-facts div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(64, 64, 64, 0.84);
}

.profile-facts strong {
  display: block;
  color: var(--brand);
  font-size: 3rem;
  line-height: 1;
}

.profile-facts span {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-weight: 600;
}

.profile-section .note {
  margin-top: 0;
}

.profile-section .actions {
  margin-top: 14px;
}

.stack-area {
  grid-column: 1 / -1;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.tag-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tag-groups div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(74, 74, 74, 0.62);
}

.tag-groups p {
  margin-top: 10px;
  color: var(--text);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.project-card p,
.project-card ul {
  margin-top: 14px;
}

.stack {
  margin-top: auto !important;
  padding-top: 20px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-section {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: 100px 0 0;
}

.legal-divider {
  display: block;
  border-top: 1px solid var(--line);
  height: 0;
}

.legal-block {
  max-width: 880px;
  color: var(--text);
  font-size: 0.96rem;
  padding-top: 48px;
  padding-bottom: 32px;
}

.legal-block > * {
  opacity: 0.6;
}

.legal-block h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.legal-block h3 {
  margin-top: 26px;
  font-size: 1rem;
}

.legal-block p + p,
.legal-block h3 + p {
  margin-top: 12px;
}

.legal-block a {
  color: var(--brand);
  text-decoration: none;
}

.legal-block.exali a {
  opacity: 0.75;
}

.contact-reveal {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
}

.legal-block a:hover,
.contact-reveal:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero,
  .profile-section .content {
    grid-template-columns: 1fr;
  }

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

  .profile-facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .focus-list {
    margin: 0px 0 60px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .legal-section {
    width: min(100% - 28px, var(--page-width));
  }

  .focus-list {
    grid-template-columns: 1fr 1fr;
  }

  .profile-facts,
  .tag-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .focus-list,
  .profile-facts,
  .tag-groups {
    grid-template-columns: 1fr;
  }
}
