/* ============================================================
   enhance.css - additive enhancement layer for the DSN theme.
   Loads AFTER style.css. Nothing here overwrites his original
   stylesheet; it only layers on top, using his own design tokens
   (--bg-color #131313, --assistant-color #191919, --theme-color
   #e4e4dd cream, --theme-yellow #face36 gold, --heading-font Eras).
   ============================================================ */

/* ---------- shared enhancement primitives ---------- */
.em-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--theme-yellow);
  margin-bottom: 18px;
}
.em-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--theme-yellow), transparent);
}
.em-serif-note {
  font-family: var(--body-font);
  font-style: italic;
}

/* ============================================================
   1. TRIPTYCH HERO - keep his identity dominant.
   His original left the reel's own title cards (EXODUS, "stereo
   3D") bleeding up under the ENRIQUE MUNOZ wordmark. A top scrim
   pushes the video content down and keeps the gold identity on top.
   ============================================================ */
.tri-panel .tri-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.86) 0%,
    rgba(10, 10, 10, 0.40) 20%,
    rgba(10, 10, 10, 0.28) 55%,
    rgba(10, 10, 10, 0.52) 100%
  ) !important;
}
.tri-panel.hovered .tri-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.18) 26%,
    rgba(10, 10, 10, 0.02) 50%,
    rgba(10, 10, 10, 0.88) 100%
  ) !important;
}
/* dedicated header-band scrim: hides the reel title cards (EXODUS,
   "N 2") that bled up into the wordmark zone, so his gold identity
   is always the only brand at the top of the frame. */
.tri-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.98) 0%,
    rgba(8, 8, 8, 0.92) 38%,
    rgba(8, 8, 8, 0.55) 72%,
    rgba(8, 8, 8, 0) 100%
  );
  z-index: 6;
  pointer-events: none;
}
/* refine panel labels to his display type */
.tri-label-title {
  font-family: var(--heading-font), "Arial Black", sans-serif !important;
  letter-spacing: 0.12em !important;
}
.tri-label-sub {
  font-family: var(--font-code) !important;
}
/* the site header wordmark must always sit above the video */
#site_menu_header .main-logo { position: relative; z-index: 30; }

/* ============================================================
   2. HOME - FEATURED PROJECTS swiper (his named weak point).
   Same swiper component, bigger frames + real role/studio/year.
   ============================================================ */
/* scoped to the HOME swiper only (dsn-post-type-classic), so it never
   touches the card grids on about.html / portfolio.html */
.dsn-post-type-classic.h-350 .box-image-bg {
  height: 62vh;
  max-height: 640px;
  min-height: 440px;
}

/* project meta row: lead badge + medium */
.em-proj-tags {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.em-lead-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--theme-yellow);
  color: #141414;
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.em-proj-medium {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--theme-color);
  opacity: 0.75;
}
.em-proj-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-code);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #a5a59d;
}
.em-proj-role { color: var(--theme-color); }
.em-proj-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--theme-yellow); opacity: 0.8;
}
@media (max-width: 767px) {
  .dsn-post-type-classic.h-350 .box-image-bg { height: 52vh; min-height: 320px; }
}
/* Featured swiper: clear drag affordance + inviting arrows (QoL) */
.has-parallax-image.dsn-swiper .swiper-container { cursor: grab; }
.has-parallax-image.dsn-swiper .swiper-container:active { cursor: grabbing; }
.dsn-swiper-paginate .swiper-prev,
.dsn-swiper-paginate .swiper-next { transition: transform 0.35s ease; }
.dsn-swiper-paginate .swiper-prev:hover { transform: translateX(-5px); }
.dsn-swiper-paginate .swiper-next:hover { transform: translateX(5px); }

/* ============================================================
   3. INTERIOR PAGE HERO (project / reels / portfolio headers)
   reuses his dsn-header look; adds a clean meta rail.
   ============================================================ */
.em-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
}
.em-hero-meta .em-hm {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-color);
  opacity: 0.85;
}
.em-hero-meta .em-hm b { color: var(--theme-yellow); font-weight: 600; }

/* ============================================================
   4. PROJECT RECORD (contribution / challenge / approach + facts)
   the honest content, delivered in his typographic language.
   ============================================================ */
.em-record {
  padding: 9vh 0 4vh;
  background: var(--bg-color);
}
.em-record-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 70px;
  align-items: start;
}
.em-record-logline {
  font-family: var(--body-font);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 46px;
  max-width: 22ch;
}
.em-block { margin-bottom: 38px; }
.em-block-h {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-yellow);
  margin-bottom: 14px;
}
.em-block-p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--font-color);
  max-width: 60ch;
}
.em-scope {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8f8f88;
  font-family: var(--body-font);
  font-style: italic;
}
.em-record-facts {
  border: 1px solid var(--border-color);
  background: var(--assistant-color);
  padding: 12px 30px;
  position: sticky;
  top: 40px;
}
.em-fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border-color);
}
.em-fact:last-child { border-bottom: none; }
.em-fact-k {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8f88;
  white-space: nowrap;
}
.em-fact-v {
  font-size: 14px;
  color: var(--heading-color);
  text-align: right;
  font-weight: 500;
}
@media (max-width: 991px) {
  .em-record-grid { grid-template-columns: 1fr; gap: 40px; }
  .em-record-facts { position: static; }
}

/* project gallery caption polish (his .cap component) */
.img-box-parallax .cap span {
  font-family: var(--font-code);
  letter-spacing: 0.08em;
}

/* prev / next project nav */
.em-projnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-color);
  margin-top: 3vh;
}
.em-projnav a {
  padding: 46px 40px;
  display: block;
  transition: background 0.4s ease;
}
.em-projnav a:hover { background: var(--assistant-color); }
.em-projnav a.em-next { text-align: right; border-left: 1px solid var(--border-color); }
.em-projnav .em-pn-dir {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--theme-yellow);
  margin-bottom: 10px;
  display: block;
}
.em-projnav .em-pn-title {
  font-family: var(--heading-font), sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--heading-color);
}
@media (max-width: 600px) {
  .em-projnav a { padding: 30px 22px; }
}

/* ============================================================
   5. REELS PAGE - discipline theater in his palette.
   ============================================================ */
.em-reels-wrap { padding: 4vh 0 2vh; background: var(--bg-color); }
.em-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.em-reel-card {
  position: relative;
  border: 1px solid var(--border-color);
  background: var(--assistant-color);
  overflow: hidden;
}
.em-reel-stage {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0a0a0a;
  cursor: pointer;
  overflow: hidden;
}
.em-reel-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.em-reel-card:hover .em-reel-stage img { transform: scale(1.05); }
.em-reel-stage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7), rgba(10,10,10,0.1) 55%, rgba(10,10,10,0.35));
  transition: opacity 0.4s;
}
.em-reel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-yellow);
  background: rgba(10, 10, 10, 0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background 0.3s, transform 0.3s;
}
.em-reel-card:hover .em-reel-play { background: var(--theme-yellow); transform: translate(-50%, -50%) scale(1.06); }
.em-reel-play::after {
  content: "";
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--theme-yellow);
  margin-left: 4px;
  transition: border-left-color 0.3s;
}
.em-reel-card:hover .em-reel-play::after { border-left-color: #141414; }
.em-reel-stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; z-index: 4;
}
.em-reel-body { padding: 24px 26px 28px; }
.em-reel-label {
  font-family: var(--heading-font), sans-serif;
  font-size: 21px;
  color: var(--heading-color);
  margin-bottom: 6px;
}
.em-reel-role {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-yellow);
}
@media (max-width: 991px) {
  .em-reels-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
}

/* ============================================================
   5b. ABOUT - EXPERTISE bullets.
   His desktop CSS sets .service_description{display:none}, so the real
   capability bullets only showed on mobile. Reveal them on hover/active
   (his existing interaction), keeping the clean icon grid by default.
   ============================================================ */
@media only screen and (min-width: 992px) {
  .service-with-img .dsn-service .service-item .service_description {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height .55s cubic-bezier(.16,1,.3,1), opacity .4s ease, margin-top .4s ease;
    text-align: left;
  }
  .service-with-img .dsn-service .service-item:hover .service_description,
  .service-with-img .dsn-service .service-item.active .service_description {
    max-height: 360px;
    opacity: 1;
    margin-top: 18px;
  }
  .service-with-img .dsn-service .service_description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 300px;
    margin-inline: auto;
  }
  .service-with-img .dsn-service .service_description li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--font-color);
  }
  .service-with-img .dsn-service .service_description li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--theme-yellow);
  }
  /* hint that these tiles reveal detail */
  .service-with-img .dsn-service .service-item { cursor: default; }
}

/* -- Expertise: swap in a real background frame per discipline on hover.
      (his item-bg was wired to a dot-pattern placeholder and never fired) -- */
.service-with-img .dsn-service .item-bg {
  background-size: cover !important;
  background-position: center center !important;
  transition: opacity 0.65s cubic-bezier(.16, 1, .3, 1) !important;
}
.service-with-img .dsn-service .item-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.66);
}
.service-with-img .dsn-service .service-item:hover + .item-bg,
.service-with-img .dsn-service .service-item.active + .item-bg {
  opacity: 1 !important;
}
/* keep the discipline content above the revealed frame */
.service-with-img .dsn-service .service-item { position: relative; z-index: 2; }

/* ============================================================
   6. PORTFOLIO GRID polish (his isotope grid).
   ============================================================ */
.em-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 50px;
}
.em-filter button {
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a92;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.em-filter button:hover { color: var(--theme-color); border-color: rgba(255,255,255,0.28); }
.em-filter button.is-active {
  color: #141414;
  background: var(--theme-yellow);
  border-color: var(--theme-yellow);
}
.em-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
}
.em-card {
  transition: border-color 0.4s ease, transform 0.55s cubic-bezier(.16,1,.3,1), box-shadow 0.55s ease;
}
.em-card:hover {
  border-color: rgba(250, 206, 54, 0.42);
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.em-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--assistant-color);
  aspect-ratio: 16 / 10;
}
.em-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.02) saturate(1.03);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.em-card:hover img { transform: scale(1.06); filter: brightness(1.14) contrast(1.04) saturate(1.06); }
.em-card-veil {
  position: absolute; inset: 0;
  /* light at rest so the work is visible; darker only in the bottom for text */
  background: linear-gradient(to top, rgba(6,6,6,0.9) 0%, rgba(6,6,6,0.42) 26%, rgba(6,6,6,0.03) 50%, transparent 66%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  transition: background 0.45s ease;
}
.em-card:hover .em-card-veil {
  background: linear-gradient(to top, rgba(6,6,6,0.94) 0%, rgba(6,6,6,0.55) 34%, rgba(6,6,6,0.12) 60%, transparent 80%);
}
.em-card-tag {
  font-family: var(--font-code);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-yellow);
  margin-bottom: 8px;
}
.em-card-title {
  font-family: var(--heading-font), sans-serif;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}
.em-card-sub {
  margin-top: 8px;
  font-family: var(--font-code);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #b9b9b1;
}
@media (max-width: 991px) { .em-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .em-grid { grid-template-columns: 1fr; } .em-card { aspect-ratio: 16/11; } }

/* is-hidden helper for filtering */
.em-card.is-filtered { display: none; }

/* case-study badge on cards that have a full detail page */
.em-card-flag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(250, 206, 54, 0.92);
  color: #141414;
  font-family: var(--font-code);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Additional credits (verified work without a frame) */
.em-credits { margin-top: 8vh; }
.em-credits-head {
  font-family: var(--heading-font), sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--heading-color);
  margin-bottom: 8px;
}
.em-credits-intro {
  color: #9a9a92;
  font-size: 14px;
  max-width: 60ch;
  margin-bottom: 40px;
}
/* Complete-filmography poster wall */
.em-posters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 22px;
}
.em-poster { display: block; text-decoration: none; }
.em-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  display: block;
  transition: transform 0.45s cubic-bezier(.16, 1, .3, 1), box-shadow 0.45s ease, border-color 0.4s ease;
}
.em-poster:hover img {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  border-color: rgba(250, 206, 54, 0.42);
}
.em-poster-meta { margin-top: 12px; }
.em-poster-title { color: var(--heading-color); font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.em-poster-sub {
  color: #8f8f88;
  font-family: var(--font-code);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-top: 5px;
}
@media (max-width: 1100px) { .em-posters { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .em-posters { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; } }
@media (max-width: 460px) { .em-posters { grid-template-columns: repeat(2, 1fr); } }
.em-credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  border-top: 1px solid var(--border-color);
}
.em-cr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-color);
}
.em-cr-title { color: var(--heading-color); font-size: 15px; font-weight: 500; }
.em-cr-meta {
  color: #8f8f88;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 767px) { .em-credits-grid { grid-template-columns: 1fr; } }

/* ============================================================
   7. HOME INDEX POLISH (elevate his existing sections)
   ============================================================ */

/* -- Services (FILM / TV / GAMING): surface the Academy + Emmy awards -- */
.em-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(250, 206, 54, 0.5);
  border-radius: 2px;
  background: rgba(250, 206, 54, 0.08);
  color: var(--theme-yellow);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.em-award-star { font-size: 11px; line-height: 1; }
/* a touch more presence + a clean reveal on the discipline columns */
.icon-left .dsn-service .service-item { transition: background 0.4s ease; }
.icon-left .dsn-service .service-item:hover { background: rgba(255, 255, 255, 0.02); }
.icon-left .dsn-service .service-content .service_title { letter-spacing: 0.06em; }

/* -- Résumé as the 4th trust-strip item (matches FILM / TV / GAMING) -- */
.em-resume-link { display: flex; text-decoration: none; color: inherit; }
/* his .dsn-icon force-fills SVG paths; render the document as a thin OUTLINE
   so it reads like the line-style film-reel / monitor / gamepad icons */
.em-resume-item .dsn-icon svg,
.em-resume-item .dsn-icon svg path {
  fill: none !important;
  stroke: var(--theme-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease;
}
.em-resume-item:hover .dsn-icon svg,
.em-resume-item:hover .dsn-icon svg path { stroke: var(--theme-yellow); }
/* download hint: a small mono line under the body copy, same voice as the
   section eyebrows (not a mismatched gold button) */
.em-resume-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--theme-yellow);
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: gap 0.3s ease;
}
.em-resume-item:hover .em-resume-hint { gap: 11px; }
.em-resume-arrow { font-size: 13px; line-height: 1; transition: transform 0.3s ease; }
.em-resume-item:hover .em-resume-arrow { transform: translateY(3px); }

/* ============================================================
   HOME — CINEMATIC RECOMPOSITION
   Integrated replacement for the previous trust / expertise / pillar / career
   home rules. The original Eras face and black / ivory / amber identity remain.
   ============================================================ */
.page-home {
  --em-shell: 1340px;
  --em-gutter: clamp(28px, 4vw, 66px);
  --em-gold: #c9a135;
  --em-gold-soft: rgba(201,161,53,.28);
  --em-ivory: #e7e3d9;
  --em-copy: #aaa8a1;
  --em-line: rgba(201,161,53,.19);
  background:#090a0a;
}
.page-home .main-root,
.page-home #page_wrapper,
.page-home #dsn-scrollbar { background:#090a0a; }
.page-home .main-root { transform:none !important; }
.page-home .social-side { display:none !important; }
.page-home #line_head { opacity:.24; }
.page-home .em-home-shell {
  width:min(calc(100% - (var(--em-gutter) * 2)), var(--em-shell));
  margin-inline:auto;
}
.page-home .background-main { background-color:#0a0b0b; }
.page-home .background-section { background-color:#111212; }

/* Header: floats over the opening frame rather than occupying a black band. */
.page-home .site-header {
  position:absolute !important;
  inset:0 0 auto 0;
  width:100%;
  max-width:none !important;
  height:82px;
  padding:22px var(--em-gutter) !important;
  display:flex !important;
  align-items:flex-start;
  z-index:100;
  background:linear-gradient(to bottom,rgba(0,0,0,.75),rgba(0,0,0,0));
}
.page-home .site-header .main-logo { position:relative; z-index:4; }
.page-home .site-header .main-logo img { width:190px; max-width:190px; }
.page-home .em-header-links {
  margin-left:auto;
  margin-right:96px;
  display:flex;
  align-items:center;
  gap:38px;
  padding-top:6px;
  position:relative;
  z-index:4;
}
.page-home .em-header-links a {
  color:rgba(255,255,255,.86);
  font-family:var(--font-code);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  transition:color .25s ease;
}
.page-home .em-header-links a:hover { color:var(--em-gold); }
.page-home .navbar-toggle { top:22px !important; right:var(--em-gutter) !important; z-index:5; }
.page-home .navbar-toggle .toggle-text { font-size:10px; letter-spacing:.12em; }

/* Opening triptych. */
.page-home .tri-hero {
  position:relative;
  width:100%;
  height:clamp(720px,82vh,900px);
  min-height:720px;
  overflow:hidden;
  background:#050606;
  isolation:isolate;
}
.page-home .tri-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
  box-shadow:inset 0 -120px 120px -65px rgba(0,0,0,.76);
}
.page-home .tri-panels {
  display:flex;
  gap:6px;
  width:100%;
  height:100%;
}
.page-home .tri-panel {
  position:relative;
  display:block;
  flex:1 1 0;
  width:0;
  height:100%;
  padding:0;
  border:0;
  overflow:hidden;
  cursor:pointer;
  background:#070808;
  text-align:left;
  color:#fff;
  transition:flex-grow .78s cubic-bezier(.16,1,.3,1),filter .55s ease,opacity .55s ease;
  will-change:flex-grow;
}
.page-home .tri-panel:nth-child(1) { flex-grow:1.04; }
.page-home .tri-panel:nth-child(2) { flex-grow:1.10; }
.page-home .tri-panel:nth-child(3) { flex-grow:.96; }
.page-home .tri-panel.hovered { flex-grow:1.92; }
.page-home .tri-panel.dimmed { flex-grow:.56; filter:saturate(.58) brightness(.66); }
.page-home .tri-panel::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:4;
  border-left:1px solid rgba(255,255,255,.035);
  border-right:1px solid rgba(255,255,255,.035);
  pointer-events:none;
}
.page-home .tri-video,
.page-home .tri-poster,
.page-home .tri-overlay { position:absolute; inset:0; }
.page-home .tri-video {
  z-index:1;
  overflow:hidden;
  filter:saturate(.76) brightness(.82) contrast(1.06);
  transition:filter .65s ease;
}
.page-home .tri-video iframe {
  position:absolute;
  top:50%; left:50%;
  width:177.78vh;
  min-width:100%;
  height:56.25vw;
  min-height:100%;
  transform:translate(-50%,-50%) scale(1.002);
  border:0;
  pointer-events:none;
  transition:transform 1.05s cubic-bezier(.16,1,.3,1);
}
.page-home .tri-panel.hovered .tri-video { filter:saturate(.9) brightness(.92) contrast(1.035); }
.page-home .tri-panel.hovered .tri-video iframe { transform:translate(-50%,-50%) scale(1.035); }
.page-home .tri-panel.dimmed .tri-video iframe { transform:translate(-50%,-50%) scale(.985); }
.page-home .tri-poster {
  z-index:2;
  background-size:cover;
  background-position:center;
  opacity:1;
  filter:saturate(.76) brightness(.82) contrast(1.06);
  transition:opacity .9s ease,transform 1.2s cubic-bezier(.16,1,.3,1);
}
.page-home .tri-panel:nth-child(1) .tri-poster { background-position:53% center; }
.page-home .tri-panel:nth-child(2) .tri-poster { background-position:50% center; }
.page-home .tri-panel:nth-child(3) .tri-poster { background-position:52% center; }
.page-home .tri-panel.playing .tri-poster { opacity:0; }
.page-home .tri-overlay {
  z-index:3;
  background:
    linear-gradient(to bottom,rgba(4,5,5,.18),rgba(4,5,5,.08) 38%,rgba(2,3,3,.66) 100%),
    linear-gradient(90deg,rgba(8,9,9,.16),rgba(8,9,9,.02));
  transition:background .5s ease;
}
.page-home .tri-panel:nth-child(1) .tri-overlay { background-color:rgba(12,20,24,.16); }
.page-home .tri-panel:nth-child(2) .tri-overlay { background-color:rgba(50,25,8,.12); }
.page-home .tri-panel:nth-child(3) .tri-overlay { background-color:rgba(18,12,10,.14); }
.page-home .tri-panel:hover .tri-poster,
.page-home .tri-panel.hovered .tri-poster { transform:scale(1.04); }
.page-home .tri-panel:hover .tri-overlay,
.page-home .tri-panel.hovered .tri-overlay { background-color:rgba(0,0,0,.01); }
.page-home .tri-panel.dimmed .tri-overlay {
  background:
    linear-gradient(to bottom,rgba(3,4,4,.42),rgba(3,4,4,.30) 38%,rgba(1,2,2,.78) 100%),
    rgba(0,0,0,.25);
}
.page-home .tri-panel-meta {
  position:absolute;
  left:26px;
  bottom:24px;
  z-index:6;
  display:flex;
  gap:12px;
  align-items:center;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .35s ease,transform .35s ease;
}
.page-home .tri-panel:hover .tri-panel-meta,
.page-home .tri-panel.hovered .tri-panel-meta { opacity:.82; transform:none; }
.page-home .tri-panel-num,
.page-home .tri-panel-title {
  font-family:var(--font-code);
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.page-home .tri-panel-num { color:var(--em-gold); }
.page-home .tri-title-card {
  position:absolute;
  left:50%;
  bottom:42px;
  z-index:10;
  width:min(920px,86vw);
  transform:translateX(-50%);
  text-align:center;
  pointer-events:none;
  opacity:1;
  filter:blur(0);
  transition:opacity .62s cubic-bezier(.16,1,.3,1),transform .72s cubic-bezier(.16,1,.3,1),filter .62s ease;
  isolation:isolate;
}
.page-home .tri-title-card::before,
.page-home .tri-title-card::after {
  content:"";
  position:absolute;
  top:-85%;
  bottom:-80%;
  left:-32%;
  z-index:4;
  width:22%;
  pointer-events:none;
  opacity:0;
  transform:translateX(-260%) rotate(-13deg);
  transform-origin:center;
  background:linear-gradient(90deg,transparent 0%,rgba(255,235,181,.08) 16%,rgba(255,244,213,.78) 49%,rgba(255,224,152,.14) 77%,transparent 100%);
  filter:blur(18px);
  mix-blend-mode:screen;
  animation:none;
}
.page-home .tri-title-card::after {
  width:9%;
  left:-18%;
  background:linear-gradient(90deg,transparent,rgba(255,247,223,.7),transparent);
  filter:blur(9px);
  animation:none;
}
.page-home .tri-title-copy,
.page-home .tri-actions { position:relative; z-index:3; }
.page-home .tri-title-copy { opacity:1; }
.page-home .tri-actions { opacity:1; }
.page-home .tri-hero.tri-intro-ready .tri-title-card::before {
  animation:triLightBeam 2.6s cubic-bezier(.2,.68,.24,1) 1.05s forwards;
}
.page-home .tri-hero.tri-intro-ready .tri-title-card::after {
  animation:triLightBeam 2.15s cubic-bezier(.2,.68,.24,1) 1.78s forwards;
}
.page-home .tri-hero.tri-intro-ready .tri-title-copy {
  animation:triTitleSettle 7.8s cubic-bezier(.16,1,.3,1) .15s forwards;
}
.page-home .tri-hero.tri-intro-ready .tri-actions {
  animation:triActionsSettle 7.8s cubic-bezier(.16,1,.3,1) .15s forwards;
}
.page-home .tri-hero.is-panel-hovered .tri-title-card {
  opacity:0;
  transform:translateX(-50%) translateY(14px) scale(.985);
  filter:blur(5px);
}
.page-home .tri-hero.is-panel-hovered .tri-title-card::before,
.page-home .tri-hero.is-panel-hovered .tri-title-card::after {
  opacity:0 !important;
  animation-play-state:paused;
}
@keyframes triLightBeam {
  0% { opacity:0; transform:translateX(-260%) rotate(-13deg); }
  14% { opacity:.14; }
  42% { opacity:.76; }
  72% { opacity:.30; }
  100% { opacity:0; transform:translateX(720%) rotate(-13deg); }
}
@keyframes triTitleSettle {
  0%,42% { opacity:1; text-shadow:0 8px 32px rgba(0,0,0,.54); }
  58% { opacity:.92; text-shadow:0 0 30px rgba(255,226,158,.16),0 8px 34px rgba(0,0,0,.62); }
  100% { opacity:.46; text-shadow:0 8px 32px rgba(0,0,0,.56); }
}
@keyframes triActionsSettle {
  0%,48% { opacity:1; }
  100% { opacity:.82; }
}
.page-home .tri-eyebrow {
  margin:0 0 16px;
  color:var(--em-gold);
  font-family:var(--font-code);
  font-size:10px;
  letter-spacing:.46em;
  text-transform:uppercase;
}
.page-home .tri-headline {
  margin:0;
  color:var(--em-ivory);
  font-family:var(--body-font);
  font-size:clamp(42px,4vw,62px);
  font-weight:400;
  line-height:1;
  letter-spacing:.155em;
  text-transform:uppercase;
  text-shadow:0 8px 32px rgba(0,0,0,.54);
}
.page-home .tri-headline small {
  display:block;
  margin-top:20px;
  font:inherit;
  font-size:.47em;
  letter-spacing:.36em;
}
.page-home .tri-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:40px;
  margin-top:27px;
  pointer-events:auto;
}
.page-home .tri-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  min-height:42px;
  color:#eeeae1;
  font-family:var(--font-code);
  font-size:9px;
  letter-spacing:.13em;
  text-transform:uppercase;
  background:none;
  border:0;
  cursor:pointer;
  white-space:nowrap;
}
.page-home .tri-action-primary {
  min-width:166px;
  padding:0 22px;
  border:1px solid rgba(201,161,53,.65);
  background:rgba(7,8,8,.38);
  transition:background .25s ease,border-color .25s ease;
}
.page-home .tri-action-primary:hover { background:rgba(201,161,53,.10); border-color:var(--em-gold); }
.page-home .tri-action-play {
  width:0; height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:8px solid var(--theme-yellow);
}
.page-home .tri-action-link { opacity:.86; }
.page-home .tri-action-link:hover { color:var(--em-gold); opacity:1; }
.page-home .tri-action-link i { font-size:8px; }

@media (prefers-reduced-motion: reduce) {
  .page-home .tri-title-card::before,
  .page-home .tri-title-card::after { display:none; animation:none; }
  .page-home .tri-title-copy { animation:none; opacity:.72; }
  .page-home .tri-actions { animation:none; opacity:.92; }
  .page-home .tri-panel,
  .page-home .tri-video iframe,
  .page-home .tri-title-card { transition-duration:.01ms !important; }
}

/* Reel modal retains the site behavior but adopts the same restrained finish. */
.tri-modal { position:fixed; inset:0; z-index:99999; background:#000; opacity:0; pointer-events:none; transition:opacity .35s ease; }
.tri-modal.open { opacity:1; pointer-events:auto; }
body.tri-modal-open { overflow:hidden; }
.tri-modal iframe { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(calc(100vw - 48px),177.78vh); height:min(calc(100vh - 150px),56.25vw); border:0; }
.tri-modal-top,.tri-modal-bot { position:absolute; left:0; right:0; z-index:2; pointer-events:none; }
.tri-modal-top { top:0; height:110px; background:linear-gradient(rgba(0,0,0,.78),transparent); }
.tri-modal-bot { bottom:0; height:120px; background:linear-gradient(transparent,rgba(0,0,0,.84)); }
.tri-modal-close { position:absolute; top:22px; right:26px; z-index:8; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; cursor:pointer; }
.tri-modal-info { position:absolute; top:32px; left:30px; z-index:8; display:flex; align-items:center; gap:10px; font-family:var(--font-code); font-size:9px; letter-spacing:.16em; }
.tri-modal-dot { width:7px; height:7px; border-radius:50%; background:var(--theme-yellow); box-shadow:0 0 12px rgba(250,206,54,.55); }
.tri-modal-playing { color:rgba(255,255,255,.48); }
.tri-modal-label { color:#fff; }
.tri-modal-nav { position:absolute; left:0; right:0; bottom:0; z-index:8; height:68px; display:flex; justify-content:space-between; align-items:center; padding:0 30px; }
.tri-modal-nav button { display:flex; align-items:center; gap:10px; border:0; background:none; color:rgba(255,255,255,.58); font-family:var(--font-code); font-size:9px; letter-spacing:.12em; cursor:pointer; }
.tri-modal-counter { color:#fff; font-family:var(--heading-font); font-size:24px; }
.tri-modal-counter small { margin-left:5px; color:rgba(255,255,255,.35); font-family:var(--font-code); font-size:11px; }

/* Opening-credit credentials band. */
.page-home .em-strip-section {
  min-height:300px;
  padding:34px 0 42px;
  border-top:1px solid rgba(255,255,255,.025);
  background:
    radial-gradient(circle at 50% 0,rgba(201,161,53,.045),transparent 42%),
    #0a0b0b;
}
.page-home .em-strip { padding:0; }
.page-home .em-strip-eyebrow {
  display:flex;
  align-items:center;
  gap:13px;
  margin:0 0 30px;
  color:#77766f;
  font-family:var(--font-code);
  font-size:9px;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.page-home .em-strip-eyebrow::after { content:""; flex:1; height:1px; background:linear-gradient(90deg,var(--em-line),transparent); }
.page-home .em-strip-eyebrow > span { width:48px; height:1px; background:var(--em-gold); opacity:.75; }
.page-home .em-strip .dsn-service { gap:0; }
.page-home .em-strip .service-item {
  padding:0 32px;
  border-left:1px solid rgba(255,255,255,.075);
}
.page-home .em-strip .service-item:first-child { padding-left:0; border-left:0; }
.page-home .em-strip .service-item:last-child { padding-right:0; }
.page-home .em-strip .service-item-inner { align-items:flex-start !important; }
.page-home .em-strip .dsn-icon { width:52px !important; min-width:52px; margin-right:18px !important; color:#e9e6dd; }
.page-home .em-strip .dsn-icon svg { width:52px !important; height:52px !important; fill:none; stroke:currentColor; stroke-width:7; }
.page-home .em-strip .service-content { padding-top:1px; }
.page-home .em-strip .service_title { margin:0 0 8px !important; color:#f0ede5; font-size:15px; font-weight:500; letter-spacing:.04em; }
.page-home .em-strip .service_description { margin-top:0 !important; color:#a6a49d; font-size:13px; line-height:1.48; }
.page-home .em-strip .em-resume-hint { margin-top:13px; font-size:9px; color:var(--em-gold); }

/* Automotive identity chapter. */
.page-home .em-identity-section {
  padding:94px 0 105px;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 24%,rgba(111,47,23,.13),transparent 36%),
    radial-gradient(circle at 20% 80%,rgba(201,161,53,.035),transparent 42%),
    #111212;
}
.page-home .em-identity-grid {
  display:grid;
  grid-template-columns:minmax(390px,.91fr) minmax(0,1.28fr);
  grid-template-areas:"copy engine" "street street";
  column-gap:58px;
  align-items:start;
}
.page-home .em-identity-copy { grid-area:copy; position:relative; z-index:3; padding:4px 0 0 8px; }
.page-home .em-identity-title {
  margin:0;
  color:var(--em-ivory);
  font-family:var(--body-font);
  font-size:clamp(66px,6.5vw,98px);
  font-weight:300;
  line-height:.91;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.page-home .em-identity-line { display:block; }
.page-home .em-identity-line--intro { margin-bottom:13px; font-size:.68em; letter-spacing:.1em; }
.page-home .em-kicker-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:38px;
  color:var(--em-gold);
  font-family:var(--font-code);
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.page-home .em-kicker-rule { width:26px; height:1px; background:var(--em-gold); }
.page-home .em-identity-bio { max-width:340px; margin:28px 0 0; color:#aaa8a1; font-size:16px; line-height:1.58; }
.page-home .em-identity-image {
  position:relative;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(201,161,53,.16);
  background:#080909;
  box-shadow:0 24px 64px rgba(0,0,0,.32);
}
.page-home .em-identity-image::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 70px rgba(0,0,0,.22); }
.page-home .em-identity-image img { display:block; width:100%; height:100%; object-fit:cover; filter:saturate(.74) contrast(1.06) brightness(.81); }
.page-home .em-identity-image--engine { grid-area:engine; height:600px; }
.page-home .em-identity-image--engine img { object-position:center 44%; }
.page-home .em-identity-image--street { grid-area:street; width:88%; height:410px; margin:-165px 0 0 2.3%; z-index:4; }
.page-home .em-identity-image--street img { object-position:center 54%; }
.page-home .em-identity-image figcaption { position:absolute; left:24px; bottom:16px; z-index:3; color:rgba(237,233,223,.64); font-family:var(--font-code); font-size:9px; letter-spacing:.02em; }

/* Shared section-title language. */
.page-home .em-section-heading { margin-bottom:30px; }
.page-home .em-expertise-section .em-section-heading,
.page-home .em-projects-section .em-section-heading { position:relative; }
.page-home .em-expertise-section .em-section-heading::after,
.page-home .em-projects-section .em-section-heading::after {
  content:"";
  position:absolute;
  left:200px;
  right:0;
  top:8px;
  height:1px;
  background:linear-gradient(90deg,rgba(201,161,53,.22),transparent);
}

.page-home .em-section-heading--split { display:flex; align-items:flex-end; justify-content:space-between; }
.page-home .em-section-kicker { display:flex; align-items:center; gap:12px; margin:0 0 14px; color:#8a8982; font-family:var(--font-code); font-size:9px; font-weight:400; letter-spacing:.15em; text-transform:uppercase; }
.page-home .em-section-kicker::after { content:""; width:56px; height:1px; background:var(--em-line); }
.page-home .em-section-kicker > span { width:24px; height:1px; background:var(--em-gold); }
.page-home .em-section-kicker b { font-weight:400; }
.page-home .em-section-heading h2,
.page-home .em-career-copy h2 { margin:0; color:var(--em-ivory); font-family:var(--body-font); font-size:clamp(36px,3.5vw,52px); font-weight:300; line-height:1.06; letter-spacing:.11em; text-transform:uppercase; }
.page-home .em-text-link { display:inline-flex; align-items:center; gap:10px; margin-bottom:8px; color:var(--em-gold); font-family:var(--font-code); font-size:9px; letter-spacing:.15em; text-transform:uppercase; }

/* Craft breakdown cards. */
.page-home .em-expertise-section {
  padding:64px 0 72px;
  background:
    radial-gradient(circle at 50% 42%,rgba(180,122,32,.07),transparent 44%),
    #0a0b0b;
}
.page-home .em-expertise-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.page-home .em-expertise-card {
  position:relative;
  height:500px;
  overflow:hidden;
  border:1px solid rgba(201,161,53,.22);
  background:#0b0c0c;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.page-home .em-expertise-card::before,
.page-home .em-expertise-card::after { content:""; position:absolute; z-index:5; width:24px; height:24px; pointer-events:none; }
.page-home .em-expertise-card::before { top:-1px; left:-1px; border-top:2px solid var(--em-gold); border-left:2px solid var(--em-gold); }
.page-home .em-expertise-card::after { top:-1px; right:-1px; border-top:2px solid var(--em-gold); border-right:2px solid var(--em-gold); opacity:.6; }
.page-home .em-expertise-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.70; filter:saturate(.72) brightness(.78) contrast(1.1); }
.page-home .em-expertise-card--1 .em-expertise-bg { object-position:center; filter:sepia(.18) saturate(.78) brightness(.72) contrast(1.08); }
.page-home .em-expertise-card--2 .em-expertise-bg { object-position:center; opacity:.68; filter:saturate(.55) brightness(.70) contrast(1.12); }
.page-home .em-expertise-card--2 { background-image:radial-gradient(circle at 35% 27%,rgba(201,161,53,.08),transparent 28%),linear-gradient(90deg,transparent 49%,rgba(255,255,255,.025) 50%,transparent 51%); }
.page-home .em-expertise-card--3 .em-expertise-bg { object-position:55% center; opacity:.78; filter:saturate(.65) brightness(.72) contrast(1.08); }
.page-home .em-expertise-shade { position:absolute; inset:0; background:linear-gradient(to top,rgba(5,6,6,.96) 0%,rgba(7,8,8,.67) 40%,rgba(7,8,8,.06) 84%),linear-gradient(90deg,rgba(5,6,6,.24),transparent); }
.page-home .em-expertise-num { position:absolute; top:48px; left:34px; z-index:2; color:rgba(224,218,202,.14); font-family:var(--heading-font); font-size:70px; font-style:italic; line-height:1; }
.page-home .em-expertise-content { position:absolute; left:34px; right:32px; bottom:31px; z-index:3; }
.page-home .em-expertise-icon { display:block; width:58px; height:58px; margin-bottom:24px; color:#eeeae0; }
.page-home .em-expertise-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.35; stroke-linecap:round; stroke-linejoin:round; }
.page-home .em-expertise-icon .accent { stroke:var(--theme-yellow); }
.page-home .em-expertise-content h3 { margin:0 0 15px; color:#f0ede5; font-family:var(--body-font); font-size:19px; font-weight:400; letter-spacing:.06em; text-transform:uppercase; }
.page-home .em-expertise-content p { max-width:34ch; margin:0; color:#aaa8a1; font-size:15px; line-height:1.48; }
.page-home .em-card-link { display:inline-flex; align-items:center; gap:9px; margin-top:21px; color:var(--em-gold); font-family:var(--font-code); font-size:9px; letter-spacing:.15em; text-transform:uppercase; }
.page-home .em-expertise-card { transition:transform .45s cubic-bezier(.16,1,.3,1),border-color .35s ease; }
.page-home .em-expertise-card:hover { transform:translateY(-7px); border-color:rgba(201,161,53,.5); }

/* Featured-project capsule index. */
.page-home .em-projects-section {
  position:relative;
  padding:64px 0 70px;
  background:
    radial-gradient(ellipse at 50% 76%,rgba(49,64,73,.09),transparent 62%),
    #111212;
}
.page-home .em-projects-section::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 0,rgba(75,91,99,.025) 25%,rgba(75,91,99,.06) 50%,rgba(75,91,99,.025) 75%,transparent 100%);
}
.page-home .em-projects-section > .em-home-shell { position:relative; z-index:1; }
.page-home .em-projects-section .em-section-heading { margin-bottom:36px; }
.page-home .fb-bars {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  height:510px;
  align-items:start;
}
.page-home .fb-bar {
  position:relative;
  height:472px;
  overflow:hidden;
  border:1px solid rgba(201,161,53,.25);
  border-radius:14px;
  background:#050606;
  box-shadow:0 20px 44px rgba(0,0,0,.35);
  transform:none;
  opacity:1;
  transition:transform .55s cubic-bezier(.16,1,.3,1),border-color .35s ease,box-shadow .35s ease;
}
.page-home .fb-bar:nth-child(even) { margin-top:28px; }
.page-home .fb-bar:hover { transform:translateY(-8px); border-color:rgba(201,161,53,.65); box-shadow:0 28px 60px rgba(0,0,0,.5),0 0 24px rgba(201,161,53,.08); }
.page-home .fb-bar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:1; filter:saturate(.78) brightness(.82); transition:transform .7s cubic-bezier(.16,1,.3,1),filter .35s ease; }
.page-home .fb-bar:nth-child(1) img { object-position:48% center; }
.page-home .fb-bar:nth-child(2) img { object-position:50% center; }
.page-home .fb-bar:nth-child(3) img { object-position:52% center; }
.page-home .fb-bar:nth-child(4) img { object-position:50% center; }
.page-home .fb-bar:nth-child(5) img { object-position:54% center; }
.page-home .fb-bar:nth-child(6) img { object-position:58% center; }
.page-home .fb-bar:hover img { transform:scale(1.04); filter:saturate(.9) brightness(.9); }
.page-home .fb-shade { position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom,rgba(5,6,6,.34),rgba(5,6,6,.04) 40%,rgba(5,6,6,.12) 62%,rgba(5,6,6,.58)); }
.page-home .fb-idx { position:absolute; top:24px; left:0; right:0; z-index:2; text-align:center; color:rgba(255,255,255,.58); font-family:var(--font-code); font-size:10px; letter-spacing:.15em; }
.page-home .fb-plate { position:absolute; left:0; right:0; top:58%; z-index:3; padding:14px 8px; background:rgba(7,8,8,.68); border-top:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); backdrop-filter:blur(4px); text-align:center; }
.page-home .fb-title { display:block; color:#fff; font-family:var(--body-font); font-size:14px; font-weight:400; line-height:1.18; letter-spacing:.045em; text-transform:uppercase; }
.page-home .fb-lead { position:absolute; bottom:17px; left:50%; z-index:3; transform:translateX(-50%); padding:4px 8px; border-radius:2px; background:var(--theme-yellow); color:#111; font-family:var(--font-code); font-size:7px; font-weight:700; letter-spacing:.08em; white-space:nowrap; }

/* Career / studio end-credit wall. */
.page-home .em-career {
  padding:50px 0 52px;
  border-top:1px solid rgba(201,161,53,.14);
  background:#101111;
}
.page-home .em-career-grid { display:grid; grid-template-columns:minmax(430px,.82fr) minmax(0,1.34fr); gap:40px; align-items:stretch; }
.page-home .em-career-copy { align-self:center; padding-left:18px; }
.page-home .em-career-copy h2 { max-width:420px; font-family:var(--body-font); font-size:40px; font-weight:300; line-height:1.08; letter-spacing:.09em; }
.page-home .em-career-copy > p:last-child { max-width:460px; margin:20px 0 0; color:#aaa8a1; font-size:14px; line-height:1.55; }
.page-home .em-logo-wall { display:grid; grid-template-columns:repeat(3,1fr); }
.page-home .em-logo-cell { min-height:132px; display:grid; place-items:center; padding:22px; border-left:1px solid rgba(201,161,53,.15); border-bottom:1px solid rgba(201,161,53,.15); }
.page-home .em-logo-cell:nth-child(n+4) { border-bottom:0; }
.page-home .em-logo-cell img { display:block; width:auto; max-width:75%; max-height:62px; opacity:.68; filter:grayscale(1) brightness(1.35); transition:opacity .3s ease,transform .3s ease; }
.page-home .em-logo-cell:hover img { opacity:1; transform:scale(1.035); }

/* Closing frame and compact production-credit footer. */
.page-home .em-home-footer { margin:0; background:#080909; }
.page-home .em-home-contact { position:relative; min-height:220px; display:grid; place-items:center; overflow:hidden; background-size:cover; background-position:left center; border-top:1px solid rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.06); }
.page-home .em-home-contact-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,6,6,.60),rgba(5,6,6,.50)),linear-gradient(to bottom,rgba(5,6,6,.20),rgba(5,6,6,.55)); }
.page-home .em-home-contact-copy { position:relative; z-index:2; text-align:center; }
.page-home .em-home-contact-copy h2 { margin:0; color:var(--em-ivory); font-family:var(--body-font); font-size:24px; font-weight:300; letter-spacing:.16em; text-transform:uppercase; }
.page-home .em-home-contact-copy p { margin:13px 0 18px; color:#aaa8a1; font-size:14px; }
.page-home .em-contact-button { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-width:190px; height:42px; border:1px solid rgba(201,161,53,.7); color:#eeeae1; font-family:var(--font-code); font-size:10px; letter-spacing:.13em; text-transform:uppercase; background:rgba(5,6,6,.34); }
.page-home .em-contact-button:hover { color:var(--em-gold); border-color:var(--em-gold); }
.page-home .em-home-footer-bottom { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.page-home .em-home-footer-bottom p { margin:0; color:#77766f; font-family:var(--font-code); font-size:8px; letter-spacing:.02em; }
.page-home .em-home-footer-bottom a { color:#9b9991; }
.page-home .em-footer-socials { display:flex; align-items:center; gap:23px; }
.page-home .em-footer-socials a { color:#bdbab2; font-size:14px; }
.page-home .em-footer-socials a:hover { color:var(--em-gold); }

@media (max-width:1100px) {
  .page-home .tri-actions { gap:22px; }
  .page-home .em-strip .service-item { padding:0 18px; }
  .page-home .em-strip .dsn-icon { width:40px !important; min-width:40px; }
  .page-home .em-identity-grid { grid-template-columns:.75fr 1.25fr; column-gap:34px; }
  .page-home .em-identity-image--engine { height:540px; }
  .page-home .em-identity-image--street { height:390px; margin-top:-135px; }
  .page-home .em-expertise-card { height:470px; }
  .page-home .fb-bars { gap:12px; height:480px; }
  .page-home .fb-bar { height:452px; }
  .page-home .fb-bar:nth-child(even) { margin-top:28px; }
  .page-home .fb-title { font-size:12px; }
  .page-home .em-career-grid { gap:34px; }
}
@media (max-width:900px) {
  .page-home .em-header-links { display:none; }
  .page-home .tri-hero { height:760px; }
  .page-home .tri-panels { display:block; }
  .page-home .tri-panel,
  .page-home .tri-panel:nth-child(n),
  .page-home .tri-panel.hovered,
  .page-home .tri-panel.dimmed { width:100%; flex:none; filter:none; }
  .page-home .tri-panel { position:absolute; inset:0; opacity:0; pointer-events:none; }
  .page-home .tri-panel:nth-child(2) { opacity:1; pointer-events:auto; }
  .page-home .tri-title-card { bottom:48px; }
  .page-home .tri-actions { flex-wrap:wrap; row-gap:12px; }
  .page-home .em-strip .dsn-service { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:34px; }
  .page-home .em-strip .service-item:nth-child(3) { border-left:0; padding-left:0; }
  .page-home .em-identity-grid { grid-template-columns:1fr; grid-template-areas:"copy" "engine" "street"; }
  .page-home .em-identity-copy { margin-bottom:42px; }
  .page-home .em-identity-image--engine { height:520px; }
  .page-home .em-identity-image--street { width:92%; margin:-75px 0 0 4%; }
  .page-home .em-expertise-grid { grid-template-columns:1fr; }
  .page-home .em-expertise-card { height:500px; }
  .page-home .fb-bars { display:flex; height:470px; overflow-x:auto; padding:0 0 12px; scroll-snap-type:x mandatory; align-items:flex-start; }
  .page-home .fb-bar { flex:0 0 205px; height:438px; scroll-snap-align:center; }
  .page-home .fb-bar:nth-child(even) { margin-top:20px; }
  .page-home .em-career-grid { grid-template-columns:1fr; }
  .page-home .em-career-copy { padding-left:0; }
}
@media (max-width:600px) {
  .page-home { --em-gutter:20px; }
  .page-home .site-header { height:70px; padding-top:18px !important; }
  .page-home .site-header .main-logo img { width:150px; }
  .page-home .navbar-toggle { top:17px !important; }
  .page-home .tri-hero { min-height:680px; height:84vh; }
  .page-home .tri-title-card { width:calc(100% - 34px); bottom:34px; }
  .page-home .tri-eyebrow { font-size:8px; letter-spacing:.28em; }
  .page-home .tri-headline { font-size:35px; letter-spacing:.085em; }
  .page-home .tri-headline small { font-size:.43em; letter-spacing:.22em; }
  .page-home .tri-actions { gap:13px; margin-top:22px; }
  .page-home .tri-action { font-size:8px; }
  .page-home .tri-action-primary { min-width:144px; }
  .page-home .em-strip-section { padding-top:28px; }
  .page-home .em-strip .dsn-service { grid-template-columns:1fr; }
  .page-home .em-strip .service-item { padding:22px 0; border-left:0; border-top:1px solid rgba(255,255,255,.07); }
  .page-home .em-strip .service-item:first-child { border-top:0; }
  .page-home .em-identity-section { padding:65px 0 70px; }
  .page-home .em-identity-title { font-size:54px; }
  .page-home .em-identity-image--engine { height:390px; }
  .page-home .em-identity-image--street { height:260px; margin-top:-35px; }
  .page-home .em-expertise-section,.page-home .em-projects-section { padding:54px 0; }
  .page-home .em-section-heading--split { display:block; }
  .page-home .em-text-link { margin-top:18px; }
  .page-home .em-expertise-card { height:450px; }
  .page-home .fb-bars { height:446px; }
  .page-home .fb-bar { flex-basis:190px; height:420px; border-radius:12px; }
  .page-home .fb-bar:nth-child(even) { margin-top:16px; }
  .page-home .em-career { padding:52px 0; }
  .page-home .em-career-copy h2 { font-size:35px; }
  .page-home .em-logo-cell { min-height:110px; padding:20px 12px; }
  .page-home .em-home-contact-copy h2 { font-size:18px; letter-spacing:.11em; }
  .page-home .em-home-footer-bottom { padding:16px 0; align-items:flex-start; }
}


/* ============================================================
   PORTFOLIO - ONE grid, not two tiers.
   The old page split "work with frames" from "Also worked on", which read as a
   ranking of how important his role was. It never was: the only real difference
   is whether shots from that job were available to show. So it is one grid now,
   every credit at identical visual weight, and the ONLY distinction stated is a
   quiet "View shots" cue on the entries that have a page behind them.
   Two artwork shapes share the card: 16:9 frames fill it, portrait posters are
   letterboxed on a dark tile so a poster entry is never a smaller entry.
   ============================================================ */
.em-card.is-poster img { object-fit: contain; background: transparent; position: absolute; z-index: 1; }
/* the caption must stay above the artwork; z-index:1 on the img had lifted the
   poster over the title text on every credit card. */
.em-card .em-card-veil { z-index: 3; }
.em-card.is-poster .em-card-veil {
  background: linear-gradient(to top, rgba(6,6,6,.95) 0%, rgba(6,6,6,.72) 55%, rgba(6,6,6,0) 100%);
}
/* the poster's own art, blown up and blurred, fills the landscape card behind it,
   so a portrait credit occupies the card as fully as a 16:9 frame does. */
.em-card.is-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--art);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(.85) brightness(.42);
  transform: scale(1.18);
  z-index: 0;
}
.em-card.is-credit { cursor: default; }
.em-card-more {
  margin-top: 9px;
  font-family: var(--font-code);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-yellow);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.em-card:hover .em-card-more { opacity: 1; }

/* ============================================================
   2026 CINEMATIC INTERIOR SYSTEM
   The homepage established the visual language. This block carries that same
   framing, contrast, pacing and amber/ivory hierarchy through About, Work,
   Reels, Contact and every project record while keeping Enrique's Eras face
   and original voice intact.
   ============================================================ */

:root {
  --heading-font: "Eras", sans-serif;
  --em-ink: #090a0a;
  --em-ink-2: #0d0e0e;
  --em-graphite: #121313;
  --em-panel: #151616;
  --em-ivory: #f0ede5;
  --em-muted: #a4a199;
  --em-dim: #74736e;
  --em-gold: #face36;
  --em-gold-soft: #caa13b;
  --em-line: rgba(211, 167, 62, .20);
  --em-line-soft: rgba(255, 255, 255, .08);
  --em-gutter: clamp(24px, 4.2vw, 72px);
  --em-max: 1380px;
  --em-section: clamp(82px, 8.5vw, 150px);
}

body {
  background: var(--em-ink);
  color: var(--em-muted);
  font-family: var(--body-font);
}

body:not(.page-home) #main_root,
body:not(.page-home) #page_wrapper,
body:not(.page-home) .wrapper {
  background:
    radial-gradient(circle at 82% 17%, rgba(113, 75, 26, .055), transparent 26%),
    radial-gradient(circle at 10% 48%, rgba(53, 66, 74, .045), transparent 30%),
    var(--em-ink);
}

body:not(.page-home) .bg-dots,
body:not(.page-home) .moredots,
body:not(.page-home) [class*="bg-dot"] {
  background-image: none !important;
}

body:not(.is-admin) .social-side,
body:not(.is-admin) #dsn_box_options,
body:not(.is-admin) #line_head {
  display: none !important;
}

.em-site-shell {
  width: min(calc(100% - (var(--em-gutter) * 2)), var(--em-max));
  margin-inline: auto;
}

.em-cinematic-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 166, 61, .18);
  background: #080909;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.em-cinematic-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-frame-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 3, 3, .05), rgba(2, 3, 3, .28)),
    linear-gradient(90deg, rgba(2, 3, 3, .16), transparent 35%, transparent 70%, rgba(2, 3, 3, .18));
}

.em-chapter-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.em-chapter-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--em-gold-soft), transparent);
}

.em-section-intro {
  max-width: 760px;
  margin-bottom: clamp(38px, 5vw, 74px);
}

.em-section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.em-section-intro--center .em-chapter-kicker {
  justify-content: center;
}

.em-section-intro h2,
.em-section-heading h2 {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(42px, 5.1vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.em-section-intro > p:not(.em-chapter-kicker) {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--em-muted);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.75;
}

.em-section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 76px);
  padding-top: 24px;
  border-top: 1px solid var(--em-line);
}

.em-section-heading h2 span,
.em-section-heading h2 strong {
  display: block;
  font-weight: inherit;
}

.em-section-heading h2 strong {
  color: var(--em-ivory);
}

.em-text-link,
.em-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--em-gold);
  font-family: var(--font-code);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.em-text-link i,
.em-outline-button i {
  font-size: 9px;
  transition: transform .3s ease;
}

.em-text-link:hover i,
.em-outline-button:hover i {
  transform: translateX(5px);
}

.em-outline-button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(214, 166, 61, .50);
  color: var(--em-ivory);
  background: rgba(5, 6, 6, .42);
}

.em-outline-button:hover {
  color: var(--em-gold);
  border-color: var(--em-gold);
}

/* ----- Shared overlay header ----- */
body:not(.page-home) .site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 86px;
  padding: 25px var(--em-gutter) 0 !important;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 6, 6, .92), rgba(5, 6, 6, .42) 58%, transparent);
}

body:not(.page-home) .site-header .inner-header {
  width: min(100%, var(--em-max));
  margin-inline: auto;
}

body:not(.page-home) .site-header .main-logo img {
  width: clamp(152px, 12vw, 202px);
  height: auto;
}

body:not(.page-home) .site-header .em-header-links {
  display: flex;
}

body:not(.page-home) .site-header .navbar-toggle {
  top: 23px !important;
}

body:not(.page-home) .site-header .navbar-toggle .toggle-text {
  color: var(--em-ivory);
}

/* ----- Compact cinematic interior hero ----- */
.em-inner-hero {
  position: relative;
  min-height: clamp(450px, 56vh, 650px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px 0 clamp(76px, 8vw, 118px);
  background:
    radial-gradient(circle at 75% 30%, rgba(170, 113, 30, .13), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(59, 77, 87, .11), transparent 34%),
    linear-gradient(135deg, #080909, #111212 52%, #080909);
  border-bottom: 1px solid rgba(214, 166, 61, .14);
}

.em-inner-hero::before,
.em-inner-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.em-inner-hero::before {
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.50), transparent 50%),
    linear-gradient(to top, rgba(0,0,0,.42), transparent 50%);
}

.em-inner-hero::after {
  right: -7vw;
  bottom: -42%;
  width: min(55vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 166, 61, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(214, 166, 61, .012), 0 0 0 145px rgba(214, 166, 61, .008);
}

.em-inner-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 72%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 72%, transparent);
}

.em-inner-hero-content {
  position: relative;
  z-index: 2;
}

.em-inner-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(54px, 7.2vw, 112px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.em-inner-hero-body {
  max-width: 58ch;
  margin: 28px 0 0;
  color: var(--em-muted);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.75;
}

.em-inner-hero .em-text-link {
  margin-top: 27px;
}

.em-inner-scroll {
  position: absolute;
  z-index: 3;
  right: var(--em-gutter);
  bottom: 31px;
  color: var(--em-dim);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.em-inner-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 14px auto 0;
  background: linear-gradient(to bottom, var(--em-gold-soft), transparent);
}

.page-contact .em-inner-hero { min-height: 500px; }
.page-reels .em-inner-hero { min-height: 510px; }
.page-portfolio .em-inner-hero { min-height: 520px; }

/* ============================================================
   ABOUT — one editorial story instead of disconnected theme blocks
   ============================================================ */
.em-about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 14vw, 220px) 0 var(--em-section);
  background:
    radial-gradient(circle at 82% 30%, rgba(144, 69, 30, .12), transparent 31%),
    radial-gradient(circle at 17% 66%, rgba(52, 70, 79, .07), transparent 30%),
    var(--em-ink-2);
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.em-about-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,166,61,.25), transparent);
}

.em-about-hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: start;
}

.em-about-portrait {
  height: min(78vh, 830px);
  min-height: 620px;
}

.em-about-portrait img {
  object-position: center top;
  filter: saturate(.88) contrast(1.04);
}

.em-about-intro {
  padding-top: clamp(56px, 8vw, 110px);
}

.em-about-title {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(57px, 7vw, 108px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: .012em;
  text-transform: uppercase;
}

.em-about-title span,
.em-about-title strong {
  display: block;
}

.em-about-title span {
  color: transparent;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(240, 237, 229, .74);
}

.em-about-title strong {
  color: var(--em-ivory);
  font-weight: 700;
}

.em-about-lede {
  max-width: 51ch;
  margin: 34px 0 28px;
  color: var(--em-muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.78;
}

.em-about-photo-collage {
  position: relative;
  min-height: 390px;
  margin-top: clamp(55px, 7vw, 105px);
}

.em-about-photo {
  position: absolute;
}

.em-about-photo--one {
  inset: 0 22% 12% 0;
  z-index: 2;
}

.em-about-photo--two {
  width: 42%;
  height: 57%;
  right: 0;
  top: -15%;
  z-index: 3;
}

.em-about-photo--three {
  width: 45%;
  height: 46%;
  right: 1%;
  bottom: 0;
  z-index: 4;
}

.em-about-photo img {
  filter: saturate(.83) contrast(1.07) brightness(.90);
}

.em-about-software {
  padding: var(--em-section) 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(110, 75, 28, .08), transparent 31%),
    #0a0b0b;
}

.em-about-software-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .58fr);
  gap: clamp(38px, 6vw, 94px);
  align-items: stretch;
}

.em-software-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--em-line);
  border-left: 1px solid var(--em-line);
}

.em-software-cell {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 25px;
  border-right: 1px solid var(--em-line);
  border-bottom: 1px solid var(--em-line);
  background: rgba(255,255,255,.012);
  transition: background .35s ease, transform .35s ease;
}

.em-software-cell:hover {
  background: rgba(214,166,61,.045);
  transform: translateY(-2px);
}

.em-software-cell img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.25);
  opacity: .82;
}

.em-software-cell h3 {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.em-software-portrait {
  min-height: 610px;
}

.em-software-portrait img {
  object-position: center top;
  filter: saturate(.75) contrast(1.08) brightness(.77);
}

.em-industries-section {
  position: relative;
  padding: var(--em-section) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(57, 69, 75, .07), transparent 55%),
    var(--em-graphite);
}

.em-industries-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--em-line);
  border-bottom: 1px solid var(--em-line);
}

.em-industries-track::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--em-gold-soft), transparent);
  opacity: .55;
}

.em-industry-stop {
  position: relative;
  min-height: 310px;
  padding: 55px clamp(28px, 3.5vw, 56px) 46px;
  border-left: 1px solid var(--em-line-soft);
}

.em-industry-stop:first-child { border-left: 0; }

.em-industry-number {
  position: absolute;
  right: 28px;
  top: 22px;
  color: transparent;
  font-family: var(--heading-font);
  font-size: 68px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(240,237,229,.075);
}

.em-industry-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: var(--em-gold);
  font-size: 24px;
}

.em-industry-stop h3 {
  margin: 0 0 15px;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.em-industry-stop p {
  max-width: 34ch;
  margin: 0;
  color: var(--em-muted);
  font-size: 15px;
  line-height: 1.72;
}

.em-about-expertise {
  padding: var(--em-section) 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(171, 116, 33, .055), transparent 40%),
    #090a0a;
}

.em-about-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
}

.em-about-expertise-card {
  position: relative;
  min-height: clamp(500px, 42vw, 640px);
  overflow: hidden;
  border: 1px solid rgba(214,166,61,.20);
  background: #090909;
}

.em-about-expertise-image,
.em-about-expertise-shade {
  position: absolute;
  inset: 0;
}

.em-about-expertise-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.70);
  transition: transform 1s cubic-bezier(.16,1,.3,1), filter .6s ease;
}

.em-about-expertise-card:hover .em-about-expertise-image {
  transform: scale(1.035);
  filter: saturate(.85) contrast(1.08) brightness(.76);
}

.em-about-expertise-shade {
  background:
    linear-gradient(to top, rgba(4,5,5,.98) 0%, rgba(4,5,5,.86) 34%, rgba(4,5,5,.24) 78%, rgba(4,5,5,.30)),
    linear-gradient(to right, rgba(4,5,5,.42), transparent 58%);
}

.em-about-expertise-number {
  position: absolute;
  top: 31px;
  left: 30px;
  color: transparent;
  font-family: var(--heading-font);
  font-size: clamp(62px, 6vw, 96px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(240,237,229,.13);
}

.em-about-expertise-copy {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 34px;
}

.em-about-expertise-icon {
  display: inline-flex;
  margin-bottom: 19px;
  color: var(--em-gold);
  font-size: 29px;
}

.em-about-expertise-copy h3 {
  margin: 0 0 18px;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.em-about-expertise-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-about-expertise-copy li {
  position: relative;
  margin-top: 8px;
  padding-left: 15px;
  color: #b4b0a7;
  font-size: 14px;
  line-height: 1.45;
}

.em-about-expertise-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 1px;
  background: var(--em-gold-soft);
}

.em-about-projects {
  padding: var(--em-section) 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(54, 70, 78, .07), transparent 57%),
    var(--em-graphite);
}

.em-about-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 46px);
}

.em-about-project-card {
  min-width: 0;
}

.em-about-project-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr);
  align-items: stretch;
  border: 1px solid var(--em-line-soft);
  background: rgba(255,255,255,.012);
}

.em-about-project-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050606;
  border: 1px solid rgba(214,166,61,.14);
}

.em-about-project-card--lead .em-about-project-image {
  aspect-ratio: auto;
  min-height: 520px;
  border: 0;
  border-right: 1px solid var(--em-line-soft);
}

.em-about-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.07) brightness(.82);
  transition: transform .9s cubic-bezier(.16,1,.3,1), filter .6s ease;
}

.em-about-project-image > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,5,5,.55), transparent 55%);
}

.em-about-project-card:hover .em-about-project-image img {
  transform: scale(1.025);
  filter: saturate(.92) contrast(1.07) brightness(.88);
}

.em-about-project-copy {
  position: relative;
  padding: 23px 4px 0;
}

.em-about-project-card--lead .em-about-project-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.em-about-project-index {
  display: block;
  margin-bottom: 12px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .18em;
}

.em-about-project-copy h3 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.em-about-project-copy h3 a { color: var(--em-ivory); }

.em-about-project-copy p {
  margin: 0;
  color: var(--em-muted);
  font-size: 14px;
  line-height: 1.65;
}

.em-about-project-cta {
  min-height: 150px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: clamp(50px, 6vw, 90px);
  border-top: 1px solid var(--em-line);
  border-bottom: 1px solid var(--em-line);
  color: var(--em-ivory);
}

.em-about-project-cta-image {
  align-self: stretch;
  overflow: hidden;
}

.em-about-project-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.68) brightness(.68);
  transition: transform .7s ease;
}

.em-about-project-cta:hover .em-about-project-cta-image img { transform: scale(1.04); }

.em-about-project-cta-copy strong,
.em-about-project-cta-copy small {
  display: block;
}

.em-about-project-cta-copy strong {
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(26px, 3vw, 43px);
  font-weight: 400;
  text-transform: uppercase;
}

.em-about-project-cta-copy small {
  margin-top: 8px;
  color: var(--em-muted);
  font-size: 14px;
}

.em-about-project-cta > i {
  margin-right: 28px;
  color: var(--em-gold);
}

.em-about-cta {
  position: relative;
  min-height: clamp(460px, 58vh, 650px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080909;
}

.em-about-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,5,5,.93) 0%, rgba(4,5,5,.76) 46%, rgba(4,5,5,.32) 100%),
    linear-gradient(to top, rgba(4,5,5,.55), transparent 45%);
}

.em-about-cta > .container {
  position: relative;
  z-index: 3;
  width: min(calc(100% - (var(--em-gutter) * 2)), var(--em-max));
  max-width: none;
  margin-inline: auto;
}

.em-about-cta h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(52px, 6vw, 94px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .025em;
}

.em-about-cta h3 b { color: var(--em-gold); font-weight: 700; }

.em-about-cta p {
  max-width: 55ch !important;
  color: #b2afa7;
  font-size: 16px;
  line-height: 1.7;
}

.em-about-cta .dsn-btn {
  border-color: rgba(214,166,61,.48) !important;
  background: rgba(5,6,6,.44) !important;
}

.em-about-cta .dsn-bg-section img {
  filter: saturate(.68) contrast(1.05) brightness(.72);
}

/* ============================================================
   PORTFOLIO — selected case studies, then an honest credit wall
   ============================================================ */
.em-work-section {
  padding: clamp(62px, 7vw, 112px) 0 var(--em-section);
  background:
    radial-gradient(circle at 76% 15%, rgba(132, 88, 27, .055), transparent 23%),
    var(--em-ink-2);
}

.em-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 38px);
  margin-bottom: clamp(40px, 5vw, 72px);
  padding: 0 0 22px;
  border-bottom: 1px solid var(--em-line-soft);
}

.em-filter button {
  position: relative;
  padding: 0 0 8px;
  border: 0;
  color: #77756f;
  background: transparent;
  font-family: var(--font-code);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

.em-filter button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--em-gold);
  transition: right .35s ease;
}

.em-filter button:hover,
.em-filter button.is-active { color: var(--em-ivory); }
.em-filter button.is-active::after { right: 0; }

.em-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.em-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(214,166,61,.13);
  background: #080909;
}

.em-card.is-filtered,
.em-poster.is-filtered { display: none; }

.em-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(.76) contrast(1.07) brightness(.82);
  transition: transform .85s cubic-bezier(.16,1,.3,1), filter .55s ease;
}

.em-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3,4,4,.94) 0%, rgba(3,4,4,.48) 43%, rgba(3,4,4,.06) 78%);
}

.em-card:hover img {
  transform: scale(1.035);
  filter: saturate(.92) contrast(1.07) brightness(.90);
}

.em-card .em-card-veil {
  position: absolute;
  z-index: 3;
  left: 25px;
  right: 25px;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none !important;
}

.em-card-tag {
  margin-bottom: 9px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.em-card-title {
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1;
  text-transform: uppercase;
}

.em-card-sub {
  margin-top: 7px;
  color: #9d9a92;
  font-size: 13px;
  line-height: 1.35;
}

.em-card-more {
  margin-top: 12px;
  color: var(--em-gold);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s ease, transform .35s ease;
}

.em-card:hover .em-card-more {
  opacity: 1;
  transform: none;
}

.em-credits {
  margin-top: clamp(85px, 10vw, 160px);
  padding-top: 27px;
  border-top: 1px solid var(--em-line);
}

.em-credits[hidden] { display: none; }

.em-credits-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 46px;
}

.em-credits-heading .em-chapter-kicker { margin-bottom: 0; }

.em-credits-heading h2 {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(38px, 4.3vw, 68px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.em-posters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 33px);
}

.em-poster {
  min-width: 0;
}

.em-poster-art {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(214,166,61,.13);
  background: #070808;
}

.em-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,5,5,.35), transparent 50%);
}

.em-poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.70) contrast(1.05) brightness(.80);
  transition: transform .75s ease, filter .5s ease;
}

.em-poster:hover .em-poster-art img {
  transform: scale(1.025);
  filter: saturate(.84) contrast(1.05) brightness(.87);
}

.em-poster-meta { padding-top: 16px; }

.em-poster-title {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.em-poster-sub {
  margin: 8px 0 0;
  color: #87857f;
  font-size: 12px;
  line-height: 1.45;
}

/* ============================================================
   REELS — screening room, not three equal service cards
   ============================================================ */
.em-reels-wrap {
  padding: clamp(66px, 7vw, 112px) 0 var(--em-section);
  background:
    radial-gradient(ellipse at 36% 22%, rgba(134, 89, 29, .08), transparent 31%),
    var(--em-ink-2);
}

.em-reels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(310px, .48fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}

.em-reel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214,166,61,.16);
  background: #0b0c0c;
}

.em-reel-card--lead {
  grid-row: 1 / 3;
}

.em-reel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #050606;
  cursor: pointer;
}

.em-reel-card--lead .em-reel-stage {
  height: 100%;
  min-height: 590px;
  aspect-ratio: auto;
}

.em-reel-stage img,
.em-reel-stage-shade {
  position: absolute;
  inset: 0;
}

.em-reel-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.75);
  transition: transform 1s cubic-bezier(.16,1,.3,1), filter .55s ease, opacity .35s ease;
}

.em-reel-stage-shade {
  z-index: 1;
  background:
    linear-gradient(to top, rgba(3,4,4,.91), rgba(3,4,4,.10) 58%),
    linear-gradient(to right, rgba(3,4,4,.26), transparent 55%);
}

.em-reel-card:hover .em-reel-stage img {
  transform: scale(1.025);
  filter: saturate(.88) contrast(1.08) brightness(.84);
}

.em-reel-index {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 18px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .19em;
}

.em-reel-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(250,206,54,.80);
  border-radius: 50%;
  background: rgba(5,6,6,.40);
  backdrop-filter: blur(5px);
}

.em-reel-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--em-gold);
}

.em-reel-card:not(.em-reel-card--lead) .em-reel-play {
  width: 52px;
  height: 52px;
}

.em-reel-stage iframe {
  position: absolute;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.em-reel-stage.is-playing > img,
.em-reel-stage.is-playing > .em-reel-stage-shade,
.em-reel-stage.is-playing > .em-reel-play,
.em-reel-stage.is-playing > .em-reel-index { opacity: 0; pointer-events: none; }

.em-reel-body {
  position: absolute;
  z-index: 4;
  left: 27px;
  right: 27px;
  bottom: 24px;
  padding: 0;
  pointer-events: none;
  background: none;
}

.em-reel-label {
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.em-reel-role {
  margin: 8px 0 0;
  color: #a8a59d;
  font-family: var(--font-code);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ============================================================
   CONTACT — form and direct details share one dark cinematic frame
   ============================================================ */
.em-contact-section {
  padding: clamp(70px, 8vw, 125px) 0 var(--em-section);
  background:
    radial-gradient(circle at 84% 36%, rgba(139, 92, 28, .10), transparent 30%),
    radial-gradient(circle at 10% 75%, rgba(51, 68, 77, .08), transparent 31%),
    var(--em-ink-2);
}

.em-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  border: 1px solid rgba(214,166,61,.18);
  background: rgba(255,255,255,.012);
  box-shadow: 0 36px 90px rgba(0,0,0,.28);
}

.em-contact-form-panel {
  padding: clamp(37px, 5vw, 72px);
}

.em-contact-form-panel h2 {
  max-width: 12ch;
  margin: 0 0 48px;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}

.em-contact-form-panel h2 strong {
  color: var(--em-gold);
  font-weight: 700;
}

.em-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 27px 34px;
}

.em-contact-field {
  display: block;
}

.em-contact-field--message { grid-column: 1 / -1; }

.em-contact-field > span {
  display: block;
  margin-bottom: 10px;
  color: #8b8983;
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.em-contact-field input,
.em-contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  padding: 9px 0 14px;
  color: var(--em-ivory);
  background: transparent;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}

.em-contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.em-contact-field input::placeholder,
.em-contact-field textarea::placeholder { color: #5f5e5a; }

.em-contact-field input:focus,
.em-contact-field textarea:focus { border-color: var(--em-gold); }

.em-contact-submit {
  min-width: 190px;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  padding: 0 23px;
  border: 1px solid rgba(214,166,61,.58);
  color: var(--em-ivory);
  background: rgba(5,6,6,.48);
  font-family: var(--font-code);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}

.em-contact-submit:hover {
  color: var(--em-gold);
  border-color: var(--em-gold);
  background: rgba(214,166,61,.035);
}

.em-contact-submit:disabled { opacity: .55; cursor: wait; }

.em-contact-feedback {
  min-height: 18px;
  margin-top: 15px;
  color: var(--em-gold);
  font-family: var(--font-code);
  font-size: 10px;
}

.em-contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(34px, 4vw, 58px);
  border-left: 1px solid var(--em-line);
  background:
    linear-gradient(rgba(7,8,8,.87), rgba(7,8,8,.94)),
    radial-gradient(circle at 45% 25%, rgba(214,166,61,.11), transparent 43%);
}

.em-contact-detail {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 35px 0;
  border-bottom: 1px solid var(--em-line-soft);
}

.em-contact-detail:last-child { border-bottom: 0; }

.em-contact-detail-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214,166,61,.32);
  color: var(--em-gold);
}

.em-contact-detail h3 {
  margin: 0 0 8px;
  color: var(--em-ivory);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.em-contact-detail p,
.em-contact-detail a {
  margin: 0;
  color: #aaa79f;
  font-size: 14px;
  line-height: 1.55;
}

.em-contact-detail a:hover { color: var(--em-gold); }

/* ============================================================
   PROJECT RECORDS — retain the case-study structure, improve the edit
   ============================================================ */
.template-project .em-project-hero {
  min-height: clamp(650px, 83vh, 920px);
  padding: 0 !important;
  background: #050606;
}

.template-project .em-project-hero .entry-header,
.template-project .em-project-hero #hero_image,
.template-project .em-project-hero #hero_content {
  min-height: inherit;
}

.template-project .em-project-hero #hero_image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3,4,4,.96) 0%, rgba(3,4,4,.62) 32%, rgba(3,4,4,.10) 68%),
    linear-gradient(to right, rgba(3,4,4,.50), transparent 58%),
    linear-gradient(to bottom, rgba(3,4,4,.60), transparent 25%);
}

.template-project .em-project-hero #hero_image img {
  filter: saturate(.82) contrast(1.05) brightness(.88);
}

.template-project .em-project-hero #hero_content {
  z-index: 4;
  width: min(calc(100% - (var(--em-gutter) * 2)), var(--em-max));
  max-width: none;
  margin-inline: auto;
  padding: 0 0 clamp(65px, 8vw, 116px);
}

.template-project .em-project-hero #hero_content > .content { width: 100%; }

.template-project .em-project-hero #dsn_metas {
  align-items: center;
  gap: 25px;
  margin-bottom: 17px;
  color: #b2afa7;
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.template-project .em-project-hero #dsn_metas .metas { margin: 0 !important; }

.template-project .em-project-hero #hero_title .title {
  max-width: 14ch;
  margin: 0;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(54px, 7.2vw, 112px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: .012em;
  text-transform: uppercase;
}

.template-project .em-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid rgba(214,166,61,.23);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.template-project .em-hero-meta .em-hm {
  min-width: 0;
  padding: 15px 18px;
  border-left: 1px solid rgba(255,255,255,.08);
  color: #a7a49c;
  font-size: 9px;
  letter-spacing: .11em;
}

.template-project .em-hero-meta .em-hm:first-child { border-left: 0; padding-left: 0; }
.template-project .em-hero-meta .em-hm b { display: block; margin-bottom: 6px; color: var(--em-gold-soft); }

.template-project .dsn-scroll-bottom {
  right: var(--em-gutter);
  bottom: 28px;
}

.em-record {
  padding: var(--em-section) 0 clamp(65px, 7vw, 105px);
  background:
    radial-gradient(circle at 78% 25%, rgba(134,89,29,.06), transparent 27%),
    var(--em-ink-2);
}

.em-record > .container {
  width: min(calc(100% - (var(--em-gutter) * 2)), var(--em-max));
  max-width: none;
  margin-inline: auto;
}

.em-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: clamp(55px, 8vw, 128px);
  align-items: start;
}

.em-record-logline {
  max-width: 25ch;
  margin: 0 0 54px;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(31px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.22;
}

.em-block {
  max-width: 70ch;
  margin: 0;
  padding-top: 25px;
  border-top: 1px solid var(--em-line);
}

.em-block-h {
  margin: 0 0 20px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.em-block-p {
  max-width: 65ch;
  margin: 0;
  color: #aaa79f;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.8;
}

.em-record-facts {
  position: sticky;
  top: 30px;
  padding: 13px 31px;
  border: 1px solid rgba(214,166,61,.18);
  background: rgba(255,255,255,.018);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.em-fact {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.em-fact:last-child { border-bottom: 0; }

.em-fact-k {
  color: #77756f;
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.em-fact-v {
  color: var(--em-ivory);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.em-frame-gallery {
  padding: clamp(35px, 4vw, 60px) 0 var(--em-section);
  background: var(--em-ink);
}

.em-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.em-frame {
  min-width: 0;
  margin: 0;
}

.em-frame--wide { grid-column: 1 / -1; }

.em-frame-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(214,166,61,.13);
  background: #050606;
}

.em-frame-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04) brightness(.89);
  transition: transform .85s cubic-bezier(.16,1,.3,1), filter .5s ease;
}

.em-frame-link:hover img {
  transform: scale(1.018);
  filter: saturate(.94) contrast(1.04) brightness(.96);
}

.em-frame-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4,5,5,.22), transparent 42%);
}

.em-frame figcaption {
  margin-top: 11px;
  color: #77756f;
  font-family: var(--font-code);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .08em;
}

.em-project-nav-wrap {
  padding: 0 0 clamp(50px, 6vw, 90px);
  background: var(--em-ink);
}

.em-projnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(214,166,61,.15);
}

.em-projnav a {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 34px 38px;
  background:
    linear-gradient(rgba(5,6,6,.60), rgba(5,6,6,.82)),
    var(--preview) center / cover no-repeat,
    #0c0d0d;
  transition: background-size .65s ease;
}

.em-projnav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--preview);
  background-position: center;
  background-size: cover;
  filter: saturate(.65) brightness(.55);
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .5s ease;
}

.em-projnav a:hover::before {
  transform: scale(1.035);
  filter: saturate(.82) brightness(.64);
}

.em-projnav a.em-next {
  justify-content: flex-end;
  text-align: right;
  border-left: 1px solid rgba(214,166,61,.15);
}

.em-projnav-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(3,4,4,.95), rgba(3,4,4,.18) 74%);
}

.em-pn-copy { position: relative; z-index: 2; }

.em-projnav .em-pn-dir {
  margin-bottom: 10px;
  color: var(--em-gold-soft);
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.em-projnav .em-pn-title {
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(24px, 3vw, 43px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

/* ----- Cinematic footer shared by every page ----- */
.em-site-footer {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #070808 !important;
  border-top: 1px solid rgba(214,166,61,.14);
}

.em-site-footer--interior { padding-top: 0; }

.em-site-footer-cta {
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.em-site-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--em-ivory);
  font-family: var(--heading-font);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.em-site-footer-link i {
  color: var(--em-gold);
  font-size: 14px;
  transition: transform .35s ease;
}

.em-site-footer-link:hover { color: var(--em-gold); }
.em-site-footer-link:hover i { transform: translateX(7px); }

.em-site-footer-bottom {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 17px;
}

.em-site-footer-bottom p {
  margin: 0;
  color: #6f6e69;
  font-family: var(--font-code);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.em-site-footer-bottom p a { color: #888680; }
.em-site-footer-bottom p a:hover { color: var(--em-gold); }

.em-footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.em-footer-socials a {
  color: #aaa79f;
  font-size: 14px;
}

.em-footer-socials a:hover { color: var(--em-gold); }

.page-home .em-site-footer-bottom {
  min-height: 58px;
}

.page-home .em-home-contact-copy h2 {
  font-family: var(--heading-font);
}

/* ----- Responsive interior composition ----- */
@media (max-width: 1120px) {
  .em-about-hero-grid { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 50px; }
  .em-about-portrait { min-height: 560px; }
  .em-about-photo-collage { min-height: 330px; }
  .em-about-software-grid { grid-template-columns: 1fr .48fr; gap: 42px; }
  .em-about-expertise-card { min-height: 530px; }
  .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-posters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .em-reels-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .em-reel-card--lead .em-reel-stage { min-height: 510px; }
  .template-project .em-project-hero #hero_title .title { max-width: 16ch; }
}

@media (max-width: 900px) {
  body:not(.page-home) .site-header .em-header-links { display: none; }
  .em-inner-hero { min-height: 470px; padding-top: 125px; }
  .em-about-hero-grid,
  .em-about-software-grid,
  .em-contact-grid,
  .em-record-grid { grid-template-columns: 1fr; }
  .em-about-portrait { width: min(78vw, 620px); min-height: 660px; height: 76vh; }
  .em-about-intro { padding-top: 0; }
  .em-about-photo-collage { min-height: 440px; }
  .em-software-portrait { min-height: 490px; }
  .em-industries-track { grid-template-columns: 1fr; }
  .em-industry-stop { min-height: 240px; border-left: 0; border-top: 1px solid var(--em-line-soft); }
  .em-industry-stop:first-child { border-top: 0; }
  .em-about-expertise-grid { grid-template-columns: 1fr; }
  .em-about-expertise-card { min-height: 580px; }
  .em-about-project-card--lead { grid-template-columns: 1fr; }
  .em-about-project-card--lead .em-about-project-image { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--em-line-soft); }
  .em-about-project-card--lead .em-about-project-copy { padding: 28px; }
  .em-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-reels-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .em-reel-card--lead { grid-row: auto; }
  .em-reel-card--lead .em-reel-stage { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .em-contact-details { border-left: 0; border-top: 1px solid var(--em-line); }
  .em-contact-detail { max-width: 540px; }
  .template-project .em-hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-project .em-hero-meta .em-hm:nth-child(3) { border-left: 0; }
  .em-record-facts { position: static; }
}

@media (max-width: 680px) {
  :root { --em-gutter: 20px; --em-section: 72px; }
  body:not(.page-home) .site-header { height: 70px; padding-top: 18px !important; }
  body:not(.page-home) .site-header .main-logo img { width: 150px; }
  body:not(.page-home) .site-header .navbar-toggle { top: 17px !important; }
  .em-section-intro h2,
  .em-section-heading h2 { font-size: 39px; }
  .em-section-heading--split { display: block; }
  .em-section-heading--split .em-text-link { margin-top: 22px; }
  .em-inner-hero { min-height: 430px; padding: 115px 0 76px; }
  .em-inner-hero h1 { font-size: 50px; }
  .em-inner-scroll { display: none; }
  .em-about-hero { padding-top: 112px; }
  .em-about-portrait { width: 100%; min-height: 0; height: 118vw; max-height: 690px; }
  .em-about-title { font-size: 52px; }
  .em-about-photo-collage { min-height: 325px; margin-top: 50px; }
  .em-about-photo--one { inset: 0 12% 9% 0; }
  .em-about-photo--two { width: 43%; height: 45%; top: -7%; }
  .em-about-photo--three { width: 48%; height: 40%; }
  .em-software-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-software-cell { min-height: 138px; padding: 20px 12px; }
  .em-software-cell img { width: 45px; height: 45px; }
  .em-software-portrait { min-height: 430px; }
  .em-industry-stop { padding: 46px 25px 35px; }
  .em-about-expertise-card { min-height: 500px; }
  .em-about-expertise-copy { left: 24px; right: 24px; bottom: 27px; }
  .em-about-project-grid { grid-template-columns: 1fr; }
  .em-about-project-card--lead { grid-column: auto; }
  .em-about-project-card--lead .em-about-project-image { min-height: 0; aspect-ratio: 16 / 10; }
  .em-about-project-cta { min-height: 118px; grid-template-columns: 110px 1fr auto; gap: 17px; }
  .em-about-project-cta-copy strong { font-size: 22px; }
  .em-about-project-cta-copy small { display: none; }
  .em-about-project-cta > i { margin-right: 13px; }
  .em-about-cta { min-height: 520px; }
  .em-about-cta h3 { font-size: 48px; }
  .em-grid { grid-template-columns: 1fr; }
  .em-card { aspect-ratio: 16 / 10; }
  .em-credits-heading { display: block; }
  .em-credits-heading h2 { margin-top: 16px; font-size: 39px; }
  .em-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .em-poster-title { font-size: 15px; }
  .em-reel-body { left: 20px; right: 20px; bottom: 18px; }
  .em-reel-label { font-size: 24px; }
  .em-contact-form-panel { padding: 31px 22px 40px; }
  .em-contact-form-panel h2 { font-size: 42px; margin-bottom: 37px; }
  .em-contact-fields { grid-template-columns: 1fr; gap: 23px; }
  .em-contact-field--message { grid-column: auto; }
  .em-contact-details { padding: 24px 22px; }
  .template-project .em-project-hero { min-height: 700px; }
  .template-project .em-project-hero #hero_content { padding-bottom: 72px; }
  .template-project .em-project-hero #hero_title .title { font-size: 49px; max-width: 13ch; }
  .template-project .em-project-hero #dsn_metas { display: block !important; }
  .template-project .em-project-hero #dsn_metas > span { display: block; margin-top: 10px; }
  .template-project .em-hero-meta { grid-template-columns: 1fr 1fr; }
  .template-project .em-hero-meta .em-hm { padding: 13px 10px; }
  .em-record-logline { font-size: 30px; }
  .em-record-facts { padding: 8px 20px; }
  .em-fact { grid-template-columns: 75px 1fr; }
  .em-frame-grid { grid-template-columns: 1fr; }
  .em-frame--wide { grid-column: auto; }
  .em-projnav { grid-template-columns: 1fr; }
  .em-projnav a { min-height: 190px; padding: 27px 24px; }
  .em-projnav a.em-next { border-left: 0; border-top: 1px solid rgba(214,166,61,.15); }
  .em-site-footer-cta { min-height: 145px; }
  .em-site-footer-link { font-size: 25px; }
  .em-site-footer-bottom { align-items: flex-start; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-cinematic-frame img,
  .em-card img,
  .em-poster-art img,
  .em-reel-stage img,
  .em-about-expertise-image,
  .em-frame-link img,
  .em-projnav a::before {
    transition: none !important;
    transform: none !important;
  }
}

.em-filter button:focus-visible,
.em-outline-button:focus-visible,
.em-text-link:focus-visible,
.em-contact-submit:focus-visible,
.em-reel-stage:focus-visible,
.em-projnav a:focus-visible,
.em-site-footer a:focus-visible {
  outline: 2px solid var(--em-gold);
  outline-offset: 4px;
}

/* Header quick links are shared now; retain the same measured spacing off-home. */
body:not(.page-home) .em-header-links {
  margin-left: auto;
  margin-right: 96px;
  align-items: center;
  gap: 38px;
  padding-top: 6px;
  position: relative;
  z-index: 4;
}
body:not(.page-home) .em-header-links a {
  color: rgba(255,255,255,.84);
  font-family: var(--font-code);
  font-size: 10px;
  letter-spacing: .20em;
  text-transform: uppercase;
}
body:not(.page-home) .em-header-links a:hover,
body:not(.page-home) .em-header-links a.is-current { color: var(--em-gold); }
