/* ═══════════════════ 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: 100px 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 clamp(12px, 3vw, 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: clamp(1.05rem, 4.4vw, 2rem);
  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; }
}
/* 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); } 
}

/* ═══ Shared mobile/tablet layout: M1 top-right, labels bottom-left over a scrim ═══ */
@media (max-width: 1024px) {
  /* translucent wash over the bottom half of the banner */
  .m1-banner::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(5, 5, 5, 0.82) 45%,
      rgba(5, 5, 5, 0.95) 100%
    );
  }

  .m1-banner_content {
    margin-left: 0;
    z-index: 2;                    /* sit above the scrim */
    grid-template-columns: minmax(0, 1fr) auto 0.25fr;
    grid-template-rows: auto auto auto 1fr auto auto;
    grid-template-areas:
      "proof proof proof"
      ".     title ."
      ".     cta   ."
      ".     .     ."
      "side  .     ."
      "sub   .     .";
    justify-content: stretch;
    align-content: stretch;
    justify-items: start;
  }

  /* offer pill: pushed to the very top, aligned above M1 */
  .m1-banner_proof {
    display: inline-flex;
    position: static;
    grid-area: proof;
    justify-self: end;
    align-self: start;
    margin-top: clamp(8px, 2.5vw, 18px);
    top: auto;
    right: auto;
  }

  /* M1: sits toward the middle (right spacer column pulls it off the edge),
     nudged down so it clears the offer pill */
  .m1-banner_title_wrapper {
    align-self: start;
    justify-self: center;
    margin-top: clamp(16px, 7vw, 100px);
    margin-left: 20%
  }
  .m1-banner_title {
    margin: 0;
    padding: 0;
  }

  /* side: acts as the headline of the bottom cluster */
  .m1-banner_side {
    grid-area: side;
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
    align-self: end;
    justify-self: start;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    padding-top: clamp(14px, 4vw, 34px);
    font-weight: 700;
    color: var(--m1-ink);
    font-size: clamp(0.6rem, 2vw, 4rem);
  }
  .m1-banner_side::after { display: none; }

  /* subtitle: plain text near the bottom (no chip), single line */
  .m1-banner_subtitle {
    grid-area: sub;
    align-self: start;
    justify-self: start;
    white-space: nowrap;
    transform: none;
    line-height: 1.1;
    background: none;
    backdrop-filter: none;
    padding: 0;
    margin-bottom: clamp(14px, 5vw, 44px);
  }

  /* CTA: solid accent, sitting directly under the M1 text */
  .m1-banner_cta {
    grid-area: cta;
    justify-self: center;
    align-self: start;
    background-color: var(--color-accent);
    color: var(--m1-ink);
    margin-left: 20%;
    white-space: nowrap;
  }
  .m1-banner_cta::before { display: none; }
  .m1-banner_cta:hover {
    transform: none;
    background-color: var(--color-accent);
  }
}

/* ═══ Phone ═══ */
@media (max-width: 640px) {
  .m1-banner { margin-top: 54px; }

  .m1-banner_img {
    height: 78vw;
    min-height: 300px;
    max-height: 380px;
    object-fit: cover;
    object-position: 20% center;
  }

  .m1-banner_content {
    padding: 16px;
    gap: 10px 12px;
  }

  .m1-banner_proof {
    font-size: 0.5rem;
    padding: 0.3em 0.6em;
    gap: 0.4em;
  }

  .m1-banner_side {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .m1-banner_subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .m1-banner_title {
    font-size: clamp(3rem, 18vw, 6.5rem);
    transform: scaleY(1.4) scaleX(1.08) !important;
    text-shadow:
      1.4px 1.4px 0 #d2d2d2,
      2.8px 2.8px 0 #c0c0c0,
      4.2px 4.2px 0 #ababab,
      5.6px 5.6px 0 #979797,
      7px   7px   0 #838383,
      8.4px 8.4px 0 #6f6f6f,
      9.8px 9.8px 0 #5b5b5b,
      9.8px 11.8px 6px rgba(0, 0, 0, 0.45) !important;
  }

  .m1-banner_cta {
    margin-top: 20px;
    padding: 0.5em 1.1em;
    font-size: 0.62rem;
    gap: 0.45em;
  }
}

/* ═══ Tablet / iPad — same layout, spread out more ═══ */
@media (min-width: 641px) and (max-width: 1024px) {
  .m1-banner { margin-top: 60px; }

  .m1-banner_img {
    height: 62vw;
    min-height: 440px;
    max-height: 640px;
    object-fit: cover;
    object-position: 22% center;
  }

  .m1-banner_content {
    padding: 40px 48px;
    gap: 5px 0px;
  }

  .m1-banner_proof {
    font-size: 0.66rem;
    padding: 0.42em 0.85em;
    margin: 0;
  }

  .m1-banner_side {
    font-size: 1.5rem;
    letter-spacing: 0.28em;
  }

  .m1-banner_subtitle {
    font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  }

  .m1-banner_title {
    font-size: clamp(5.5rem, 17vw, 10.5rem);
    transform: scaleY(1.5) scaleX(1.1) !important;
    text-shadow:
      2px  2px  0 #d2d2d2,
      4px  4px  0 #c0c0c0,
      6px  6px  0 #ababab,
      8px  8px  0 #979797,
      10px 10px 0 #838383,
      12px 12px 0 #6f6f6f,
      14px 14px 0 #5b5b5b,
      14px 16px 10px rgba(0, 0, 0, 0.45) !important;
  }

  .m1-banner_cta {
    margin-top: 32px;
    padding: 0.6em 1.5em;
    font-size: 0.8rem;
  }
}

/* ── 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; }
}
