:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eeeeee;
  background: #000000;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --accent: #0a69de;
  --edge-horizontal: linear-gradient(90deg, transparent 3%, #343434 24%, #343434 76%, transparent 97%);
  --edge-vertical: linear-gradient(180deg, transparent 3%, #343434 24%, #343434 76%, transparent 97%);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main, footer { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
main { flex: 1; padding-top: 64px; }
h1, p { margin: 0; }
h2 { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.4; font-weight: 550; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #075f9e; color: white; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.identity { margin-bottom: 16px; text-align: center; }
.company-logo { display: block; width: min(320px, 100%); height: auto; margin: auto; }
.company-overview { max-width: 640px; margin-inline: auto; padding-bottom: 38px; text-align: center; }
.company-overview p { max-width: 640px; margin-inline: auto; font-size: 1.125rem; font-weight: 550; line-height: 1.5; }
.company-tagline { margin: 14px 0 0; font-size: .9375rem; font-weight: 400; line-height: 1.8; color: #b3b3b3; }
.intro-line { display: inline; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-card {
  padding: 28px;
  background:
    var(--edge-horizontal) top / 100% 1px no-repeat,
    var(--edge-horizontal) bottom / 100% 1px no-repeat,
    var(--edge-vertical) left / 1px 100% no-repeat,
    var(--edge-vertical) right / 1px 100% no-repeat;
}
.work-card h2 { line-height: normal; margin: 0 0 14px; color: #efefef; font-size: 1.125rem; font-weight: 550; }
.work-card p { color: #aaaaaa; font-size: .875rem; line-height: 1.8; }
.work-details { position: relative; list-style: none; padding: 28px 0 0; margin: 30px 0 0; display: grid; gap: 10px; }
.work-details::before { content: ''; position: absolute; top: 0; left: -28px; right: -28px; height: 1px; background: var(--edge-horizontal); }
.work-details li { position: relative; padding-left: 14px; color: #999999; font-size: .8125rem; line-height: 1.6; }
.work-details li::before { content: ''; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

.business-section { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 36px 0 16px; padding: 30px 0; text-align: center; }
.business-section p { max-width: 520px; font-size: .875rem; line-height: 1.8; color: #aaaaaa; }
.business-section .intro-line { display: block; text-wrap: balance; }
.contact-button {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.125rem;
  white-space: nowrap;
  color: #ffffff;
  background: linear-gradient(90deg, transparent 3%, var(--accent) 24%, var(--accent) 76%, transparent 97%) bottom / 100% 1px no-repeat;
}

footer { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; gap: 6px; padding: 32px 0 max(28px, env(safe-area-inset-bottom)); }
footer p { color: #999999; font-size: .75rem; line-height: 1.7; }
footer .copyright { color: #777777; font-size: .6875rem; }
.error-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-block: 40px; text-align: center; }
.error-page h1 { font-size: 1.5rem; font-weight: 500; }
.error-page p { color: #aaaaaa; }

@media (max-width: 600px) {
  main, footer { width: calc(100% - 40px); }
  main { padding-top: 40px; }
  .identity { margin-bottom: 12px; }
  .company-overview { padding-bottom: 28px; }
  .work-grid { grid-template-columns: 1fr; gap: 12px; }
  .work-card { padding: 24px; }
  .work-details::before { left: -24px; right: -24px; }
  .business-section { margin-top: 28px; }
}

@media (min-width: 480px) {
  .intro-line { display: block; }
}
