/* Carter Industries photo features: editorial photograph + native-HTML copy.
   Tokens come from hero-lux.css (--lx-*). Photographs contain no text; all copy is live HTML. */
.ph { position: relative; isolation: isolate; overflow: hidden; color: var(--lx-ivory, #F5F2EB);
  border-top: 1px solid rgba(198,166,103,.22); border-bottom: 1px solid rgba(198,166,103,.22); }
.ph-navy { background: linear-gradient(180deg, #0D1B2A 0%, #0A1520 100%); }
.ph-teal { background: linear-gradient(135deg, #0D1B2A 0%, #123F48 100%); }
.ph-ivory { background: #FAF7EF; color: var(--lx-navy, #0D1B2A); }
.ph-wrap { max-width: 1360px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--lx-gutter, 24px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ph-grid.ph-flip .ph-fig { order: 2; }

/* Copy */
.ph-label { margin: 0 0 14px; font: 700 12px/1.4 var(--lx-font-sans, system-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--lx-gold-hi, #E4D2A2); }
.ph-ivory .ph-label { color: #7A5F28; }
.ph-title { margin: 0 0 18px; font: 400 clamp(30px, 3.6vw, 48px)/1.1 var(--lx-font-serif, Georgia, serif); color: var(--lx-ivory, #F5F2EB); }
.ph-ivory .ph-title { color: var(--lx-navy, #0D1B2A); }
.ph-title em { font-style: italic; color: var(--lx-gold-hi, #E4D2A2); }
.ph-ivory .ph-title em { color: #7A5F28; }
.ph-text { margin: 0 0 24px; max-width: 540px; font: 400 17px/1.7 var(--lx-font-sans, system-ui); color: rgba(245,242,235,.9); }
.ph-ivory .ph-text { color: rgba(13,27,42,.82); }
.ph-list { list-style: none; margin: 0 0 30px; padding: 0; max-width: 540px; }
.ph-list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid rgba(198,166,103,.32); font: 500 16px/1.5 var(--lx-font-sans, system-ui); }
.ph-list li:last-child { border-bottom: 1px solid rgba(198,166,103,.32); }
.ph-list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--lx-gold, #C6A667); transform: rotate(45deg) translateY(-1px); }
.ph-list-n { counter-reset: phn; }
.ph-list-n li { counter-increment: phn; }
.ph-list-n li::before { content: counter(phn, decimal-leading-zero); width: auto; height: auto; background: none; transform: none; font: 400 22px/1 var(--lx-font-serif, Georgia, serif); color: #7A5F28; min-width: 30px; }
.ph-sub { margin: 0 0 4px; font: 700 11px/1.4 var(--lx-font-sans, system-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--lx-gold-hi, #E4D2A2); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-note { margin: 18px 0 0; max-width: 540px; font-size: 13px; line-height: 1.6; color: rgba(170,181,190,.95); }
.ph-ivory .ph-note { color: rgba(13,27,42,.66); }
.ph-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Photo frames */
.ph-fig { margin: 0; position: relative; }
.ph-fig img { display: block; width: 100%; height: auto; }
.ph-cap { margin: 12px 0 0; font: 600 10px/1.4 var(--lx-font-sans, system-ui); letter-spacing: .16em; text-transform: uppercase; color: rgba(170,181,190,.9); }
.ph-ivory .ph-cap { color: rgba(13,27,42,.55); }

/* Brushed-gunmetal frame with fine champagne-gold keyline */
.ph-frame { padding: 9px; background: linear-gradient(145deg, #6C7683 0%, #2B323B 38%, #8B95A1 62%, #343C46 100%); box-shadow: 0 26px 60px rgba(0,0,0,.35); }
.ph-frame-in { position: relative; overflow: hidden; }
.ph-frame-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(228,210,162,.65); }
/* Subtle navy/teal grade: multiply gradient only, skin tones stay natural */
.ph-grade::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(135deg, rgba(13,27,42,.34) 0%, rgba(18,63,72,.16) 55%, rgba(13,27,42,.28) 100%); }
/* Cinematic light: soft warm highlight and edge vignette */
.ph-cine::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 72% 18%, rgba(255,226,170,.13) 0%, transparent 55%), radial-gradient(ellipse at center, transparent 58%, rgba(9,13,18,.38) 100%); }
/* Arched architectural frame */
.ph-arch { max-width: 440px; margin-left: auto; padding: 10px; border-radius: 999px 999px 6px 6px; position: relative;
  background: linear-gradient(145deg, #6C7683 0%, #2B323B 45%, #8B95A1 70%, #262D35 100%); box-shadow: 0 26px 60px rgba(0,0,0,.35); }
.ph-arch::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1; border: 1px solid rgba(228,210,162,.55); border-radius: 999px 999px 6px 6px; }
.ph-arch img { border-radius: 999px 999px 2px 2px; border: 1px solid rgba(228,210,162,.55); }
.ph-fig-arch .ph-cap { max-width: 440px; margin-left: auto; text-align: right; }
/* Deep-navy frame; gold linework sits in the navy margin, never over the photo */
.ph-navyframe { position: relative; padding: clamp(22px, 3vw, 34px); background: #0D1B2A; }
.ph-navyframe::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(198,166,103,.6); pointer-events: none; }
.ph-navyframe .ph-cap { color: rgba(170,181,190,.9); margin-top: 12px; }

/* Full-bleed editorial split: photo fills its column edge to edge */
.ph-bleed { display: grid; grid-template-columns: 55% 45%; min-height: 540px; }
.ph-bleed.ph-bleed-58 { grid-template-columns: 58% 42%; }
.ph-bleed .ph-fig { position: relative; overflow: hidden; }
.ph-bleed .ph-fig > picture, .ph-bleed .ph-fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-bleed .ph-fig img { object-fit: cover; object-position: var(--ph-pos, 50% 50%); }
.ph-bleed .ph-cap { position: absolute; left: 24px; bottom: 16px; z-index: 3; margin: 0; color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ph-bleed .ph-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 80px); }
.ph-bleed.ph-gold-rule .ph-copy { border-left: 1px solid var(--lx-gold, #C6A667); }
.ph-bleed.ph-fade .ph-fig::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9,13,18,0) 55%, rgba(18,63,72,.9) 100%); }
.ph-bleed.ph-fade .ph-fig::after { content: ""; position: absolute; z-index: 2; top: 28px; bottom: 28px; left: 28px; right: -1px; pointer-events: none; border: 1px solid rgba(228,210,162,.6); border-right: 0; }
.ph-bleed.ph-fade .ph-cap { left: 48px; bottom: 44px; }
.ph-gold { background: linear-gradient(100deg, #EFE0B4 0%, #E4D2A2 45%, #C6A667 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Photo band: text over a photograph, subject kept clear of copy (storefront, regional intro) */
.ph-band { display: grid; grid-template-columns: 55% 45%; min-height: 460px; background: #0A2A33; }
.ph-band .ph-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 6vw, 88px) clamp(28px, 6vw, 96px); }
.ph-band .ph-fig { position: relative; overflow: hidden; }
.ph-band .ph-fig > picture, .ph-band .ph-fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-band .ph-fig img { object-fit: cover; object-position: var(--ph-pos, 50% 50%); }
.ph-band .ph-fig::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #0A2A33 0%, rgba(10,42,51,.55) 35%, rgba(10,42,51,.18) 100%); }
.ph-band .ph-cap { position: absolute; right: 20px; bottom: 14px; z-index: 2; margin: 0; color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
/* Regional hero-style band: photograph spans the section, copy sits over a navy overlay */
.ph-region { position: relative; display: flex; align-items: center; min-height: 600px; background: #0D1B2A; }
.ph-region > .ph-fig, .ph-region > .ph-fig picture, .ph-region > .ph-fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-region > .ph-fig img { object-fit: cover; object-position: var(--ph-pos, 50% 62%); }
.ph-region::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,27,42,.9) 0%, rgba(13,27,42,.66) 44%, rgba(13,27,42,.2) 100%), linear-gradient(180deg, rgba(13,27,42,.35) 0%, rgba(13,27,42,0) 30%, rgba(13,27,42,.5) 100%); }
.ph-region::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--lx-gold, #C6A667), transparent); }
.ph-region .ph-wrap { position: relative; z-index: 3; width: 100%; }
.ph-region .ph-copy { max-width: 620px; }
.ph-region .ph-cap { position: absolute; right: 24px; bottom: 14px; z-index: 3; margin: 0; color: rgba(255,255,255,.78); }

@media (max-width: 900px) {
  .ph-grid, .ph-bleed, .ph-bleed.ph-bleed-58, .ph-band { grid-template-columns: 1fr; min-height: 0; }
  .ph-grid.ph-flip .ph-fig { order: 0; }
  .ph-grid .ph-fig { order: -1; }
  .ph-arch { margin: 0; max-width: 340px; }
  .ph-fig-arch .ph-cap { margin-left: 0; text-align: left; }
  .ph-bleed .ph-fig, .ph-band .ph-fig { order: -1; aspect-ratio: 4 / 3; }
  .ph-bleed.ph-gold-rule .ph-copy { border-left: 0; border-top: 1px solid var(--lx-gold, #C6A667); }
  .ph-bleed.ph-fade .ph-fig::before { background: linear-gradient(180deg, rgba(9,13,18,0) 55%, rgba(18,63,72,.92) 100%); }
  .ph-bleed.ph-fade .ph-fig::after { top: 16px; bottom: 16px; left: 16px; right: 16px; border-right: 1px solid rgba(228,210,162,.6); }
  .ph-bleed.ph-fade .ph-cap { left: 28px; bottom: 26px; }
  .ph-band .ph-fig::before { background: linear-gradient(180deg, rgba(10,42,51,.12) 0%, #0A2A33 100%); }
  .ph-bleed .ph-copy, .ph-band .ph-copy { padding: 40px var(--lx-gutter, 24px) 56px; }
  .ph-region { min-height: 560px; }
  .ph-region::before { background: linear-gradient(180deg, rgba(13,27,42,.72) 0%, rgba(13,27,42,.72) 55%, rgba(13,27,42,.88) 100%); }
}
@media (prefers-reduced-motion: reduce) { .ph .rv { transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   Real-photo media for service cards + service selector (replaces illustrations)
   Photos hold no text; grade, frame and fades are CSS overlays.
   ========================================================================== */
.ph-tag { position: absolute; z-index: 4; right: 16px; bottom: 14px; font: 600 9.5px/1 var(--lx-font-sans, system-ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(245,242,235,.72); text-shadow: 0 1px 6px rgba(9,13,18,.8); pointer-events: none; }

/* Core service cards */
.sx-card-vis--photo { overflow: hidden; background: #0D1B2A; }
.sx-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); display: block; filter: saturate(.9) contrast(1.04) brightness(.95); transition: transform 1.2s var(--lx-ease, ease); }
.sx-card:hover .sx-card-img { transform: scale(1.04); }
.sx-card-vis--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,27,42,0) 55%, rgba(14,23,33,.55) 80%, #0E1721 100%),
    linear-gradient(180deg, rgba(13,27,42,.45) 0%, rgba(13,27,42,0) 30%),
    linear-gradient(135deg, rgba(13,27,42,.34), rgba(18,63,72,.28)); }
.sx-card-vis--photo::after { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(198,166,103,.5); pointer-events: none; }
.sx-card-vis--photo .sx-card-num { z-index: 3; text-shadow: 0 2px 12px rgba(9,13,18,.7); }

/* Service selector (right-hand photo panel, same footprint as the old illustration zone) */
.sx-aud-photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: max(120px, clamp(28px, 16vw, 200px)); overflow: hidden; pointer-events: none; }
.sx-aud-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); display: block; filter: saturate(.9) contrast(1.04) brightness(.95); transition: transform 1s var(--lx-ease, ease); }
.sx-aud:hover .sx-aud-photo img, .sx-aud:focus-visible .sx-aud-photo img { transform: scale(1.05); }
.sx-aud-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #151D26 0%, rgba(21,29,38,.55) 24%, rgba(21,29,38,0) 60%), linear-gradient(135deg, rgba(13,27,42,.3), rgba(18,63,72,.26)); }
.sx-aud-photo::after { content: ""; position: absolute; inset: 12px 12px 12px 0; z-index: 2; border: 1px solid rgba(198,166,103,.42); border-left: 0; }
.sx-aud-photo .ph-tag { right: 20px; bottom: 18px; }
@media (max-width: 760px) {
  .sx-aud-photo { top: auto; left: 0; width: auto; height: 150px; }
  .sx-aud-photo::before { background: linear-gradient(180deg, #151D26 0%, rgba(21,29,38,.5) 30%, rgba(21,29,38,0) 65%), linear-gradient(135deg, rgba(13,27,42,.3), rgba(18,63,72,.26)); }
  .sx-aud-photo::after { inset: 0 12px 12px 12px; border: 1px solid rgba(198,166,103,.42); border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .sx-card-img, .sx-aud-photo img { transition: none !important; } .sx-card:hover .sx-card-img, .sx-aud:hover .sx-aud-photo img { transform: none; } }
