.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.hero-text {
  flex: 1 1 400px;
  max-width: 560px;
  order: 2;
}

.hero-eyebrow {
  font-family: var(--md-code-font-family, monospace);
  color: #22d3ee;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text p {
  color: var(--md-default-fg-color--light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-solid {
  background-color: #22d3ee !important;
  color: #0a1420 !important;
  border: none !important;
  font-weight: 700;
}

.btn-outline {
  background: transparent !important;
  color: #22d3ee !important;
  border: 2px solid #22d3ee !important;
  font-weight: 700;
}

/* Photo card with offset shadow effect */
.hero-photo-wrap {
  position: relative;
  flex: 0 0 auto;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  background: #0e7490;
  border-radius: 16px;
  z-index: 0;
}

.hero-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #22d3ee;
  display: block;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-photo-wrap {
    order: -1;
  }
}

.contact-hover {
  position: relative;
  display: inline-block;
}

.contact-popup {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.contact-popup p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--md-default-fg-color);
}

.contact-hover:hover .contact-popup {
  opacity: 1;
  visibility: visible;
}

.md-typeset {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.md-header__button.md-icon[for="__search"],
.md-search {
    display: none !important;
}
