/* High-resolution stills and a restrained red action hierarchy for Ignition. */
.ignition {
  --action: #d62f26;
  --action-hover: #b9221b;
}

.ignition .button {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

.ignition .button:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
  box-shadow: 0 8px 30px #d62f2630;
}

.ignition .button.secondary {
  background: transparent;
  border-color: var(--action);
  color: #ff776d;
}

.ignition .button.secondary:hover {
  background: var(--action);
  color: #fff;
}

.ignition .nav-contact,
.ignition .mobile-menu-panel a[href="#contact"] {
  background: var(--action);
  border: 1px solid var(--action);
  color: #fff;
  padding: 11px 16px;
}

.ignition .nav-contact:hover,
.ignition .mobile-menu-panel a[href="#contact"]:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.ignition .preview-indicator {
  border-color: #ff776d;
  background: #9b1711c9;
}

/* Direct email stays visible without opening the project brief or mobile menu. */
.nav-email,
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.nav-email > span:first-child,
.footer-email > span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.nav-email:hover,
.footer-email:hover {
  color: var(--accent);
}

.nav-email {
  margin-right: auto;
}

.site-header .nav-links {
  gap: 24px;
}

.footer-links {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

@media (min-width: 701px) and (max-width: 1200px) {
  .site-header .nav-links .desktop-link { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 124px; }
  .site-header .nav {
    height: auto;
    min-height: 108px;
    flex-wrap: wrap;
    gap: 0 18px;
    padding-block: 12px 4px;
  }
  .nav-email {
    order: 3;
    flex-basis: 100%;
    min-height: 40px;
    font-size: 12px;
  }
  .site-header .mobile-menu { margin-left: auto; }
  .footer-email { font-size: 13px; }
}

/* Native lazy loading keeps this large image out of the initial page payload. */
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid #36201e;
  background: #0c0b0b;
}

.contact-art {
  position: absolute;
  inset: 0 0 0 32%;
  z-index: -2;
  overflow: hidden;
}

.contact-art img {
  object-position: 50% 60% !important;
  animation: contact-drift 24s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.contact-panel.is-in-view .contact-art img {
  animation-play-state: running;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #0c0b0b 4%, #0c0b0bed 30%, #0c0b0b80 62%, #0c0b0b28),
              linear-gradient(0deg, #0c0b0b99, transparent 60%);
}

.contact-copy {
  max-width: 670px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(14px, 1.5vw, 18px);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-panel h2 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: .98;
}

.contact-panel p {
  color: #d7d2ce;
  max-width: 370px;
}

.contact-panel > .button {
  position: relative;
  z-index: 1;
}

@keyframes contact-drift {
  from { transform: scale(1.015) translateX(.3%); }
  to { transform: scale(1.065) translateX(-.6%); }
}

@media (max-width: 700px) {
  .contact-panel {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 28px 22px;
  }
  .contact-art { inset: 0; }
  .contact-art img { object-position: 58% 85% !important; }
  .contact-panel::after {
    background: linear-gradient(180deg, #0c0b0bf0 0%, #0c0b0baa 44%, #0c0b0b30 68%, #0c0b0b99);
  }
  .contact-panel h2 { font-size: clamp(43px, 10vw, 66px); }
  .contact-panel > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-art img { animation: none; }
}
