/* Jeffrey Milanes–style hero (https://www.jeffmilanes.com/) — scoped to .jm-hero */

.jm-hero-root {
  --jm-black: #000;
  --jm-white: #fff;
  --jm-accent: #946854;
  --jm-g4: #777;
  --jm-g5: #aaa;
  --jm-pad: clamp(1.25rem, 3.6vw, 3.5rem);
  --jm-nav-h: 4.5rem;
  --font-display: var(--font-gotham-thin, "GothamThin", "HelveticaNeue-Thin", sans-serif);
  --font-geist-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

body.page-home-h10 .jm-hero-root {
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

.jm-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  background: var(--jm-black);
  color: var(--jm-white);
  overflow: hidden;
}

.jm-hero h1,
.jm-hero h1.jm-display {
  color: var(--jm-white);
}

.jm-hero .jm-type-line,
.jm-hero .jm-type-line-live {
  color: var(--jm-accent);
}

.jm-hero .jm-hero__copy-main {
  position: relative;
  z-index: 2;
}

.jm-hero__photo {
  z-index: 0;
  position: relative;
  overflow: hidden;
  min-height: calc(58svh + var(--jm-nav-h));
  margin-bottom: -18vh;
  background: var(--jm-black);
}

.jm-hero__photo .jm-media-stage {
  position: absolute;
  inset: 0;
  top: calc(var(--jm-nav-h) + 1.75rem);
  background: var(--jm-black);
  overflow: hidden;
}

/* Set from JS to the rendered right edge of the photo (object-fit: contain) */
.jm-hero__photo .jm-media-stage.is-figure {
  --jm-photo-edge: 72%;
}

/* Pixel-placed in jm-hero.js — studio edge → hero black */
.jm-hero__photo .jm-media-edge-blend {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.jm-hero__photo .jm-media-edge-blend--right {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 32%,
    rgba(0, 0, 0, 0.78) 58%,
    #000 82%,
    #000 100%
  );
}

.jm-hero__photo .jm-media-edge-blend--left {
  left: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 32%,
    rgba(0, 0, 0, 0.78) 58%,
    #000 82%,
    #000 100%
  );
}

.jm-hero__photo .jm-media-stage.is-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 46%;
  filter: grayscale(100%) contrast(1.02) saturate(0);
  transform: none;
  /* horizontal mask set in px by jm-hero.js; vertical fallback until JS runs */
  -webkit-mask-image: linear-gradient(180deg, #0000 0%, #000 5%, #000 91%, #0000 100%);
  mask-image: linear-gradient(180deg, #0000 0%, #000 5%, #000 91%, #0000 100%);
}

.jm-hero__photo .jm-media-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, #0000 7%),
    linear-gradient(0deg, #000 0%, #0000 9%);
  opacity: 0.88;
}

.jm-hero__copy {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem var(--jm-pad) 5.5rem;
  background: linear-gradient(#0000, var(--jm-black) 42%);
}

.jm-hero__copy-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.jm-hero .jm-kicker {
  font-family: var(--font-helvetica-light, "HelveticaNeueLight", "Helvetica Neue", sans-serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  font-size: 0.6875rem;
  font-weight: 500;
}

.jm-hero .jm-kicker-hero .jm-kicker-line + .jm-kicker-line::before {
  content: " · ";
}

/*
 * jeffmilanes.com .display / .display-xl — beats global style.css h1 (Gilroy 65px)
 */
.jm-hero .jm-display,
.jm-hero h1.jm-display-xl,
body.page-home-h10 .jm-hero-root .jm-hero h1.jm-display-xl {
  font-family: var(--font-display) !important;
  font-weight: normal !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  line-height: 0.78 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.jm-hero h1.jm-display-xl,
body.page-home-h10 .jm-hero-root .jm-hero h1.jm-display-xl {
  font-size: clamp(3.1rem, 14vw, 11rem) !important;
  color: var(--jm-white) !important;
  margin: 0 !important;
}

.jm-hero h1.jm-display-xl .jm-block {
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: 1;
  text-transform: inherit !important;
  font-size: inherit !important;
}

.jm-hero .jm-display-xl {
  width: 100%;
}

.jm-hero .jm-display-sm,
.jm-hero .jm-type-line-sizer,
.jm-hero .jm-type-line-live {
  font-family: var(--font-gotham-medium, "GothamMedium", "HelveticaNeue-Medium", sans-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  line-height: 0.95 !important;
  font-size: clamp(1.4rem, 4.2vw, 2.8rem) !important;
}

.jm-hero .jm-clip {
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding-inline: 0.08em;
}

.jm-hero .jm-clip .jm-block {
  display: block;
  transform: translateY(110%);
}

.jm-hero.is-mounted .jm-clip .jm-block {
  animation: jm-hero-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.jm-hero.is-mounted .jm-clip:nth-child(1) .jm-block {
  animation-delay: 0.08s;
}

.jm-hero.is-mounted .jm-clip:nth-child(2) .jm-block {
  animation-delay: 0.2s;
}

.jm-hero .jm-mt-8 {
  margin-top: 2rem;
}

.jm-hero .jm-type-line {
  position: relative;
  width: 100%;
}

.jm-hero .jm-type-line-sizer,
.jm-hero .jm-type-line-live {
  text-align: center;
}

.jm-hero .jm-type-line-sizer {
  visibility: hidden;
  pointer-events: none;
  display: grid;
}

.jm-hero .jm-type-line-sizer > span {
  grid-area: 1 / 1;
}

.jm-hero .jm-type-line-live {
  position: absolute;
  inset: 0;
}

.jm-hero .jm-caret {
  vertical-align: -0.05em;
  background: currentColor;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.08em;
  animation: jm-blink 1s step-end infinite;
  display: inline-block;
}

.jm-hero .jm-hero-lede {
  width: auto;
  min-width: 0;
  max-width: 22rem;
  margin-inline: auto;
  max-width: 28rem;
  font-family: var(--font-secondary, var(--font-helvetica-light, "HelveticaNeueLight", "Helvetica Neue", sans-serif));
  font-weight: 400;
  color: #aaa;
  margin-top: 1.25rem;
  font-size: 1.166875rem;
  line-height: 1.55;
  letter-spacing: normal;
  opacity: 0;
  transform: translateY(0.4em);
}

.jm-hero.is-mounted .jm-hero-lede {
  animation: jm-hero-fade 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.jm-hero.is-mounted .jm-kicker-hero {
  animation: jm-hero-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  opacity: 0;
}

.jm-hero__scroll {
  z-index: 2;
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  translate: -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.jm-hero__scroll:hover {
  color: var(--jm-white);
}

.jm-hero .jm-scroll-icon {
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  display: flex;
}

.jm-hero .jm-scroll-icon span {
  opacity: 0.28;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
  width: 0.42rem;
  height: 0.42rem;
  animation: jm-scroll-cue 1.5s ease-in-out infinite;
  display: block;
  transform: rotate(45deg);
}

.jm-hero .jm-scroll-icon span:last-child {
  animation-delay: 0.18s;
}

@media (max-width: 767.98px) {
  .jm-hero__scroll {
    display: none;
  }

  .jm-hero .jm-kicker-hero {
    display: grid;
    justify-items: center;
    align-items: center;
    min-height: 1.35em;
  }

  .jm-hero .jm-kicker-hero .jm-kicker-line {
    grid-area: 1 / 1;
    display: block;
    opacity: 0;
    transform: translateY(0.25em);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
  }

  .jm-hero .jm-kicker-hero .jm-kicker-line.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .jm-hero .jm-kicker-hero .jm-kicker-line + .jm-kicker-line::before {
    content: none;
  }
}


@media (min-width: 768px) {
  .jm-hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

 
  .jm-hero__photo {
    min-height: 100svh;
    margin-bottom: 0;
    margin-right: -24%;
  }

  .jm-hero__photo .jm-media-stage {
    top: 3.5rem;
  }

  .jm-hero__photo .jm-media-stage.is-figure img {
    object-position: 30% 46%;
  }

  .jm-hero__photo .jm-media-veil {
    background:
      linear-gradient(180deg, #000 0%, #0000 7%),
      linear-gradient(0deg, #000 0%, #0000 8%);
  }

  .jm-hero__copy {
    min-height: 100svh;
    padding: var(--jm-nav-h) calc(var(--jm-pad) + 4vw) 2.25rem 1.5rem;
    background: transparent;
    justify-content: stretch;
    margin-left: -7%;
  }

  .jm-hero .jm-display-xl,
  .jm-hero h1.jm-display-xl,
  body.page-home-h10 .jm-hero-root .jm-hero h1.jm-display-xl {
    font-size: clamp(3rem, 8.2vw, 8.5rem) !important;
  }

  .jm-hero .jm-display-sm,
  .jm-hero .jm-type-line-sizer,
  .jm-hero .jm-type-line-live {
    font-size: clamp(1.35rem, 8vw, 2.1rem) !important;
    line-height: 0.95 !important;
  }

  .jm-hero__copy-main {
    flex: 1;
    justify-content: center;
    text-align: left;
    align-items: flex-start;
  }

  .jm-hero .jm-type-line-sizer,
  .jm-hero .jm-type-line-live {
    text-align: left;
  }

  .jm-hero .jm-hero-lede {
    margin-inline: 0;
    text-align: left;
  }

  .jm-hero__scroll {
    bottom: 2.25rem;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .jm-hero__photo .jm-media-stage.is-figure img {
    will-change: transform;
    animation: jm-ken 22s ease-out forwards;
  }
}

@keyframes jm-hero-rise {
  to {
    transform: translateY(0);
  }
}

@keyframes jm-hero-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jm-blink {
  50% {
    opacity: 0;
  }
}

@keyframes jm-scroll-cue {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(45deg) translate(0);
  }
  45% {
    opacity: 1;
    transform: rotate(45deg) translate(0.12rem, 0.12rem);
  }
}

@keyframes jm-ken {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jm-hero.is-mounted .jm-clip .jm-block,
  .jm-hero.is-mounted .jm-hero-lede,
  .jm-hero.is-mounted .jm-kicker-hero {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .jm-hero .jm-kicker-hero .jm-kicker-line {
    transition: none;
  }

  .jm-hero .jm-caret,
  .jm-hero .jm-scroll-icon span {
    animation: none;
  }

  .jm-hero__photo .jm-media-stage img {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .jm-media-stage{
    scale: 1.4;
  }
}

/* Home hero sits under absolute header */
body.page-home-h10 .jm-hero {
  margin-top: 0;
}

#home-next {
  scroll-margin-top: var(--jm-nav-h, 4.5rem);
}


@media (max-width: 768px) {
 

  .jm-hero-root{
    margin-top: -10px;
  }
}


@media screen and (max-width: 767.98px) {
  .jm-hero-lede{
    font-size: 16px !important;
    letter-spacing: 0 !important;
  }
}