:root {
  --bg: #f3f3ef;
  --text: #111111;
  --focus: #4f46e5;
  --grid-line: rgba(152, 152, 144, 0.24);
  --grid-dot: rgba(116, 116, 110, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.hero__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero__panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: min(100%, 36rem);
  padding-right: 0;
  margin-left: auto;
  color: #111111;
}

.hero__names,
.hero__contact,
.hero__contact-line {
  margin: 0;
}

.hero__names {
  list-style: none;
  padding: 0;
  width: 100%;
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__contact {
  display: grid;
  gap: 0.35rem;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.hero__contact-line,
.hero__contact-line a,
.hero__contact-line--static {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__social {
  margin-top: 0.65rem;
}

.hero__social a {
  justify-content: flex-start;
}

.hero__contact-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.hero__social-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.hero__contact-line--static {
  color: inherit;
}

.hero__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

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

.hero--show-title .hero__title,
.hero--show-title .hero__panel {
  opacity: 1;
  transform: translateY(0);
}

.hero__panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease 120ms, transform 420ms ease 120ms;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 2.5rem;
    padding: 1.25rem;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .hero__title-wrap {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero__title {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero__panel {
    width: 100%;
    padding-right: 0;
    gap: 2.25rem;
  }

  .hero__names {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
    white-space: normal;
  }

  .hero__contact {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__panel {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
