/* ============================================================
   /home-v2 (sandbox) hero, 2026.10.12. Matches the live home hero:
   dark video ground, centred wide caps "Your expertise." with the
   mustard serif reply, a white ask bar that sends the question to
   the new chat widget (de-chat-test.js), the demo line, then the
   intro. Self-contained: the sandbox has no dx stylesheets.
   The nav, preview bar and old widget rules at the end apply only
   on a page that has this hero (body:has(.dxh)), so other sandbox
   pages are unchanged.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,700&family=Epilogue:wght@400;500;600&family=Instrument+Serif:ital@1&display=swap");

.dxh {
  --dxh-cream: #EDE4D3;
  --dxh-cream-70: rgba(237, 228, 211, 0.72);
  --dxh-mustard: #E3C860;
  --dxh-wine: #651C32;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 24px 96px;
  background: #0d0a08;
  color: var(--dxh-cream);
  text-align: center;
}

.dxh .de-bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dxh .de-bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 1;
}
.dxh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 10, 8, 0.45) 0%, rgba(14, 10, 8, 0.25) 40%, rgba(14, 10, 8, 0.80) 100%);
  pointer-events: none;
}

.dxh-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; }

.dxh .dxh-title {
  margin: 0 auto;
  font-family: "Archivo", "Work Sans", system-ui, sans-serif;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--dxh-cream);
  text-wrap: balance;
}
.dxh .dxh-title span { display: block; }
.dxh .dxh-title .dxh-reply {
  margin-top: 0.14em;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: normal;
  font-size: 0.6em;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--dxh-mustard);
}

/* Ask bar */
.dxh .dxh-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(700px, 100%);
  height: 70px;
  margin: clamp(32px, 3vw, 44px) auto 0;
  padding: 7px 7px 7px 24px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dxh .dxh-ask input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: "Epilogue", "Work Sans", system-ui, sans-serif;
  font-size: 18px;
  color: #3E0B19;
  box-shadow: none;
}
.dxh .dxh-ask input::placeholder { color: rgba(62, 11, 25, 0.55); opacity: 1; }
.dxh .dxh-ask button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dxh-wine);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dxh .dxh-ask button:hover { background: #3E0B19; transform: translateY(-1px); }
.dxh .dxh-ask button svg { width: 20px; height: 20px; }
.dxh .dxh-ask:focus-within { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(227, 200, 96, 0.6); }

.dxh .dxh-alt {
  margin: 14px 0 0;
  font-family: "Epilogue", "Work Sans", system-ui, sans-serif;
  font-size: 14px;
  color: var(--dxh-cream-70);
}
.dxh .dxh-alt a { color: var(--dxh-cream); text-decoration: underline; text-underline-offset: 3px; }

.dxh .dxh-intro {
  max-width: 44ch;
  margin: 28px auto 0;
  font-family: "Epilogue", "Work Sans", system-ui, sans-serif;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--dxh-cream-70);
  text-wrap: balance;
}

.dxh .dxh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  .dxh { min-height: 88svh; padding-top: 120px; }
  .dxh .dxh-ask { height: 60px; padding-left: 18px; }
  .dxh .dxh-ask input { font-size: 16px; }
  .dxh .dxh-ask button { width: 46px; height: 46px; }
}

/* --- Nav: the live site's floating green pill (this page only) --- */
html body:has(.dxh) .de-header,
html body:has(.dxh) .de-header.is-scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  padding-top: 14px !important;
  padding-bottom: 0 !important;
}
html body:has(.dxh) .de-header > .de-wrap {
  background: #15301F;
  height: 68px !important;
  min-height: 0 !important;
  border-radius: 14px;
  padding-left: 20px;
  padding-right: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
html body:has(.dxh) .de-header .de-logo,
html body:has(.dxh) .de-header .de-nav > a:not(.de-cta),
html body:has(.dxh) .de-header a.de-nav-trigger { color: #EDE4D3 !important; }
html body:has(.dxh) .de-header .de-logo svg,
html body:has(.dxh) .de-header .de-logo svg * { fill: #EDE4D3 !important; }
html body:has(.dxh) .de-header .de-nav,
html body:has(.dxh) .de-header .de-nav a,
html body:has(.dxh) .de-header .de-nav-trigger {
  font-family: "Epilogue", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}
html body:has(.dxh) .de-header .de-nav { align-items: center; }
html body:has(.dxh) .de-header .de-nav-item { display: flex; align-items: center; }
html body:has(.dxh) .de-header .de-nav > a:not(.de-cta),
html body:has(.dxh) .de-header a.de-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}
html body:has(.dxh) .de-header .de-nav a.de-cta {
  background: #EDE4D3 !important;
  border-color: #EDE4D3 !important;
  color: #15301F !important;
}
html body:has(.dxh) .de-header .de-nav-toggle span { background: #EDE4D3 !important; }
@media (max-width: 900px) {
  html body:has(.dxh) .de-header { padding-left: 12px; padding-right: 12px; }
  html body:has(.dxh) .de-header > .de-wrap { height: 60px !important; }
}

/* --- Preview bar: a small badge bottom left so the hero sits
       straight under the nav, as on the live site --- */
html body:has(.dxh) .de-preview-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  background: #E3C860;
  color: #3E0B19;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}
html body:has(.dxh) .de-preview-bar .de-wrap { display: flex; gap: 12px; align-items: center; padding: 0 !important; max-width: none; }
html body:has(.dxh) .de-preview-bar a { color: #3E0B19; }

/* --- Old "Ask us anything / Online now" widget: hidden here so the
       new chat widget is the only one on the page (Nick, 12 Oct) --- */
html body:has(.dxh) .de-ask-widget-root { display: none !important; }
