:root {
  --mb-green: #b3fa6c;
  --text: #333333;
  --page-padding-x: clamp(1.5rem, 6vw, 6rem);
  --corner-size: clamp(7rem, 12vw, 10rem);
  --small-triangle-width: 10px;
  --small-triangle-height: 19px;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-width: 760px;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

body.terminal-open {
  overflow: hidden;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(18rem, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding-inline: var(--page-padding-x);
}

.corner {
  position: absolute;
  z-index: -1;
  width: var(--corner-size);
  height: var(--corner-size);
  background: var(--mb-green);
  pointer-events: none;
}

.corner--top-right {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner--bottom-left {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.header {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(2.5rem, 6vh, 5rem);
  padding-right: clamp(2.5rem, 7vw, 7rem);
}

.logo {
  display: block;
  width: 600px;
  height: 164px;
}

.intro {
  align-self: center;
  justify-self: center;
  width: min(100%, 62rem);
  padding-block: clamp(5rem, 12vh, 10rem);
  text-align: center;
}

.intro-copy {
  display: inline-block;
}

.intro h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.services-line {
  position: relative;
  margin-top: 1.1rem;
}

.services-line::before,
.contact p:first-child::before {
  content: "";
  position: absolute;
  width: var(--small-triangle-width);
  height: var(--small-triangle-height);
  background: var(--mb-green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.services-line::before {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.intro p {
  margin: 0;
  color: #626262;
  font-size: 20px;
  line-height: 1.45;
}

.contact {
  padding-bottom: clamp(7rem, 14vh, 10rem);
  padding-left: clamp(0rem, 7vw, 7rem);
  font-style: normal;
  font-size: 16px;
  line-height: 1.65;
}

.contact p {
  margin: 0;
}

.contact p:first-child {
  position: relative;
}

.contact p:first-child::before {
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
}

.contact a {
  color: inherit;
  text-decoration-color: var(--mb-green);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.22em;
}

.contact a:hover,
.contact a:focus-visible {
  color: #555555;
}

.contact a:focus-visible {
  outline: 2px solid var(--mb-green);
  outline-offset: 4px;
}

.terminal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.36);
}

.terminal-window {
  width: 520px;
  border: 2px solid var(--mb-green);
  background: #10150d;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  color: var(--mb-green);
  font-family: Consolas, "Courier New", monospace;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding-left: 12px;
  border-bottom: 1px solid var(--mb-green);
  font-size: 14px;
}

.terminal-close {
  align-self: stretch;
  width: 42px;
  border: 0;
  border-left: 1px solid var(--mb-green);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.terminal-close:hover,
.terminal-close:focus-visible {
  background: var(--mb-green);
  color: #10150d;
}

.terminal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.terminal-output {
  min-height: 190px;
  margin: 0;
  padding: 24px;
  font: inherit;
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.terminal-spinner {
  display: inline-block;
  width: 1ch;
}

@media (max-width: 700px) {
  :root {
    --corner-size: 6.25rem;
  }

  .header {
    padding-top: 2.25rem;
    padding-right: 2rem;
  }

  .intro {
    padding-block: 5.5rem;
  }

  .contact {
    padding-left: 0;
    padding-bottom: 7rem;
  }
}

@media print {
  .page {
    min-height: 100vh;
  }

  .terminal-backdrop {
    display: none;
  }
}
