/* ── DZ Hero styles ── */
@import url('./colors_and_type.css');

.dz-hero *,
.dz-navbar *,
.dz-btn * { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--dz-navy);
  zoom: 0.8;

  /* iOS auto text-size adjustment can shift our explicit responsive type
     when the user rotates the device or pinches. Pin at 100%. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  /* iOS Safari adds a default grey flash on tap. We have our own hover/
     focus styles, kill the default. */
  -webkit-tap-highlight-color: transparent;

  /* Better kerning on supported browsers. */
  text-rendering: optimizeLegibility;
}

/* Touch-device buttons: enlarge tap target without changing visual size,
   for any element under 44×44pt. Uses an invisible ::before overlay. */
@media (hover: none) and (pointer: coarse) {
  .dz-clients__dot,
  .dz-footer__office-toggle.is-active,
  .dz-footer__social a,
  .dz-nav__close,
  .dz-pagination button,
  .dz-aij__step:hover { /* placeholder — keeps rule usable */ }

  .dz-clients__dot::before,
  .dz-footer__social a::before,
  .dz-nav__social a::before,
  .dz-pagination button::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
  }

  .dz-clients__dot,
  .dz-footer__social a,
  .dz-nav__social a,
  .dz-pagination button {
    position: relative;
  }
}

/* ── Buttons ── */
.dz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--dz-radius);
  font-family: var(--dz-font);
  font-size: 15px;
  font-weight: var(--dz-fw-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.dz-btn--sm { padding: 9px 16px; font-size: 13px; }
.dz-btn--aqua {
  background: var(--dz-aqua);
  color: var(--dz-navy);
  box-shadow: 0 6px 24px rgba(79, 200, 244, 0.28);
}
.dz-btn--aqua:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79, 200, 244, 0.4); }
.dz-btn--aqua:active { transform: translateY(0); }
.dz-btn--ghost {
  background: transparent;
  color: var(--dz-white);
  border-color: rgba(255,255,255,0.25);
}
.dz-btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

/* ── Navbar ── */
.dz-navbar {
  /* Fixed so the Navbar stays sticky across every page (was absolute,
     scrolled away with the home hero). Translucent navy bg + blur keeps
     the logo and nav legible over both dark hero AND light services bgs. */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 48px;
  font-family: var(--dz-font);
  background: rgba(26, 45, 62, 0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(79, 200, 244, 0.06);
}
.dz-navbar__logo { display: flex; align-items: center; }
.dz-navbar__logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Invert navy artwork to white for the dark hero navbar */
  filter: brightness(0) invert(1);
}
.dz-navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(10, 18, 32, 0.35);
  border: 1px solid rgba(79, 200, 244, 0.14);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: var(--dz-radius-pill);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 32px -8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dz-navbar__link {
  padding: 9px 16px;
  border-radius: var(--dz-radius-pill);
  font-size: 14px;
  font-weight: var(--dz-fw-regular);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.dz-navbar__link:hover { color: var(--dz-white); background: rgba(255,255,255,0.06); }

/* ── Dropdown nav item (e.g. "Solutions" → TwinMs / TwinMaq) ── */
.dz-navbar__dropdown {
  position: relative;
}
.dz-navbar__link--has-children {
  /* Inherit the same base look as a regular .dz-navbar__link, but it's a
     <button> so reset native button chrome. */
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: var(--dz-fw-regular);
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  padding: 9px 14px;
  border-radius: var(--dz-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.dz-navbar__link--has-children:hover,
.dz-navbar__dropdown.is-open .dz-navbar__link--has-children {
  color: var(--dz-white);
  background: rgba(255,255,255,0.06);
}
.dz-navbar__chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 200ms ease;
}
.dz-navbar__dropdown.is-open .dz-navbar__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Invisible bridge between parent and submenu so the cursor can cross the
   gap without closing the dropdown */
.dz-navbar__dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.dz-navbar__submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(10, 18, 32, 0.86);
  border: 1px solid rgba(79, 200, 244, 0.2);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 22px 48px -14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 200ms ease,
              transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1),
              visibility 0s linear 200ms;
  z-index: 50;
}
.dz-navbar__dropdown.is-open .dz-navbar__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 200ms ease,
              transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dz-navbar__sublink {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: var(--dz-fw-regular);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.dz-navbar__sublink:hover {
  background: rgba(79, 200, 244, 0.12);
  color: var(--dz-white);
}

/* The Solutions parent link is now an <a> (navigates to /solutions/),
   not a <button>. Make sure the link's text-decoration doesn't bleed
   through and that the cursor reads as a link. */
a.dz-navbar__link--has-children {
  text-decoration: none;
  cursor: pointer;
}

.dz-navbar__cta { display: flex; align-items: center; gap: 16px; }
.dz-navbar__iso {
  color: var(--dz-aqua);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dz-navbar__iso::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--dz-aqua);
  box-shadow: 0 0 0 4px rgba(79,200,244,0.18);
}

/* ── Hero ── */
.dz-hero {
  position: relative;
  /* body has zoom: 0.8, which shrinks rendered output to 80% of CSS px.
     To make the hero fill the *actual* viewport, ask for 100vh ÷ 0.8 = 125vh.
     If the body zoom value ever changes, update both numbers in lockstep. */
  min-height: 125vh;
  min-height: 125dvh;        /* dvh handles dynamic mobile UI bars */
  width: 100%;
  overflow: hidden;
  background: var(--dz-navy-deep);
  color: var(--dz-white);
  font-family: var(--dz-font);
  isolation: isolate;
}
.dz-hero__scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 140px; /* leave space for the timeline dock */
  left: 40%;     /* widened by ~100px — extends further into the text column side */
  z-index: 1;
}
/* radial vignette keeps text legible — only tints the left text column */
.dz-hero__vignette {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 42%;
  background:
    linear-gradient(90deg, var(--dz-navy-deep) 0%, rgba(26,45,62,0.7) 50%, rgba(26,45,62,0.1) 85%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.dz-hero__pattern {
  position: absolute; inset: 0;
  background-image: url('../assets/patterns/dz-pattern-dark.svg');
  background-size: 180px 180px;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
  /* fade out from edges so center stays clean for 3D */
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 20%, #000 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 20%, #000 80%);
}

.dz-hero__content {
  position: relative;
  z-index: 3;
  /* Cluster grows with viewport: keeps the laptop layout, expands on big screens */
  max-width: clamp(620px, 38vw, 820px);
  margin: 0;
  padding: clamp(120px, 12vh, 180px) 48px clamp(180px, 18vh, 260px) clamp(72px, 5vw, 140px);
  display: grid;
  gap: clamp(22px, 1.6vw, 32px);
}

.dz-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dz-aqua);
}
.dz-hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--dz-aqua);
  box-shadow: 0 0 0 4px rgba(79,200,244,0.18);
  animation: dz-pulse 2.2s ease-in-out infinite;
}
@keyframes dz-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,200,244,0.18); }
  50% { box-shadow: 0 0 0 10px rgba(79,200,244,0); }
}

.dz-hero__title {
  /* Ceiling raised so the title keeps scaling on wide monitors */
  font-size: clamp(38px, 4.4vw, 88px);
  font-weight: var(--dz-fw-bold);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}
.dz-hero__title-accent {
  color: var(--dz-aqua);
  font-style: normal;
  position: relative;
  display: inline-block;
}
.dz-hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 2px;
  background: linear-gradient(90deg, var(--dz-aqua) 0%, transparent 100%);
  opacity: 0.5;
}

.dz-hero__lead {
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: var(--dz-fw-regular);
  line-height: 1.55;
  color: var(--dz-text-on-dark-muted);
  max-width: clamp(540px, 32vw, 680px);
  text-wrap: pretty;
  margin: 0;
}

.dz-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Service pillars list (below lead) ── */
.dz-hero__pillars {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  max-width: 520px;
}
.dz-hero__pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: var(--dz-fw-regular);
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
}
.dz-hero__pillar-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--dz-aqua);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(79,200,244,0.18);
}

/* ── Lifecycle timeline (bottom dock) ── */
.dz-lifecycle {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(26,45,62,0.55) 0%, rgba(26,45,62,0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(79,200,244,0.18);
  border-radius: var(--dz-radius-lg);
  padding: 18px 22px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.dz-lifecycle__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.dz-lifecycle__eyebrow {
  color: var(--dz-aqua);
  display: block;
  margin-bottom: 6px;
}
.dz-lifecycle__current {
  font-size: 24px;
  font-weight: var(--dz-fw-semibold);
  color: var(--dz-white);
  letter-spacing: -0.01em;
  line-height: 1.1;
  animation: dz-label-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dz-label-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dz-lifecycle__controls { display: flex; gap: 8px; }
.dz-lifecycle__btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--dz-white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.dz-lifecycle__btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.dz-lifecycle__btn--primary {
  background: var(--dz-aqua); color: var(--dz-navy); border-color: transparent;
}
.dz-lifecycle__btn--primary:hover { background: #6fd2f7; transform: scale(1.05); }

.dz-lifecycle__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
}
.dz-step { display: flex; }
.dz-step__btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 8px 10px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: var(--dz-font);
  border-radius: var(--dz-radius-sm);
  transition: background .15s ease;
}
.dz-step__btn:hover { background: rgba(255,255,255,0.04); }
.dz-step__num {
  font-size: 11px;
  font-weight: var(--dz-fw-semibold);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.45);
  transition: color .2s ease;
}
.dz-step__label {
  font-size: 11.5px;
  font-weight: var(--dz-fw-regular);
  line-height: 1.25;
  color: rgba(255,255,255,0.55);
  transition: color .2s ease;
  min-height: 28px;
}
.dz-step__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.dz-step--done .dz-step__bar { background: rgba(79,200,244,0.55); }
.dz-step--done .dz-step__num { color: rgba(79,200,244,0.75); }
.dz-step--done .dz-step__label { color: rgba(255,255,255,0.75); }

.dz-step--active .dz-step__bar {
  background: linear-gradient(90deg, var(--dz-aqua) 0%, var(--dz-aqua) 100%);
  box-shadow: 0 0 12px rgba(79,200,244,0.6);
}
.dz-step--active .dz-step__num { color: var(--dz-aqua); }
.dz-step--active .dz-step__label { color: var(--dz-white); font-weight: var(--dz-fw-semibold); }

.dz-step--active .dz-step__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  animation: dz-bar-shimmer 1.6s ease-in-out infinite;
}
@keyframes dz-bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Bracket callout (services per stage) ── */
.dz-bracket {
  position: absolute;
  top: 150px;
  right: 68px;
  z-index: 2;
  width: 340px;
  padding: 22px 22px 22px 22px;
  pointer-events: auto;
  font-family: var(--dz-font);
  color: var(--dz-white);
  transform: scale(0.7);
  transform-origin: top right;
}

/* Video-frame corner brackets (top-left + bottom-right) */
.dz-bracket__corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--dz-aqua);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.dz-bracket__corner--tl {
  top: 0; left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}
.dz-bracket__corner--br {
  bottom: 0; right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.dz-bracket__head { margin-bottom: 18px; }
.dz-bracket__phase {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  animation: dz-label-in 0.5s cubic-bezier(0.22,1,0.36,1);
}
.dz-bracket__phase-num {
  font-size: 13px;
  font-weight: var(--dz-fw-bold);
  letter-spacing: 0.08em;
  color: var(--dz-aqua);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.dz-bracket__phase-name {
  font-size: 24px;
  font-weight: var(--dz-fw-semibold);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--dz-white);
}
.dz-bracket__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: var(--dz-fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(79,200,244,0.85);
  white-space: nowrap;
}
.dz-bracket__count {
  font-variant-numeric: tabular-nums;
  color: var(--dz-aqua);
  font-size: 10px;
  font-weight: var(--dz-fw-bold);
}

.dz-bracket__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dz-bracket__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(79,200,244,0.04);
  border: 1px solid rgba(79,200,244,0.32);
  border-radius: var(--dz-radius-pill);
  color: var(--dz-white);
  font-size: 13px;
  font-weight: var(--dz-fw-semibold);
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px);
  animation: dz-pill-in 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: background .18s ease, border-color .18s ease;
  cursor: default;
}
.dz-bracket__pill:hover {
  background: rgba(79,200,244,0.14);
  border-color: var(--dz-aqua);
}
.dz-bracket__pill-letter {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(79,200,244,0.16);
  border: 1px solid rgba(79,200,244,0.45);
  color: var(--dz-aqua);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: var(--dz-fw-bold);
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.dz-bracket__pill-name {
  color: var(--dz-aqua);
  flex: 1 1 auto;
  overflow: visible;
}
@keyframes dz-pill-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dz-navbar { padding: 16px 24px; }
  .dz-navbar__nav { display: none; }
  .dz-hero__content { margin-left: 0; padding: 120px 24px 24px 32px; max-width: 100%; }
  .dz-lifecycle { left: 16px; right: 16px; padding: 14px 14px 16px; }
  .dz-lifecycle__steps { grid-template-columns: repeat(4, 1fr); }
  .dz-step:nth-child(n+9) { display: none; }
  /* Bracket: hide on narrow screens — services live in the bottom rail instead */
  .dz-bracket { display: none; }
}
@media (max-width: 640px) {
  .dz-navbar__iso { display: none; }
  .dz-lifecycle__steps { grid-template-columns: repeat(3, 1fr); }
  .dz-step:nth-child(n+4) { display: none; }
  .dz-lifecycle__current { font-size: 20px; }
}

/* ─── Hero · video fallback for WebGL-blocked browsers ──────────────────
   When js/Hero.jsx detects no usable WebGL (missing context OR software-only
   renderer like SwiftShader, common on enterprise-managed Chrome 137+), it
   swaps <BIMScene> for a <video> that plays a recording of the SAME 3D
   scene. Stage clicks seek + play through the recorded transition.
   The recording was captured at 30fps with renderer.setClearColor matching
   the page bg, so the video looks identical to the live WebGL render. ── */
/* Scene container in fallback mode:
   - Solid navy bg so letterbox/pillarbox margins from object-fit:contain
     blend invisibly with the page bg.
   - z-index raised above .dz-hero__vignette and .dz-hero__pattern so the
     video isn't dimmed by the left-column vignette overlay (which is
     designed to darken the empty area behind the WebGL canvas's
     alpha-transparent zones — but in fallback mode the video is opaque
     and doesn't need that compositing). */
.dz-hero__scene--video {
  background: var(--dz-navy-deep, #1A2D3E);
  z-index: 2;
}
.dz-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The recording was made with the camera zoomed out 30% so the entire
     ring fits inside the recorded frame with margin. `contain` preserves
     that aspect, and the .dz-hero__scene--video's navy background fills
     any letterbox/pillarbox margin invisibly. */
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* ── Accessibility ──────────────────────────────────────────────────────
   Skip-to-main link, global focus-visible baseline, and a top-level
   prefers-reduced-motion guard for motion that wasn't already opted in.
   ──────────────────────────────────────────────────────────────────── */

/* Skip-link — first focusable element on every page. WCAG 2.4.1 (Bypass
   Blocks) AA. Visually hidden until keyboard focus moves it to the top
   of the viewport. Click/Enter jumps the cursor to #dz-main and screen
   readers continue from there. */
.dz-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--dz-aqua, #4FC8F4);
  color: var(--dz-navy-deep, #1A2D3E);
  font-family: var(--dz-font, 'Outfit', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: var(--dz-radius, 10px);
  /* Hidden until focused: clip out of view but keep tab-reachable. */
  transform: translateY(-200%);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dz-skip-link:focus,
.dz-skip-link:focus-visible {
  transform: translateY(0);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 200, 244, 0.45), 0 8px 24px rgba(26, 45, 62, 0.4);
}

/* Global focus-visible baseline — every interactive element that lacks an
   explicit :focus-visible rule gets a sane aqua focus ring. Per-component
   rules in home.css override this where they exist (and they should: the
   pill, the lifecycle tick, the FAQ toggle all have richer treatments). */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--dz-aqua, #4FC8F4);
  outline-offset: 3px;
  border-radius: var(--dz-radius-sm, 6px);
}

/* Reduced-motion guard. Targeted, not blanket — heavy/parallax effects
   already opt in via per-section rules in home.css (the cold-open hero,
   the scroll-driven reveals, the FAQ toggle, etc.).  Here we only cap
   scroll-behavior so JS-driven smooth scrolls don't become vestibular,
   and stop the eyebrow's looping pulse animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .dz-hero__eyebrow-dot { animation: none !important; }
}

/* ──────────────────────────────────────────────────────────────────────
   MOBILE NAVIGATION (hamburger + drawer) — added 2026-05-06
   ──────────────────────────────────────────────────────────────────────
   The desktop navbar lays out as logo + nav + cta in a row. On phones
   (<= 900px) the centre nav and the right-side ISO caption + Contact
   button are HIDDEN, replaced by a hamburger that opens a full-width
   drawer with every link.

   Why 900px not 768px: under body{zoom:0.8} (which we keep on phones for
   layout consistency below 700px), 900 CSS px renders ~720 actual px —
   a comfortable point to switch from condensed desktop nav to drawer.
   ─────────────────────────────────────────────────────────────────── */

/* Hamburger button — hidden on desktop, shown on mobile via media query */
.dz-navbar__hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  z-index: 105;
  transition: border-color .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.dz-navbar__hamburger:hover {
  border-color: rgba(79,200,244,0.5);
  background: rgba(79,200,244,0.06);
}
.dz-navbar__hamburger-line {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--dz-text-on-dark, #FFFFFF);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .3s cubic-bezier(.4,0,.2,1);
}
.dz-navbar__hamburger-line:nth-child(1) { top: 14px; }
.dz-navbar__hamburger-line:nth-child(2) { top: 21px; }
.dz-navbar__hamburger-line:nth-child(3) { top: 28px; }

/* Hamburger morphs into X when menu is open */
.dz-navbar.is-mobile-open .dz-navbar__hamburger {
  border-color: rgba(79,200,244,0.5);
}
.dz-navbar.is-mobile-open .dz-navbar__hamburger-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.dz-navbar.is-mobile-open .dz-navbar__hamburger-line:nth-child(2) {
  opacity: 0;
}
.dz-navbar.is-mobile-open .dz-navbar__hamburger-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile drawer — slides down from below the header */
.dz-navbar__mobile {
  position: fixed;
  top: 70px;             /* clears the header */
  left: 0;
  right: 0;
  background: rgba(15, 26, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(79,200,244,0.18);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.55);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility 0s .3s linear;
  z-index: 100;
  display: none;          /* hidden on desktop, flipped on mobile */
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dz-navbar.is-mobile-open .dz-navbar__mobile {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.dz-navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 32px;
}
.dz-navbar__mobile-group {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dz-navbar__mobile-grouplabel {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(79,200,244,0.85);
  padding: 12px 0 4px;
}
.dz-navbar__mobile-link {
  display: block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dz-text-on-dark, #FFFFFF);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: -0.01em;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: rgba(79,200,244,0.18);
  transition: color .2s ease, padding-left .2s ease;
}
.dz-navbar__mobile-link:hover,
.dz-navbar__mobile-link:active {
  color: var(--dz-aqua, #4FC8F4);
  padding-left: 6px;
}
.dz-navbar__mobile-link--parent {
  font-weight: 700;
  font-size: 19px;
  border-bottom: none;
  padding-bottom: 6px;
}
.dz-navbar__mobile-link--child {
  padding-left: 18px;
  font-size: 16.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  border-bottom: none;
}
.dz-navbar__mobile-group .dz-navbar__mobile-link--child:last-child {
  margin-bottom: 6px;
}
.dz-navbar__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 24px;
  background: var(--dz-aqua, #4FC8F4);
  color: var(--dz-navy, #1A2D3E);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, transform .2s ease;
}
.dz-navbar__mobile-cta:hover,
.dz-navbar__mobile-cta:active {
  background: #74D6F8;
  transform: translateY(-1px);
}

/* Backdrop — only visible when drawer is open */
.dz-navbar__backdrop {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 99;
}
.dz-navbar.is-mobile-open .dz-navbar__backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.dz-nav-mobile-open {
  overflow: hidden;     /* prevent page scroll while drawer is open */
}

/* ════════════════════════════════════════════════════════════════════
   THE BREAKPOINT — show hamburger / hide desktop nav at <= 900px
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dz-navbar {
    padding: 14px 20px;
  }
  .dz-navbar__nav,
  .dz-navbar__cta {
    display: none;        /* hide desktop nav and right-side CTA */
  }
  .dz-navbar__hamburger {
    display: block;
    margin-left: auto;
  }
  .dz-navbar__mobile,
  .dz-navbar__backdrop {
    display: block;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   GLOBAL MOBILE OVERRIDES — added 2026-05-06
   ──────────────────────────────────────────────────────────────────────
   The site uses body{zoom:0.8} for desktop layout density. On phones
   (<= 700px) we restore zoom:1 because:

     1. iOS Safari and Android Chrome interpret `zoom` inconsistently
     2. Combined with viewport meta tag, can produce subtle horizontal
        scroll and broken vh calculations
     3. At phone widths, the desktop density isn't relevant — content
        already stacks vertically

   We keep zoom:0.8 between 700-900px (small tablet / large phone in
   landscape) where it still gives useful density. Below 700px, the
   real device pixels drive layout 1:1.
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  body {
    zoom: 1 !important;
  }
  /* Touch target safety — anything that handles a tap should be ≥ 44px tall */
  .dz-btn,
  .dz-navbar__mobile-link,
  .dz-navbar__mobile-cta,
  .dz-navbar__hamburger {
    min-height: 44px;
  }
  /* Body text should not get smaller than 15px on phones for readability */
  body, p {
    font-size: max(15px, 1em);
  }

  /* ─── HERO — mobile reflow ─────────────────────────────────────────
     Desktop layout puts the 3D scene + video absolutely at left:40% so
     it occupies the right ~60% of the viewport. On a phone this collapses
     into a small box hovering beside the CTA buttons. The scene is also
     unnecessary on mobile — the hero copy + CTAs + lifecycle dock are
     enough. Hide the scene, let content + lifecycle stack naturally. */
  .dz-hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .dz-hero__scene,
  .dz-hero__scene--video {
    display: none !important;
  }
  .dz-hero__content {
    max-width: 100%;
    padding: clamp(72px, 11vh, 100px) 20px 28px;
    gap: 16px;
  }
  .dz-hero__title {
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.1;
  }
  .dz-hero__lead {
    font-size: 15px;
    line-height: 1.55;
  }
  .dz-hero__ctas {
    flex-wrap: wrap;
    gap: 10px;
  }
  .dz-hero__ctas .dz-btn {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }

  /* ─── LIFECYCLE — flow + swipeable stage cards ─────────────────────
     Desktop has the lifecycle as an absolute-positioned dock with a
     fixed 11-column grid. On mobile, lift it out of absolute positioning
     and convert the grid to a horizontal scroll-snap row that swipes
     natively under iOS Safari + Android Chrome (no JS, no library). */
  .dz-lifecycle {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 12px 28px;
    padding: 14px 12px 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dz-lifecycle__head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }
  .dz-lifecycle__current {
    font-size: 18px;
  }
  .dz-lifecycle__controls {
    align-self: flex-end;
  }

  /* THE FIX — grid → swipeable flex row */
  .dz-lifecycle__steps {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding: 4px 0;
    /* edge bleed so first / last cards align with the panel edge */
    margin-inline: -4px;
    padding-inline: 4px;
    scroll-padding-inline: 4px;
  }
  .dz-lifecycle__steps::-webkit-scrollbar {
    display: none;
  }
  .dz-step {
    flex: 0 0 28%;          /* ~3.5 cards visible — peek tells user "swipe" */
    scroll-snap-align: start;
    min-width: 96px;
    max-width: 132px;
  }
  .dz-step__btn {
    width: 100%;
    box-sizing: border-box;
  }
}
