/* Base and shared components for pages on the new templates. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mdz {
  margin: 0;
  background: var(--mdz-white);
  color: var(--mdz-ink);
  font: 400 var(--mdz-fs-body)/1.6 var(--mdz-font);
  -webkit-font-smoothing: antialiased;
}

body.mdz--dark {
  background: var(--mdz-night-abyss);
}

.mdz-main {
  display: block;
  overflow: clip;
  background: var(--mdz-white);
}

.mdz-main:focus {
  outline: none;
}

:where(.mdz-main) a {
  color: inherit;
  text-decoration: none;
}

:where(.mdz-main) img {
  max-width: 100%;
}

.mdz-main :focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: var(--mdz-focus);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.mdz-wrap {
  width: 100%;
  max-width: var(--mdz-wrap);
  margin-inline: auto;
  padding-inline: var(--mdz-gutter);
}

.mdz-section {
  position: relative;
  padding-block: var(--mdz-section-y);
}

.mdz-section--white {
  background: var(--mdz-white);
  color: var(--mdz-ink);
}

.mdz-section--lavender {
  background: var(--mdz-lavender);
  color: var(--mdz-ink);
}

.mdz-section--night {
  background: var(--mdz-night);
  color: var(--mdz-white);
}

.mdz-h1 {
  font-size: var(--mdz-fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--mdz-track-display);
}

.mdz-h2 {
  font-size: var(--mdz-fs-h2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: var(--mdz-track-tight);
}

.mdz-lead {
  max-width: 600px;
  font-size: 20px;
  font-weight: 300;
}

.mdz-mono {
  font-family: var(--mdz-font-mono);
}

.mdz-eyebrow {
  font-family: var(--mdz-font-mono);
  font-size: 12px;
  letter-spacing: var(--mdz-track-label);
  color: var(--mdz-muted-soft);
}

.mdz-section--night .mdz-eyebrow,
.mdz-on-night .mdz-eyebrow {
  color: var(--mdz-muted-night-soft);
}

.mdz-clock {
  color: var(--mdz-neon-core);
  font-family: var(--mdz-font-mono);
  text-shadow: 0 0 8px rgba(190, 150, 255, .9), 0 0 24px rgba(150, 90, 255, .7);
}

.mdz-glow {
  color: var(--mdz-purple);
  text-shadow: 0 0 10px rgba(150, 90, 255, .5);
}

.mdz-glow--night {
  color: var(--mdz-neon-core);
  text-shadow: 0 0 6px rgba(190, 150, 255, .9), 0 0 16px rgba(150, 90, 255, .65);
}

.mdz-dot {
  display: inline-block;
  width: .17em;
  height: .17em;
  margin-inline-start: .05em;
  border-radius: 50%;
  background: var(--mdz-purple);
}

.mdz-dot--night {
  background: var(--mdz-neon);
  box-shadow: 0 0 12px var(--mdz-neon);
}

.mdz-outline {
  -webkit-text-stroke: 1.5px currentColor;
  font-weight: 900;
  line-height: .8;
}

@keyframes mdz-caret {
  50% {
    opacity: 0;
  }
}

.mdz-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: currentColor;
  vertical-align: -2px;
  animation: mdz-caret 1s steps(1) infinite;
}

.mdz-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--mdz-purple);
  color: var(--mdz-purple-deep);
  font-weight: 500;
}

.mdz-link--night {
  min-height: 48px;
  padding-inline: 4px;
  border-bottom-color: var(--mdz-neon);
  color: var(--mdz-white);
}

.mdz-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
}

.mdz-svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius);
  background: var(--mdz-white);
  transition: border-color var(--mdz-speed), transform var(--mdz-speed);
}

.mdz-on-night .mdz-svc {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

.mdz-svc:hover {
  border-color: var(--mdz-neon);
  box-shadow: var(--mdz-glow-hover);
  transform: translateY(-1px);
}

.mdz-svc__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--mdz-radius-s);
  background: var(--mdz-white);
  color: var(--mdz-purple);
}

.mdz-svc__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mdz-svc__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.mdz-svc__name {
  font-size: 15px;
  font-weight: 700;
}

.mdz-svc__line {
  font-size: 12.5px;
  opacity: .8;
}

.mdz-svc__arrow {
  opacity: .7;
  transition: transform var(--mdz-speed), opacity var(--mdz-speed);
}

.mdz-svc:hover .mdz-svc__arrow {
  opacity: 1;
  transform: translateX(-4px);
}

.mdz-svc--flag {
  grid-column: 1 / -1;
  border-color: var(--mdz-neon);
  box-shadow: var(--mdz-glow-soft);
}

.mdz-svc--flag .mdz-svc__icon,
.mdz-svc--loop .mdz-svc__icon {
  background: var(--mdz-lavender-tint);
}

.mdz-svc--loop {
  border-style: dashed;
}

.mdz-aside {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius);
  background: var(--mdz-lavender-soft);
  color: var(--mdz-ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}

.mdz-aside__label {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 4px 9px;
  border-radius: var(--mdz-radius-pill);
  background: var(--mdz-lavender-tint);
  color: var(--mdz-purple-deep);
  font: 500 11px/1.2 var(--mdz-font-mono);
  letter-spacing: .1em;
}

.mdz-on-night .mdz-aside {
  border-color: rgba(185, 140, 255, .28);
  background: rgba(255, 255, 255, .06);
  color: var(--mdz-neon-mist);
}

.mdz-on-night .mdz-aside__label {
  background: rgba(185, 140, 255, .2);
  color: #f0e4ff;
}

.mdz-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 11px;
  border: 1px solid #e7e2ef;
  border-radius: var(--mdz-radius-pill);
  background: var(--mdz-white);
  box-shadow: var(--mdz-shadow-float);
  color: #3d3b44;
  font: 500 10px/1 var(--mdz-font-mono);
  letter-spacing: .06em;
  white-space: nowrap;
}

.mdz-platform svg {
  flex-shrink: 0;
}

.mdz-platform__spark {
  color: var(--mdz-purple);
}

.mdz-platform__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mdz-purple);
}

.mdz-note {
  color: var(--mdz-muted-soft);
  font: 400 11px/1.4 var(--mdz-font-mono);
  letter-spacing: .06em;
}

.mdz-card {
  border: 1px solid var(--mdz-line-soft);
  border-radius: var(--mdz-radius-m);
  background: var(--mdz-white);
  box-shadow: var(--mdz-shadow-card);
  color: var(--mdz-ink);
}

.mdz-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-pill);
  background: transparent;
  color: var(--mdz-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--mdz-speed), border-color var(--mdz-speed), color var(--mdz-speed);
}

.mdz-chip[aria-pressed="true"] {
  border-color: var(--mdz-neon);
  background: var(--mdz-lavender-tint);
  color: var(--mdz-purple-deep);
  box-shadow: 0 0 14px rgba(185, 140, 255, .6);
}

.mdz-chip--night {
  border-color: rgba(255, 255, 255, .3);
  color: var(--mdz-white);
}

.mdz-chip--night[aria-pressed="true"] {
  border-color: var(--mdz-neon);
  background: var(--mdz-neon);
  color: var(--mdz-night);
}

.mdz-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--mdz-radius-pill);
  background: var(--mdz-lavender-tint);
  color: var(--mdz-purple-deep);
  font: 400 11px/1.6 var(--mdz-font-mono);
}

.mdz-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mdz-white);
  font-weight: 800;
}

.mdz-tool--night {
  background: rgba(255, 255, 255, .06);
  color: var(--mdz-neon-mist);
}

.mdz-tool--night img {
  filter: grayscale(1) brightness(1.6) opacity(.75);
  transition: filter .3s;
}

.mdz-tool--night:hover img {
  filter: none;
}

.mdz-browser {
  overflow: hidden;
  border-radius: var(--mdz-radius);
  background: var(--mdz-white);
  color: var(--mdz-ink);
}

.mdz-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mdz-line-soft);
  background: #f6f4fa;
}

.mdz-browser__dots {
  display: flex;
  gap: 5px;
}

.mdz-browser__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcd7e6;
}

.mdz-browser__url {
  flex: 1;
  padding: 3px 0;
  border-radius: 6px;
  background: var(--mdz-white);
  color: var(--mdz-muted-soft);
  font: 400 11px/1.4 var(--mdz-font-mono);
  text-align: center;
}

.mdz-browser__url svg {
  margin-inline-end: 5px;
  vertical-align: -1px;
}

.mdz-glow-under {
  fill: none;
  stroke-width: 7px;
  stroke-opacity: .22;
  stroke-linecap: round;
}

.mdz-moon {
  position: absolute;
  top: 6%;
  left: 8%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(185, 140, 255, .16), rgba(116, 67, 182, .05) 44%, transparent 70%);
  opacity: .6;
  pointer-events: none;
  animation: mdz-moon 18s ease-in-out infinite alternate;
}

@keyframes mdz-moon {
  to {
    opacity: .85;
    transform: translate3d(6px, -10px, 0) scale(1.04);
  }
}

.mdz-orb {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(116, 67, 182, .5), rgba(116, 67, 182, 0));
  pointer-events: none;
}

.mdz-marquee {
  --mdz-marquee-fade: var(--mdz-white);
  position: relative;
  overflow: hidden;
}

.mdz-marquee::before,
.mdz-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 12%;
  pointer-events: none;
}

.mdz-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--mdz-marquee-fade), transparent);
}

.mdz-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--mdz-marquee-fade), transparent);
}

.mdz-marquee__track {
  display: flex;
  width: max-content;
  animation: mdz-marquee var(--mdz-marquee-duration, 120s) linear infinite;
  will-change: transform;
}

.mdz-marquee__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-offscreen .mdz-marquee__track {
  animation-play-state: paused;
}

.mdz-marquee__item {
  position: relative;
  flex-shrink: 0;
  padding-inline-end: 72px;
}

.mdz-marquee__logo {
  display: block;
  max-width: none;
}

.mdz-marquee__logo--color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .35s;
}

.mdz-marquee__item:hover .mdz-marquee__logo--color {
  opacity: 1;
}

@keyframes mdz-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.mdz-cta {
  position: relative;
  overflow: hidden;
  background: var(--mdz-night);
  color: var(--mdz-white);
}

.mdz-cta__glow {
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(116, 67, 182, .5), rgba(116, 67, 182, 0));
  pointer-events: none;
}

.mdz-cta__jelly {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  opacity: .5;
}

.mdz-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
  padding-block: 120px;
}

.mdz-cta__time {
  font-size: 16px;
  letter-spacing: .1em;
}

.mdz-cta__title {
  margin-top: 14px;
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}

.mdz-cta__text {
  max-width: 480px;
  margin-top: 22px;
  color: var(--mdz-muted-night);
}

.mdz-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.mdz-cta__message {
  margin-top: 6px;
  color: var(--mdz-muted-night-soft);
  font-size: 12px;
}

/* Name card used until approved portraits exist */

.mdz-person {
  padding: 26px 24px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-white);
}

.mdz-person__initial {
  width: 56px;
  height: 56px;
  background: var(--mdz-lavender-tint);
  color: var(--mdz-purple-deep);
  font-size: 22px;
}

.mdz-person--photo {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

.mdz-person__photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-lavender-tint);
}

.mdz-person__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdz-person__photo::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mdz-purple);
  box-shadow: 0 0 10px rgba(150, 90, 255, .8);
}

.mdz-person__name {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 800;
}

.mdz-person__role {
  color: var(--mdz-muted);
  font-size: 16px;
}

/* Placeholders that still wait for an owner decision stay visible on review only */

.mdz-pending {
  padding: 0 .2em;
  border-radius: 4px;
  background: #fff3c4;
  color: #5a4500;
}

@media (max-width: 900px) {
  .mdz-svc-grid,
  .mdz-cta__inner {
    grid-template-columns: 1fr;
  }

  .mdz-cta__inner {
    gap: 32px;
    padding-block: 84px;
  }

  .mdz-cta__jelly {
    display: none;
  }

  .mdz-hide-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdz-moon,
  .mdz-marquee__track,
  .mdz-caret {
    animation: none;
  }

  .mdz-marquee__track {
    width: auto;
    will-change: auto;
  }

  .mdz-marquee::before,
  .mdz-marquee::after {
    display: none;
  }

  .mdz-marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 0;
    width: 100%;
  }

  .mdz-marquee__set[aria-hidden="true"] {
    display: none;
  }

  .mdz-svc,
  .mdz-btn,
  .mdz-header__cta {
    transition: none;
  }
}

/* Lead form states shared by the home and contact forms */

.mdz-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mdz-lead-form__error {
  display: block;
  margin-top: 4px;
  color: #ffb4c4;
  font-size: 14px;
}

.mdz-section--white .mdz-lead-form__error,
.mdz-section--lavender .mdz-lead-form__error {
  color: #b3123a;
}

.mdz-lead-form__status:empty {
  display: none;
}

.mdz-lead-form__status {
  font-weight: 500;
}

.mdz-lead-form [aria-invalid="true"] {
  border-color: #ff8fa8;
}

.mdz-lead-form button[type="submit"]:disabled {
  cursor: progress;
  opacity: .7;
}

.mdz-industry-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 28px;
}

/* Deep water: ambient layers. Each one runs only while it is on screen (mdz-motion.js adds .is-live). */

:has(> .mdz-deep) {
  isolation: isolate;
}

.mdz-deep {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

.mdz-deep__snow {
  position: absolute;
  inset: -240px 0 0;
  background-image:
    radial-gradient(circle, rgba(230, 215, 255, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(230, 215, 255, .35) 0 1.4px, transparent 2px);
  background-position: 0 0, 70px 90px;
  background-size: 140px 240px, 230px 240px;
  opacity: .55;
  animation: mdz-snow 48s linear infinite paused;
  will-change: transform;
}

.mdz-deep__far {
  position: absolute;
  width: 34px;
  opacity: .22;
  animation: mdz-far 26s ease-in-out infinite alternate paused;
  will-change: transform;
}

.mdz-deep__far svg {
  display: block;
  width: 100%;
  height: auto;
}

.mdz-deep__rays {
  position: absolute;
  inset-inline: 0;
  height: 900px;
  background: repeating-linear-gradient(104deg, rgba(255, 255, 255, 0) 0 90px, rgba(255, 255, 255, .07) 120px 150px, rgba(255, 255, 255, 0) 190px 300px);
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  animation: mdz-rays 16s ease-in-out infinite alternate paused;
  will-change: transform, opacity;
}

.mdz-deep__caustics {
  position: absolute;
  inset: 0 -360px -360px 0;
  background: url("../img/caustics.svg") 0 0 / 360px 360px;
  opacity: .045;
  animation: mdz-caustics 120s linear infinite paused;
  will-change: transform;
}

.mdz-deep__bubble {
  position: absolute;
  bottom: -20px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(201, 166, 255, .45);
  border-radius: 50%;
  animation: mdz-bubble 14s linear infinite paused;
  will-change: transform, opacity;
}

.is-live.mdz-deep__snow,
.is-live.mdz-deep__far,
.is-live.mdz-deep__rays,
.is-live.mdz-deep__caustics,
.is-live .mdz-deep__snow,
.is-live .mdz-deep__caustics,
.is-live .mdz-deep__bubble {
  animation-play-state: running;
}

@keyframes mdz-snow {
  to {
    transform: translate3d(0, 240px, 0);
  }
}

@keyframes mdz-far {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(8px, -26px, 0);
  }

  100% {
    transform: translate3d(-6px, -48px, 0);
  }
}

@keyframes mdz-rays {
  to {
    opacity: .75;
    transform: translate3d(-40px, 0, 0);
  }
}

@keyframes mdz-caustics {
  to {
    transform: translate3d(-360px, -360px, 0);
  }
}

@keyframes mdz-bubble {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  10% {
    opacity: .8;
  }

  100% {
    opacity: 0;
    transform: translate3d(14px, -640px, 0);
  }
}

/* Entrance: only once the script has confirmed it can reveal (root .mdz-rvon), so content never
   stays hidden without JS or with reduced motion. Keyframes rather than transitions, because sections
   below the fold are skipped by content-visibility and a transition has no starting style there. */

.mdz-rvon .mdz-reveal:not(.is-in),
.mdz-rvon .mdz-reveal-mock:not(.is-in) {
  opacity: 0;
}

.mdz-rvon .mdz-reveal.is-in {
  animation: mdz-rise .9s var(--mdz-ease) calc(var(--d, 0) * 80ms) both;
}

.mdz-rvon .mdz-reveal-mock.is-in {
  animation: mdz-rise-mock 1.2s var(--mdz-ease) .15s both;
}

.mdz-rvon .mdz-reveal.is-in .mdz-glow--night {
  animation: mdz-ignite-night 1.6s ease calc(var(--d, 0) * 80ms + .35s) both;
}

.mdz-rvon .mdz-reveal.is-in .mdz-glow {
  animation: mdz-ignite 1.6s ease calc(var(--d, 0) * 80ms + .35s) both;
}

.mdz-rvon .is-instant.is-in,
.mdz-rvon .is-instant.is-in .mdz-glow,
.mdz-rvon .is-instant.is-in .mdz-glow--night {
  animation: none;
}

@keyframes mdz-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
}

@keyframes mdz-rise-mock {
  from {
    opacity: 0;
    transform: translate3d(-36px, 30px, 0) scale(.965);
  }
}

@keyframes mdz-ignite-night {
  from {
    color: #bdb3e0;
    text-shadow: none;
  }
}

@keyframes mdz-ignite {
  from {
    color: #9a86c4;
    text-shadow: none;
  }
}

/* On phones the snow and the caustics are drawn at half size and scaled up on the GPU: a quarter of
   the pixels in the layer, and half the density, which is what a small screen needs anyway. */
@media (max-width: 900px) {
  .mdz-deep__far,
  .mdz-deep__rays {
    display: none;
  }

  .mdz-deep__snow {
    inset: auto;
    top: -480px;
    left: 0;
    width: 50%;
    height: calc(50% + 240px);
    transform: scale(2);
    transform-origin: 0 0;
    animation-name: mdz-snow-lite;
  }

  .mdz-deep__caustics {
    inset: auto;
    top: 0;
    left: 0;
    width: calc(50% + 360px);
    height: calc(50% + 360px);
    transform: scale(2);
    transform-origin: 0 0;
    animation-name: mdz-caustics-lite;
  }
}

@keyframes mdz-snow-lite {
  from {
    transform: scale(2) translate3d(0, 0, 0);
  }

  to {
    transform: scale(2) translate3d(0, 240px, 0);
  }
}

@keyframes mdz-caustics-lite {
  from {
    transform: scale(2) translate3d(0, 0, 0);
  }

  to {
    transform: scale(2) translate3d(-360px, -360px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdz-deep__snow,
  .mdz-deep__far,
  .mdz-deep__rays,
  .mdz-deep__caustics,
  .mdz-deep__bubble {
    animation: none;
  }
}

.mdz-marquee__set--static {
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 0;
}

/* ---------- Deep-water hero for the inner pages ---------- */

.mdz-deep-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(640px, 100svh);
  overflow: clip;
  background: linear-gradient(180deg, #07071a 0%, #111333 100%);
  color: var(--mdz-white);
}

.mdz-deep-hero__moon {
  top: 70px;
  left: 4%;
  z-index: -1;
}

.mdz-deep-hero__jelly {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 50%;
}

.mdz-deep-hero__jelly .mdz-jelly {
  position: absolute;
  inset: 0;
}

.mdz-deep-hero__ghost {
  display: none;
}

.mdz-deep-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  width: 100%;
  padding-top: calc(98px + 40px);
  padding-bottom: 180px;
  box-sizing: border-box;
}

.mdz-deep-hero__grid--single {
  grid-template-columns: minmax(0, 780px);
}

.mdz-deep-hero__kicker {
  color: var(--mdz-muted-night-soft);
  font-size: 12px;
  letter-spacing: .14em;
}

.mdz-deep-hero__title {
  margin-top: 18px;
  color: var(--mdz-white);
  font-size: clamp(44px, 5.2vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--mdz-track-display);
}

.mdz-deep-hero__lead {
  max-width: 620px;
  margin-top: 24px;
  color: #cfc8ea;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.mdz-deep-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.mdz-deep-hero__proof-label {
  color: #a9a3c9;
  font-size: 11px;
  letter-spacing: .12em;
}

.mdz-deep-hero__proof-names {
  color: var(--mdz-neon-mist);
  font-size: 15px;
}

.mdz-deep-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mdz-deep-hero__wa svg {
  flex: none;
}

/* The rise to white: the next section starts where the water ends. */
.mdz-deep-hero__surface {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(17, 19, 51, 0) 0%, rgba(233, 227, 250, .65) 62%, var(--mdz-white) 100%);
  pointer-events: none;
}

.mdz-deep-hero__surface svg {
  position: absolute;
  inset: auto 0 52px;
  width: 100%;
  height: 60px;
}

.mdz-deep-hero__visual {
  position: relative;
}

/* Short variant (מדוזה+ and articles): 60% of the screen, no large jellyfish. */
.mdz-deep-hero--short {
  min-height: max(420px, 60svh);
}

.mdz-deep-hero--short .mdz-deep-hero__grid {
  padding-bottom: 150px;
}

@media (max-width: 900px) {
  .mdz-deep-hero {
    justify-content: flex-start;
    min-height: 88svh;
  }

  .mdz-deep-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: calc(80px + 28px);
    padding-bottom: 150px;
  }

  .mdz-deep-hero__title {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .mdz-deep-hero__lead {
    font-size: 18px;
  }

  /* A still silhouette behind the title instead of the canvas. */
  .mdz-deep-hero__ghost {
    position: absolute;
    top: 70px;
    left: -8%;
    z-index: -1;
    display: block;
    width: 70%;
    opacity: .28;
  }

  .mdz-deep-hero__ghost .mdz-deep__far {
    position: static;
    display: block;
    width: 100%;
    opacity: .35;
    animation: none;
  }

  .mdz-deep-hero__ctas .mdz-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* Tall enough for the content with any font, so the section after it never moves. */
  .mdz-deep-hero--short {
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdz-deep-hero__moon {
    animation: none;
  }
}

/* CRM: the panel, smaller and turned toward the reader. */
.mdz-deep-hero__visual--tilt {
  transform: perspective(1600px) rotateY(12deg) rotateX(3deg) scale(.94);
  transform-origin: left center;
}

/* Software: the snippet from the home page door, typed once. */
.mdz-deep-code {
  margin: 0;
  justify-self: center;
  width: min(100%, 520px);
}

.mdz-deep-code__window {
  display: grid;
  gap: 10px;
  padding: 22px 26px 30px;
  border-radius: 18px;
  background: rgba(10, 10, 30, .85);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .35), 0 40px 60px -40px rgba(150, 90, 255, .7);
  color: #e9e3fa;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
}

.mdz-deep-code__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mdz-deep-code__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.mdz-deep-code__line {
  display: block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.mdz-deep-code__line--1 {
  animation: mdz-type 1.5s steps(19, end) .6s forwards;
}

.mdz-deep-code__line--2 {
  animation: mdz-type-2 1.2s steps(15, end) 2.3s forwards;
}

.mdz-deep-code__key {
  color: var(--mdz-neon);
  font-weight: 400;
}

.mdz-deep-code__cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: -2px;
  background: var(--mdz-neon);
  animation: mdz-blink 1s steps(2) 3.5s 6 both;
}

.mdz-deep-code__caption {
  margin-top: 14px;
  color: var(--mdz-muted-night-soft);
  font-size: 12px;
  letter-spacing: .1em;
  text-align: center;
}

@keyframes mdz-type {
  to {
    width: 19ch;
  }
}

@keyframes mdz-type-2 {
  to {
    width: 15ch;
  }
}

@keyframes mdz-blink {
  to {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .mdz-deep-hero__visual--tilt {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdz-deep-code__line {
    width: auto;
    animation: none;
  }

  .mdz-deep-code__cursor {
    animation: none;
  }
}

/* On the night the glow in a hero title is the night glow, whichever class the shared markup carries.
   Only titles: the mockups inside a hero keep their own light surfaces. */
.mdz-deep-hero h1 .mdz-glow {
  color: var(--mdz-neon-core);
  text-shadow: 0 0 6px rgba(190, 150, 255, .9), 0 0 16px rgba(150, 90, 255, .65);
}

/* Breadcrumbs on the inner pages. On the night heroes they sit above the kicker. */
.mdz-crumbs {
  margin: 0 0 18px;
  font: 500 14px/1.4 var(--mdz-font);
}

.mdz-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mdz-muted);
}

.mdz-crumbs__item + .mdz-crumbs__item::before {
  content: "/";
  margin-inline: 10px;
  opacity: .6;
}

.mdz-main .mdz-crumbs a {
  display: inline-block;
  padding-block: 3px;
  color: var(--mdz-purple);
  text-decoration: none;
}

.mdz-main .mdz-crumbs a:hover {
  text-decoration: underline;
}

.mdz-deep-hero .mdz-crumbs__list,
.mdz-on-night .mdz-crumbs__list,
.mdz-contact-hero .mdz-crumbs__list {
  color: var(--mdz-muted-night-soft);
}

.mdz-main .mdz-deep-hero .mdz-crumbs a,
.mdz-main .mdz-on-night .mdz-crumbs a,
.mdz-main .mdz-contact-hero .mdz-crumbs a {
  color: var(--mdz-neon-mist);
}
