/* ═══════════════════ M1 BANNER ═══════════════════ */

.m1-banner {
  --m1-bg: #050505;
  --m1-ink: #ffffff;
  --m1-muted: rgba(255, 255, 255, 0.6);
  --m1-cta-bg: #ffffff;
  --m1-cta-ink: #0a0a0a;

  position: relative;
  width: 100%;
  margin: 70px 0 0px;
  background: var(--m1-bg);
  overflow: hidden;
}

/* Robot image: full width + load zoom */
.m1-banner_img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--m1-bg);
  animation:
    m1ImgZoom 2.2s cubic-bezier(.22, 1, .36, 1) both,       /* load-in */
    m1Breathe 7s ease-in-out 2.2s infinite;                 /* breathe, starts after load */
}

/* Content overlay: grid, zoom-in on load */
.m1-banner_content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: min-content min-content;
  grid-template-areas:
    "side  title ."
    ".     sub ."
    ".   cta .";
  gap: 0px 40px;
  place-content: center;
  justify-content: center;
  margin-left: 25%;
  padding: 4%;
  animation: m1ContentIn 1.8s cubic-bezier(.22, 1, .36, 1) 0.15s both;
}

/* Eyebrow: vertical */
.m1-banner_side {
  grid-area: side;
  writing-mode: vertical-rl;
  transform: rotate(180deg) scaleX(1.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(0.6rem, 1vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--m1-muted);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  height: fit-content;
  align-self: center;
}

.m1-banner_side::after {
  content: "";
  display: block;
  position: absolute;
  width: 3px;
  height: 100%;
  margin: 0 2em 0 0;
  background: var(--color-accent);
}

.m1-banner_side:hover {
  color: var(--m1-ink);
  letter-spacing: 0.375em;
}

/* M1 title wrapper: owns the grid cell + is the hover trigger */
.m1-banner_title_wrapper {
  grid-area: title;
  z-index: 2;
}

/* M1 title: plain white, flat at rest */
.m1-banner_title {
  position: relative;
  font-family: sans-serif;
  font-family: "Black Ops One", system-ui;
  /* font-family: var(--font-display), 'Syne', sans-serif; */
  font-weight: 400;
  font-size: clamp(5rem, 18vw, 24rem);
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  margin-left: 5px;
  margin-top: 32px;
  padding-right: 55px;
  transform: scaleY(1.5) scaleX(1.11);
  transform-origin: center;
  color: #ffffff;
  /* FLAT at rest: 8 zero-offset layers → no depth */
  text-shadow:
    0 0 0 #d2d2d2,
    0 0 0 #c0c0c0,
    0 0 0 #ababab,
    0 0 0 #979797,
    0 0 0 #838383,
    0 0 0 #6f6f6f,
    0 0 0 #5b5b5b,
    0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s ease-out;
  
  /* -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='c'%3E%3Crect width='100' height='100' fill='white'/%3E%3Cpath d='M12 0 L18 28 L8 50 L16 74 L7 100' stroke='black' stroke-width='1.2' fill='none'/%3E%3Cpath d='M46 0 L53 26 L43 52 L56 78 L49 100' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M0 58 L28 53 L60 62 L100 56' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M78 0 L84 34 L74 66 L86 100' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M30 40 L50 44 L44 60' stroke='black' stroke-width='0.7' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' fill='white' mask='url(%23c)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='c'%3E%3Crect width='100' height='100' fill='white'/%3E%3Cpath d='M12 0 L18 28 L8 50 L16 74 L7 100' stroke='black' stroke-width='1.2' fill='none'/%3E%3Cpath d='M46 0 L53 26 L43 52 L56 78 L49 100' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M0 58 L28 53 L60 62 L100 56' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M78 0 L84 34 L74 66 L86 100' stroke='black' stroke-width='1' fill='none'/%3E%3Cpath d='M30 40 L50 44 L44 60' stroke='black' stroke-width='0.7' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' fill='white' mask='url(%23c)'/%3E%3C/svg%3E");
  -webkit-mask-size: 115% 115%;   mask-size: 115% 115%;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; */

}

/* Subtitle */
.m1-banner_subtitle {
  grid-area: sub;
  font-family: var(--font-display), 'Syne', sans-serif;
  font-weight: 400;
  font-size: xx-large;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--m1-ink);
  position: relative;
  z-index: 2;
  transform: scaleY(0.9);
}

/* animatable angle for the spinning conic gradient */
@property --m1-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.m1-banner_cta {
  grid-area: cta;
  justify-self: left;
  position: relative;
  isolation: isolate;           /* keeps the border pseudo behind the label */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: clamp(6px, 1vw, 14px);
  padding: 0.7em 2em;
  background: transparent;          /* dark at rest so the ring reads */
  color: var(--m1-ink);
  font-family: var(--font-display), 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
/* the revolving border */
.m1-banner_cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;                 /* = border thickness */
  background: conic-gradient(
    from var(--m1-angle),
    transparent 0deg,
    var(--color-accent) 70deg,
    #ffffff 110deg,             /* bright "comet head" — drop if you want pure accent */
    var(--color-accent) 150deg,
    transparent 230deg
  );
  /* punch out the middle so only the ring shows */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: m1-spin 3s linear infinite;
}
@keyframes m1-spin { to { --m1-angle: 360deg; } }
/* hover: flood with accent */
.m1-banner_cta:hover {
  background-color: var(--color-accent);
  color: var(--m1-ink);
  transform: translateY(-3px);
}
.m1-banner_cta:hover::before { opacity: 0; }  /* border melts into the fill */

.m1-banner_cta-arrow {
  transition: transform 0.25s ease;
}
.m1-banner_cta:hover .m1-banner_cta-arrow {
  transform: translateX(4px);
}

.m1-banner_proof {
  position: absolute;
  top: 18px;
  right: 22px;                 /* swap to bottom/right if you prefer bottom-right */
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.95em;
  font-family: var(--font-display), 'Syne', sans-serif;
  font-size: clamp(0.58rem, 0.8vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--m1-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.m1-banner_proof-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: m1-proof-pulse 1.8s ease-out infinite;
}
@keyframes m1-proof-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 70%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
/* keep it from crowding the robot on small screens */
@media (max-width: 640px) { .m1-banner_proof { display: none; } }

/* Cursor-follow light beam */
.m1-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: conic-gradient(
    from calc(var(--beam-angle, 180deg) - 45deg) at 50% 0%,
    transparent 0deg,
    rgba(255, 255, 255, 0.03) 18deg,
    rgba(255, 255, 255, 0.13) 45deg,
    rgba(255, 255, 255, 0.03) 72deg,
    transparent 90deg
  );
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.m1-banner:hover::after { opacity: 1; }

.m1-banner_subtitle::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: m1Caret 1s steps(1) infinite;
}
@keyframes m1Caret { 50% { opacity: 0; } }

/* ── keyframes ── */
@keyframes m1ImgZoom {
  from { transform: scale(1.12); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes m1ContentIn {                 /* reverted to zoom-in */
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes m1Shine {
  from { background-position: 100% 0, 0 0; }
  to   { background-position: -50% 0, 0 0; }
}

@keyframes m1Breathe {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.01); } 
}

/* ── accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .m1-banner_img,
  .m1-banner_content { animation: none; }
  .m1-banner_title_wrapper:hover .m1-banner_title { animation: none; }
  .m1-banner::after { display: none; }
  .m1-banner_cta,
  .m1-banner_cta-arrow { transition: none; }
}
