/* ============================================================================
   EFCG luxe layer — background stack + photography system
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. BACKGROUND STACK
   --------------------------------------------------------------------------- */

#efcg-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--navy-950);
  contain: strict;
}
#efcg-bg canvas { display: block; width: 100%; height: 100%; }

.bg-wash,
.bg-grain,
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-wash {
  background:
    radial-gradient(70% 55% at 78% 18%, rgba(43,111,224,.13), transparent 62%),
    radial-gradient(60% 50% at 12% 88%, rgba(212,175,55,.09), transparent 64%);
  animation: bg-drift 34s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.09); }
}

.bg-grain {
  opacity: .30;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.bg-vignette {
  background: radial-gradient(120% 95% at 50% 42%, transparent 38%, rgba(3,7,15,.72) 100%);
}

/* Everything else sits above */
.nav, .drawer, main, footer { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .bg-wash { animation: none; }
}

/* ---------------------------------------------------------------------------
   2. PHOTOGRAPHY SYSTEM
   --------------------------------------------------------------------------- */

.ph {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--navy-900);
  margin: 0;
  isolation: isolate;
  box-shadow: 0 30px 70px -40px #000;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .8s ease;
  filter: saturate(.82) contrast(1.04);
}
.ph:hover img { transform: scale(1.045); }

/* Aspect variants */
.ph--wide   { aspect-ratio: 16/9; }
.ph--photo  { aspect-ratio: 3/2; }
.ph--square { aspect-ratio: 1/1; }
.ph--tall   { aspect-ratio: 4/5; }
.ph--port   { aspect-ratio: 3/4; }

/* Duotone treatment */
.ph--duo::before,
.ph--duo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.ph--duo::before {
  background: linear-gradient(165deg, #0A1628, #060D1A);
  mix-blend-mode: color;
  opacity: .78;
}
.ph--duo::after {
  background: linear-gradient(150deg, rgba(212,175,55,.30), rgba(43,111,224,.24));
  mix-blend-mode: overlay;
  opacity: .85;
}
.ph--duo:hover::before { opacity: .34; }
.ph--duo:hover::after  { opacity: .45; }

/* Scrim for text over images */
.ph--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6,13,26,.94) 4%, rgba(6,13,26,.55) 46%, rgba(6,13,26,.12) 100%);
}
.ph-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 26px;
}
.ph-cap h3 { font-size: 20px; margin-bottom: 6px; }
.ph-cap p { color: var(--ink-2); font-size: 14.5px; }
.ph-cap .eyebrow { margin-bottom: 10px; }

/* Gold rule on hover */
.ph--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 3;
  transition: width .7s cubic-bezier(.16,1,.3,1);
}
.ph--rule:hover::before { width: 100%; }

/* --------------------------------- layouts -------------------------------- */

/* Image beside text */
.split { display: grid; gap: 34px; align-items: center; }
.split--flip .split-media { order: -1; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--flip .split-media { order: 2; }
}

/* Full-bleed band */
.band {
  position: relative;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  min-height: min(62vh, 520px);
  display: grid;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.05);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6,13,26,.95) 8%, rgba(6,13,26,.66) 52%, rgba(6,13,26,.42) 100%),
    linear-gradient(160deg, rgba(43,111,224,.18), rgba(212,175,55,.12));
}
.band-in {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 64px 0;
}

/* Editorial grid */
.ph-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .ph-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
  .ph-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .ph-grid > *:nth-child(4) { grid-column: span 2; }
  .ph-grid .ph { aspect-ratio: auto; height: 100%; }
}

/* Portrait row */
.ph-people {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ph-people figcaption { margin-top: 14px; }
.ph-people h3 { font-size: 16px; }
.ph-people p { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* Logo / credential strip */
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: center;
  justify-content: center;
  padding: 34px 0;
  border-block: 1px solid var(--line-2);
}
.marks img {
  height: 26px;
  width: auto;
  opacity: .45;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .3s;
}
.marks img:hover { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .ph img,
  .ph--duo::before,
  .ph--duo::after,
  .ph--rule::before { transition: none; }
  .ph:hover img { transform: scale(1.005); }
}
