/* ==========================================================================
   Landing page hero
   ========================================================================== */

/*
 * Layout debug helper. Uncomment when inspecting hero geometry.
 *
.landing-hero *,
.landing-hero *::before,
.landing-hero *::after {
  border: 1px solid red;
}*/

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;

  width: 100%;
  max-width: none;

  /*min-height: clamp(36rem, 68vh, 42rem);
  min-height: clamp(28rem, 56vh, 34rem);*/

  padding-block: clamp(2rem, 4vw, 3.5rem);

  background: radial-gradient(circle at 67% 42%, rgba(242, 140, 40, 0.08), transparent 30%), linear-gradient(180deg, #0b0d0f 0%, var(--wp--preset--color--background) 100%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Main layout: content and visual are real grid columns with equal row height. */
.landing-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.96fr);
  gap: clamp(1rem, 0.5vw, 3rem);
  align-items: stretch;
  width: min(calc(100% - (2 * var(--wp--custom--viewport-padding))), var(--wp--custom--layout--wide));
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(1rem, 1.7vw, 1.6rem) 0 0;
  /*border: solid 1px green;*/
}

.landing-hero__content {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-top: clamp(0.15rem, 0.7vw, 0.65rem);
}

.landing-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--wp--preset--color--accent);
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.035em;
}

.landing-hero__title {
  max-width: 13ch;
  margin: 0;
  color: var(--wp--preset--color--foreground);
  font-size: clamp(3.2rem, 4.6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.landing-hero__title::after {
  content: "";
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
  transform: translateY(-0.03em);
}

.landing-hero__intro {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: #d7dadd;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.48;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
  margin-top: 1.8rem;
}

.landing-hero__primary,
.landing-hero__showreel {
  text-decoration: none;
}

.landing-hero__primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.2rem 1.25rem;
  border: 2px solid var(--wp--preset--color--accent);
  border-radius: 0.5rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-contrast);
  font-weight: 800;
}

.landing-hero__primary:hover,
.landing-hero__primary:focus-visible {
  background: transparent;
  color: var(--wp--preset--color--foreground);
}

.landing-hero__arrow {
  font-size: 1.4rem;
  line-height: 1;
}

.landing-hero__showreel {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wp--preset--color--foreground);
}

.landing-hero__play {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 2px solid #cfd3d6;
  border-radius: 50%;
  font-size: 0.9rem;
  padding-left: 0.15rem;
}

.landing-hero__showreel-copy {
  display: grid;
  line-height: 1.2;
}

.landing-hero__showreel-copy strong {
  font-size: 0.9rem;
}

.landing-hero__showreel-copy small {
  margin-top: 0.25rem;
  color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Visual column
   ========================================================================== */

.landing-hero__visual {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template: 1fr / 1fr;
  align-items: end;
  min-width: 0;
  min-height: 100%;
}

/* Portrait and quote share the visual grid, so neither needs page-level absolute positioning. */
.landing-hero__portrait {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  align-self: start; /**/
  justify-self: start;
  width: min(92%, 39rem);
  pointer-events: none;
  isolation: isolate;
}

.landing-hero__portrait::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 2%;
  bottom: -0.25rem;
  height: 15%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 48%, transparent 76%);
  filter: blur(8px);
}

.landing-hero__portrait-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 85%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

/* ==========================================================================
   Personal hero quote
   ========================================================================== */

.landing-hero__quote {
  position: relative;
  z-index: 5;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: end;
  width: clamp(11.5rem, 15vw, 14rem);
  min-height: 5.5rem;
  margin: 7rem 0 0;
  padding: 1.15rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7e9;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.45;
  background: rgba(13, 15, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.landing-hero__quote p {
  margin: 0;
  text-align: left;
}

.landing-hero__quote-mark {
  position: absolute;
  color: var(--wp--preset--color--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.landing-hero__quote-mark--open {
  top: 0.15rem;
  left: 0.65rem;
}

.landing-hero__quote-mark--close {
  right: 0.65rem;
  bottom: -0.15rem;
}

/* ==========================================================================
   Netkravler DNA background
   ========================================================================== */

.landing-hero__technical {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto auto;
  width: min(68vw, 78rem);
  height: 100%;
  opacity: 0.38;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, rgba(0, 0, 0, 0.28) 24%, #000 48%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, rgba(0, 0, 0, 0.28) 24%, #000 48%, #000 94%, transparent 100%);
}

.landing-hero__technical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
}

/* ==========================================================================
   Decorative Netkravler spider cameo
   ========================================================================== */

.landing-hero__portrait .landing-hero__spider-cameo {
  position: absolute;
  z-index: 1;
  left: clamp(-8rem, -6vw, -5rem);
  top: calc(24% - 2.25rem);
  display: block;
  width: clamp(8.75rem, 10vw, 11.25rem);
  max-width: none;
  height: auto;
  pointer-events: none;
  opacity: 0.42;
  object-fit: contain;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1050px) {
  .landing-hero {
    min-height: 40rem;
  }

  .landing-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 1.25rem;
  }

  .landing-hero__quote {
    display: none;
  }

  .landing-hero__portrait {
    width: min(118%, 42rem);
    justify-self: center;
    opacity: 0.92;
  }

  .landing-hero__technical {
    width: 64rem;
    opacity: 0.22;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 760px) {
  .landing-hero {
    min-height: auto;
    padding-block: 0.85rem 1rem;
  }

  .landing-hero__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: min(calc(100% - (2 * var(--wp--custom--viewport-padding))), 42rem);
    padding-top: 0;
  }

  .landing-hero__content {
    width: 100%;
    padding-top: 0;
  }

  .landing-hero__eyebrow {
    margin-bottom: 0.55rem;
    font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  }

  .landing-hero__title {
    max-width: 10.5ch;
    font-size: clamp(2.5rem, 10.8vw, 3.35rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
  }

  .landing-hero__intro {
    max-width: 31rem;
    margin-top: 0.95rem;
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    line-height: 1.45;
  }

  .landing-hero__actions {
    display: grid;
    grid-template-columns: minmax(9.75rem, 1fr) minmax(8rem, 0.86fr);
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin-top: 1.2rem;
  }

  .landing-hero__primary {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding-inline: 0.85rem;
    justify-content: space-between;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .landing-hero__showreel {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .landing-hero__showreel-copy {
    min-width: 0;
  }

  .landing-hero__showreel-copy strong {
    font-size: 0.68rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .landing-hero__showreel-copy small {
    margin-top: 0.18rem;
    font-size: 0.66rem;
  }

  .landing-hero__play {
    width: 2.45rem;
    height: 2.45rem;
  }

  .landing-hero__visual {
    grid-template: 1fr / 1fr;
    min-height: 0;
    margin-top: 0.25rem;
    overflow: visible;
  }

  .landing-hero__portrait {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
    width: min(112%, 35rem);
    margin: 0 -6% 0;
    opacity: 1;
  }

  .landing-hero__portrait-image {
    width: 100%;
    object-position: center bottom;
  }

  .landing-hero__portrait .landing-hero__spider-cameo {
    display: block;
    left: 0.5rem;
    top: 14%;
    width: clamp(6.5rem, 27vw, 8.5rem);
    opacity: 0.34;
  }

  .landing-hero__quote {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    width: min(12.5rem, 48vw);
    min-height: 0;
    margin: 0 0 8% 0;
    padding: 0.9rem 1.15rem 0.85rem 1.35rem;
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
    line-height: 1.45;
    background: rgba(13, 15, 17, 0.82);
  }

  .landing-hero__quote-mark {
    font-size: 2.45rem;
  }

  .landing-hero__quote-mark--open {
    top: 0.05rem;
    left: 0.45rem;
  }

  .landing-hero__quote-mark--close {
    right: 0.45rem;
    bottom: -0.2rem;
  }

  .landing-hero__technical {
    inset: auto -30% 0 auto;
    width: 145%;
    height: 67%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 15%, #000 35%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 15%, #000 35%, #000 82%, transparent 100%);
  }

  .landing-hero__technical img {
    object-position: 70% center;
  }
}

@media (max-width: 480px) {
  .landing-hero__eyebrow {
    font-size: 0.76rem;
  }

  .landing-hero__title {
    max-width: 10.5ch;
    font-size: clamp(2.4rem, 10.5vw, 2.85rem);
  }

  .landing-hero__intro {
    font-size: 0.98rem;
  }

  .landing-hero__actions {
    grid-template-columns: minmax(9.25rem, 1fr) minmax(7.65rem, 0.84fr);
    gap: 0.55rem;
  }

  .landing-hero__primary {
    width: 100%;
    min-height: 2.85rem;
    padding-inline: 0.75rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .landing-hero__showreel {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0.45rem;
  }

  .landing-hero__play {
    width: 2.3rem;
    height: 2.3rem;
  }

  .landing-hero__showreel-copy strong {
    font-size: 0.62rem;
  }

  .landing-hero__showreel-copy small {
    font-size: 0.62rem;
  }

  .landing-hero__visual {
    margin-top: 0.5rem;
  }

  .landing-hero__portrait {
    width: 118%;
    margin-inline: -9%;
  }

  .landing-hero__quote {
    width: min(12rem, 52vw);
    margin-bottom: 5%;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .landing-hero *,
  .landing-hero *::before,
  .landing-hero *::after {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Wide desktop compact composition
   Keeps the approved hero composition but reduces vertical footprint so the
   accessibility strip, project row and capability strip read as one landing
   dashboard on common desktop viewports.
   ========================================================================== */

@media (min-width: 1181px) {
  .landing-hero {
    padding-block: 0.9rem 0.65rem;
  }

  .landing-hero__inner {
    padding-top: 0.2rem;
  }

  .landing-hero__eyebrow {
    margin-bottom: 0.55rem;
  }

  .landing-hero__title {
    font-size: clamp(3rem, 4vw, 4.55rem);
  }

  .landing-hero__intro {
    margin-top: 1rem;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.42;
  }

  .landing-hero__actions {
    margin-top: 1.25rem;
  }

  .landing-hero__portrait {
    width: min(86%, 36rem);
  }

  .landing-hero__quote {
    margin-top: 5.25rem;
  }
}

/* ========================================================================== 
   Short desktop viewport refinement
   Keeps the normal wide-desktop composition on tall displays, but compresses
   only the vertical rhythm when browser chrome leaves less than 900px height.
   ========================================================================== */

@media (min-width: 1181px) and (max-height: 900px) {
  .landing-hero {
    padding-block: 0.35rem 0.35rem;
  }

  .landing-hero__inner {
    padding-top: 0;
  }

  .landing-hero__content {
    padding-top: 0.1rem;
  }

  .landing-hero__eyebrow {
    margin-bottom: 0.4rem;
  }

  .landing-hero__title {
    font-size: clamp(2.9rem, 3.55vw, 4.1rem);
    line-height: 0.93;
  }

  .landing-hero__intro {
    margin-top: 0.72rem;
    font-size: clamp(0.96rem, 1.02vw, 1.08rem);
    line-height: 1.36;
  }

  .landing-hero__actions {
    margin-top: 0.9rem;
  }

  .landing-hero__primary {
    min-height: 3.15rem;
  }

  .landing-hero__portrait {
    width: min(82%, 34rem);
  }

  .landing-hero__quote {
    margin-top: 4.2rem;
  }
}
