/* Pure Melon brand layer (generated by apply_fixes.py) — image lockups, no wordmark webfont. */

/* Kill the grok.me img outline globally (also neutralized in styles-*.css). */
img, svg, picture, img[class], a img {
  outline: none !important;
}

.pm-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.pm-lockup {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* grok.me base CSS: img { outline: 1px solid #f3ece31a; outline-offset: -1px }
   That faint paper-tinted outline shows up as a box around transparent lockups. */
.pm-lockup,
.pm-brand img,
.pm-brand-mark {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Header: horizontal lockup on mobile and desktop.
   Mobile stays at 1.75rem in the tight h-16 bar.
   Desktop fills the site's md:h-[4.5rem] bar so PURE MELON stays legible. */
header .pm-lockup--stacked { display: none; }
header .pm-lockup--horizontal { display: block; height: 1.75rem; }
@media (min-width: 768px) {
  header .pm-lockup--stacked { display: none; }
  header .pm-lockup--horizontal { display: block; height: 4rem; }
}

/* Footer, hero, contact, 404, government: stacked. */
footer .pm-lockup--horizontal,
.pm-brand--hero .pm-lockup--horizontal,
.pm-brand--stacked .pm-lockup--horizontal {
  display: none;
}
footer .pm-lockup--stacked { height: 7.25rem; }
.pm-brand--hero .pm-lockup--stacked { height: 10rem; }
@media (min-width: 768px) {
  .pm-brand--hero .pm-lockup--stacked { height: 14rem; }
}

/* Accent text on dark: lime (green #507033 fails AA for small text on ink). */
.text-melon { color: #E7EFBD !important; }
.hover\:text-melon:hover { color: #E7EFBD !important; }
.fill-melon { fill: #507033; }

.bg-melon {
  background-color: #507033 !important;
  color: #E7EFBD !important;
}
.bg-melon:hover,
.hover\:bg-melon:hover {
  background-color: #507033 !important;
}
.bg-paper .text-melon,
.bg-paper .hover\:text-melon:hover {
  color: #507033 !important;
}

.gsa-link { display: inline-block; line-height: 0; }
.gsa-link img, .gsa-img {
  display: block;
  width: 160px;
  height: auto;
  transition: opacity .15s;
}
.gsa-link:hover img, .gsa-link:focus-visible img { opacity: .8; }

.pm-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pm-testimonials blockquote {
  border: 1px solid var(--color-line, #2c2722);
  background: var(--color-surface, #151210);
}

/* Home hero photo: pin the cropped Beyond 2026 set to the top of the frame. */
img[src="/images/hero-beyond-2026-lv2.jpg"],
img[src="/images/hero-beyond-2026-lv2.webp"] {
  object-position: center top;
}
/* Home gallery: featured photo is the big first tile (batch 2). */
.pm-gallery-feature { grid-column: span 2 / span 2; }
/* Services wide photo: whole production set, never cropped (aspect = crop box). */
.pm-services-wide { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 620; object-fit: cover; }
@media (min-width: 768px) {
  .pm-gallery-feature { grid-row: span 2 / span 2; }
  .pm-gallery-feature img { position: absolute; inset: 0; height: 100%; }
}
/* Markdown post bodies (From Our Perspective posts). */
.pm-post-body > * + * { margin-top: 1.5rem; }
.pm-post-body p, .pm-post-body li { font-size: 1rem; line-height: 1.625; color: var(--color-muted); }
.pm-post-body h2 { margin-top: 2.75rem; font-family: var(--font-display); font-style: italic; font-size: 1.875rem; line-height: 1.2; color: var(--color-paper); }
.pm-post-body h3 { margin-top: 2rem; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; color: var(--color-paper); }
.pm-post-body ul { list-style: disc; padding-left: 1.25rem; }
.pm-post-body ol { list-style: decimal; padding-left: 1.25rem; }
.pm-post-body li + li { margin-top: 0.5rem; }
.pm-post-body strong { color: var(--color-paper); font-weight: 600; }
.pm-post-body em { font-style: italic; }
.pm-post-body a { color: var(--color-paper); text-decoration: underline; }
/* Mobile menu: solid full-height panel below the top bar. */
/* fixed (not sticky) while open: the app's body scroll lock makes <body> the sticky container, which hid the bar when the page was scrolled */
header:has(.pm-mobile-menu) { position: fixed; top: 0; left: 0; right: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background-color: #1a1a1a; }
.pm-mobile-menu { position: fixed; top: calc(4rem + 1px); left: 0; right: 0; bottom: 0; height: calc(100vh - 4rem - 1px); height: calc(100dvh - 4rem - 1px); background-color: #1a1a1a; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (min-width: 768px) { .pm-mobile-menu { top: calc(4.5rem + 1px); height: calc(100vh - 4.5rem - 1px); height: calc(100dvh - 4.5rem - 1px); } } /* bar is md:h-[4.5rem] */
.pm-mobile-menu > nav { height: auto; min-height: 100%; padding-bottom: 3rem; }
/* Contact: thin brand-red divider between the form block and the footer info (replaces the wide photo). */
.pm-contact-divider { display: block; height: 2px; margin: 0; border: 0; background-color: #D41E48; }
body:has(.pm-contact-divider) footer.border-t { border-top-color: transparent; }
/* Case galleries (360 Production, Delta LEAD): even 4:3 tiles; the LEAD panorama spans the row. */
img[src^="/images/work/"] { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
img[src="/images/work/lead-2020-pano.jpg"] { grid-column: 1 / -1; aspect-ratio: auto; }
/* Home: foundational principles band, before the services strip. */
.pm-principles { background: var(--color-ink); }
.pm-principles-intro { padding-top: 4.5rem; padding-bottom: 2.5rem; }
.pm-principles-card h3 { color: var(--color-paper); }
.pm-principles-card h3::before { content: ""; display: block; width: 2.5rem; height: 2px; margin-bottom: 1.25rem; background: #D41E48; }
@media (min-width: 768px) { .pm-principles-intro { padding-top: 6rem; padding-bottom: 3rem; } }
/* Experience More hero: lighter overlay so the photo reads; still solid ink behind the title. */
section.relative:has(> img[src="/images/experience-room.jpg"]) > div.absolute.inset-0 {
  background-image: linear-gradient(to top, rgb(26 26 26 / 0.94) 0%, rgb(26 26 26 / 0.55) 28%, rgb(26 26 26 / 0.12) 62%, rgb(26 26 26 / 0) 100%);
}
/* Work cards (grid + Delta LEAD feature): keyboard focus mirrors hover. */
main a.group:focus-visible { outline: 2px solid var(--color-melon); outline-offset: 4px; }
main a.group:focus-visible h2 { color: var(--color-melon); }
/* Home 'See our work' band -> /gallery/ (Nov 16). */
.pm-gallery-cta { border-bottom: 1px solid var(--color-line); }
.pm-gallery-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .pm-gallery-cta-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 5rem; padding-bottom: 5rem; } }
.pm-gallery-cta-btn { display: inline-flex; align-items: center; justify-content: center; height: 3rem; padding: 0 2rem; background: #507033; color: #1A1A1A; font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background-color .15s, color .15s; white-space: nowrap; }
.pm-gallery-cta-btn:hover, .pm-gallery-cta-btn:focus-visible { background: var(--color-paper); color: #1A1A1A; }
