/* Production form in the redesign's contact section. */
#contact-form {
  display: block;
  min-width: 0;
}
#contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
#contact-form .field:not(.contact-preference) { padding-top: 0; }
#contact-form .field-full { grid-column: 1 / -1; }
#contact-form .field label {
  position: static;
  display: block;
  color: var(--ink);
  font-size: 14px;
  pointer-events: auto;
}
#contact-form .field :is(input, select, textarea) {
  color: var(--ink);
  min-height: 44px;
  font-size: 16px;
}
#contact-form .field :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--orange);
}
#contact-form .field select { appearance: auto; }
#contact-form .field input::placeholder,
#contact-form .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
#contact-form .optional { color: var(--ink-2); margin-left: 5px; }
#contact-form .contact-preference { border: 0; margin: 0; padding: 0; min-width: 0; }
#contact-form .contact-preference legend { padding: 0; margin-bottom: 8px; }
#contact-form .preference-options { display: flex; flex-wrap: wrap; gap: 8px; }
#contact-form .preference-option { position: relative; cursor: pointer; }
#contact-form .preference-option input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
#contact-form .preference-option span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
}
#contact-form .preference-option input:checked + span { background: var(--orange); color: var(--dark-ink); border-color: var(--orange); }
#contact-form .preference-option input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
#contact-form .preference-note { color: var(--ink-2); font-size: 14px; margin: 8px 0; }
#contact-form .privacy-check { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; }
#contact-form .privacy-check input { flex: none; width: 18px; height: 18px; accent-color: var(--orange); margin-top: 4px; }
#contact-form .privacy-check a, .redesign-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
#contact-form .honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-form .send[hidden] { display: none; }
#contact-form .send:disabled { opacity: .65; cursor: wait; }
#contact-form .form-status { margin: 12px 0 0; color: var(--ink-2); white-space: pre-line; }
#contact-form .form-status:is(.success, .error) { color: var(--orange); }

.ep-cover-photo::before, .ep-cover-photo::after { content: none; }
.ep-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.ep-cover-photo .play { z-index: 1; }
.redesign-legal-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .footer-legal { color: var(--ink-2); margin-top: 14px; }
body.loading .cookie-banner { visibility: hidden; }

@media (max-width: 820px) {
  #contact-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the page usable if the graphics dependencies do not initialize. */
body:not(.loading) .loader { display: none; }
body:not(.hero-motion) { overflow-x: clip; }
body:not(.hero-motion) :is(a, button) { cursor: pointer; }
body:not(.hero-motion) .hero { height: auto; }
body:not(.hero-motion) .hero-stick {
  position: relative;
  background: linear-gradient(0deg, #0f1113e8, transparent 75%), url("../assets/gas-heat-port.webp") center / cover;
}
body:not(.hero-motion) :is(#gl, #roll, #vf, #statement) { display: none; }

.reel-fallback { display: none; }
body:is(:not(.hero-motion), .reel-unavailable) #works .reel-fallback {
  display: block;
  position: absolute;
  inset: 0;
  perspective: var(--reel-perspective, 800px);
  overflow: hidden;
  pointer-events: none;
}
.reel-fallback .reel-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--reel-width, 52vw);
  height: var(--reel-height, 37vw);
  overflow: hidden;
  background: #181715;
  opacity: 0;
}
.reel-fallback .reel-frame:first-child {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.reel-fallback .reel-frame::before,
.reel-fallback .reel-frame::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 7.5%;
  background: radial-gradient(ellipse, #0f1113 34%, transparent 38%) 0 center / 25px 100% repeat-x;
}
.reel-fallback .reel-frame::before { top: 0; }
.reel-fallback .reel-frame::after { bottom: 0; }
.reel-fallback .reel-frame img {
  position: absolute;
  inset: 7.5% 0;
  width: 100%;
  height: 85%;
  object-fit: cover;
}
body:is(:not(.hero-motion), .reel-unavailable) #works .w-bottom {
  text-shadow: 0 2px 12px #0f1113;
}

/* Keep the descriptive service headings within their columns. */
.svc h3 { font-size: clamp(36px, 6vw, 112px); overflow-wrap: anywhere; }
