@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/inter-v20-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/inter-v20-latin-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/inter-v20-latin-600.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #737373;
  --copy: #555555;
  --line: #e6e6e6;
  --soft: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.page {
  width: min(100% - 48px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand a {
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(70px, 10vw, 145px);
  align-items: center;
  padding: clamp(72px, 10vw, 126px) 0;
}

.contact-panel,
.qm-panel {
  min-width: 0;
}

.name {
  margin: 0 0 38px;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.contact-panel address {
  margin: 0 0 48px;
  color: var(--copy);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
}

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

.contact a {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.label {
  color: var(--muted);
  font-size: 0.9rem;
}

.value {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contact a[href^="mailto:"] .value {
  white-space: nowrap;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.contact a:hover .value,
.contact a:focus-visible .value {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow,
.section-label {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.qm-panel h1 {
  max-width: 570px;
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.055em;
  hyphens: manual;
}

.lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.copy {
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--copy);
  font-size: 0.96rem;
  line-height: 1.72;
}

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

.services li {
  position: relative;
  padding: 13px 0 13px 20px;
  color: #3e3e3e;
  font-size: 0.91rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.services li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1.25em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.cta span {
  transition: transform 160ms ease;
}

.cta:hover span {
  transform: translateX(3px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-development {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.robnet-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.robnet-link img {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.robnet-link:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-main {
  width: min(100%, 820px);
  flex: 1;
  padding: clamp(62px, 9vw, 104px) 0 clamp(76px, 10vw, 120px);
}

.legal-intro {
  margin-bottom: 58px;
}

.legal-intro h1 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.legal-intro p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--copy);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.legal-toc a {
  display: inline-flex;
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-toc a:hover {
  border-color: #b8b8b8;
}

.legal-section {
  padding: 50px 0 12px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  margin-top: 66px;
}

.legal-section h2 {
  margin: 0 0 34px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.legal-section h3 {
  margin: 34px 0 12px;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section li,
.legal-address {
  color: var(--copy);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-address {
  margin: 0;
  font-style: normal;
}

.legal-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-contact li + li {
  margin-top: 4px;
}

.legal-contact a,
.legal-section p a,
.legal-section li a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.rights-list {
  margin: 0;
  padding-left: 20px;
}

.rights-list li + li {
  margin-top: 7px;
}

.update-note {
  margin-top: 38px !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
}

@media (max-width: 920px) {
  .page {
    width: min(100% - 40px, 760px);
  }

  .home-main {
    grid-template-columns: 1fr;
    gap: 76px;
    align-content: center;
    padding: 70px 0 82px;
  }

  .contact-panel,
  .qm-panel {
    max-width: 620px;
  }

  .qm-panel {
    padding-top: 8px;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 34px, 760px);
  }

  .site-header {
    padding-top: 24px;
  }

  .home-main {
    gap: 64px;
    padding: 58px 0 68px;
  }

  .name {
    margin-bottom: 28px;
  }

  .contact-panel address {
    margin-bottom: 36px;
  }

  .contact a {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
  }

  .contact a[href^="mailto:"] {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact a[href^="mailto:"] .value {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(0.76rem, 3.55vw, 0.94rem);
  }

  .qm-panel h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .legal-main {
    padding-top: 54px;
  }

  .legal-intro {
    margin-bottom: 48px;
  }

  .legal-section {
    padding-top: 42px;
  }

  .legal-section + .legal-section {
    margin-top: 54px;
  }
}

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

  .cta span {
    transition: none;
  }
}
