@font-face {
  font-family: "Mattis Satoshi";
  src: url("/portrixe-hero/satoshi-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mattis Satoshi";
  src: url("/portrixe-hero/satoshi-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Mattis Satoshi";
  src: url("/portrixe-hero/satoshi-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

.portfolite-cover:has(> .mattis-hero) {
  background: #080808 !important;
}

.portfolite-cover:has(> .mattis-hero) > #about {
  position: relative;
  z-index: 2;
}

.mattis-hero,
.mattis-hero * {
  box-sizing: border-box;
}

.mattis-hero {
  --mattis-white: #f4f4f2;
  --mattis-orange: #ff4a0a;
  --mattis-line: rgba(255, 255, 255, .12);
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  color: var(--mattis-white);
  background: #090909;
  font-family: "Geist", "Mattis Satoshi", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mattis-hero a {
  color: inherit;
  text-decoration: none;
}

.mattis-hero__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.mattis-hero__image,
.mattis-hero__shade,
.mattis-hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mattis-hero__image {
  z-index: -4;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.08) brightness(.72);
  transform: scale(1.01);
}

.mattis-hero.is-ready .mattis-hero__image {
  transform: scale(1.01);
}

.mattis-hero__shade {
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 44%, transparent 0 20%, rgba(0, 0, 0, .05) 43%, rgba(0, 0, 0, .34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .14), transparent 25%, transparent 70%, rgba(0, 0, 0, .2)),
    linear-gradient(90deg, rgba(0, 0, 0, .15), transparent 24%, transparent 74%, rgba(0, 0, 0, .18));
}

.mattis-hero__grain {
  z-index: 6;
  inset: -3%;
  width: 106%;
  height: 106%;
  opacity: .1;
  pointer-events: none;
  background-image: url("/performance-assets/reference-grain.png");
  background-size: 320px 320px;
  mix-blend-mode: screen;
  will-change: transform;
  animation: mattis-grain .26s steps(2) infinite;
}

.mattis-hero__grain.is-fallback {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='4' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.7' intercept='-.35'/%3E%3CfeFuncG type='linear' slope='1.7' intercept='-.35'/%3E%3CfeFuncB type='linear' slope='1.7' intercept='-.35'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.mattis-hero__axis {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: var(--mattis-line);
}

.mattis-hero__axis--vertical {
  top: 0;
  bottom: 0;
  left: 49.25%;
  width: 1px;
}

.mattis-hero__axis--horizontal {
  top: 49.75%;
  left: 0;
  right: 0;
  height: 1px;
}

.mattis-hero__topbar {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 18px;
  right: 45px;
  display: flex;
  align-items: center;
  height: 34px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .7s .15s ease, transform .7s .15s cubic-bezier(.2, .75, .25, 1);
}

.mattis-hero.is-ready .mattis-hero__topbar {
  opacity: 1;
  transform: translateY(0);
}

.mattis-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.mattis-hero__brand-mark {
  width: 64px;
  height: 31px;
}

.mattis-hero__brand sup {
  position: relative;
  top: -.2em;
  margin-left: 1px;
  font-size: 8px;
}

.mattis-hero__tagline {
  margin: 0 0 0 48px;
  color: rgba(255, 255, 255, .58);
  font-weight: 500;
  letter-spacing: -.02em;
}

.mattis-hero__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
}

.mattis-hero__nav > span {
  color: rgba(255, 255, 255, .18);
  font-weight: 400;
}

.mattis-hero__nav > a:not(.mattis-hero__cta) {
  position: relative;
  padding-block: 8px;
}

.mattis-hero__nav > a:not(.mattis-hero__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transition: right .24s ease;
}

.mattis-hero__nav > a:not(.mattis-hero__cta):hover::after,
.mattis-hero__nav > a:not(.mattis-hero__cta):focus-visible::after {
  right: 0;
}

.mattis-hero__cta {
  margin-left: 10px;
  padding: 11px 16px 10px;
  background: var(--mattis-orange);
  transition: background .2s ease, transform .2s ease;
}

.mattis-hero__cta:hover,
.mattis-hero__cta:focus-visible {
  background: #ff662f;
  transform: translateY(-1px);
}

.mattis-hero__identity-card {
  position: absolute;
  z-index: 2;
  top: 49.75%;
  left: 49.25%;
  width: min(832px, calc(100vw - 64px));
  aspect-ratio: 832 / 506;
  padding: 34px 33px 28px;
  transform: translate(-50%, -47%);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .095);
  backdrop-filter: blur(1.2px);
  transition: opacity .8s .08s ease, transform .8s .08s cubic-bezier(.2, .75, .25, 1);
}

.mattis-hero.is-ready .mattis-hero__identity-card {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.mattis-hero__handle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5f5f2;
  box-shadow: 0 0 8px rgba(255, 255, 255, .24);
}

.mattis-hero__handle--tl { left: -5px; top: -5px; }
.mattis-hero__handle--tr { right: -5px; top: -5px; }
.mattis-hero__handle--bl { left: -5px; bottom: -5px; }
.mattis-hero__handle--br { right: -5px; bottom: -5px; }

.mattis-hero__title-row {
  display: flex;
  align-items: flex-start;
  height: 165px;
  white-space: nowrap;
}

.mattis-hero__title-row h1 {
  margin: 0;
  font-size: clamp(60px, 10vw, 110px);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 800;
  transform: translateY(-7px);
}

.mattis-hero__title-i {
  margin-left: .045em;
}

.mattis-hero__title-row sup {
  margin: 6px 0 0 11px;
  font-size: 20px;
  font-weight: 700;
}

.mattis-hero__meta {
  display: flex;
  align-items: flex-start;
  margin-top: 25px;
}

.mattis-hero__statement {
  width: 384px;
  margin: 0;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.04em;
}

.mattis-hero__profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mattis-hero__profile img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.mattis-hero__profile-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.mattis-hero__profile-copy span {
  font-size: 13px;
  font-weight: 500;
}

.mattis-hero__profile-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
}

.mattis-hero__signature {
  position: absolute;
  z-index: 3;
  top: 229px;
  left: 443px;
  width: 640px;
  height: 220px;
  pointer-events: none;
}

.mattis-hero__signature img {
  position: absolute;
  top: 0;
  left: -10px;
  display: block;
  width: 640px;
  height: auto;
}

.mattis-hero__services {
  position: absolute;
  left: 33px;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.045em;
}

.mattis-hero__services b {
  color: rgba(255, 255, 255, .25);
  font-weight: 400;
}

.mattis-hero__statusbar {
  position: absolute;
  z-index: 4;
  left: 19px;
  right: 45px;
  bottom: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s .3s ease, transform .7s .3s cubic-bezier(.2, .75, .25, 1);
}

.mattis-hero.is-ready .mattis-hero__statusbar {
  opacity: 1;
  transform: translateY(0);
}

.mattis-hero__statusbar p {
  margin: 0;
}

.mattis-hero__availability {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mattis-hero__availability span { margin-right: 4px; }
.mattis-hero__availability i { display: block; width: 2px; height: 14px; background: var(--mattis-orange); }
.mattis-hero__availability i.is-muted { background: rgba(255, 255, 255, .25); }
.mattis-hero__availability strong { margin-left: 7px; color: var(--mattis-white); font-size: 12px; }

@keyframes mattis-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(1.5%, 1.2%); }
  100% { transform: translate(-1%, -1%); }
}

@media (max-width: 1050px) {
  .mattis-hero__tagline { display: none; }
  .mattis-hero__nav { gap: 14px; }
  .mattis-hero__identity-card { width: min(740px, calc(100vw - 64px)); padding-inline: 29px; }
  .mattis-hero__title-row h1 { font-size: clamp(88px, 14vw, 130px); }
  .mattis-hero__signature { left: 360px; transform: rotate(-2deg) scale(.88); transform-origin: left center; }
}

@media (max-width: 760px) {
  .mattis-hero {
    height: 100svh;
    min-height: 820px;
  }

  .mattis-hero__image { object-position: 52% center; }
  .mattis-hero__topbar { right: 18px; }
  .mattis-hero__nav > a:not(.mattis-hero__cta),
  .mattis-hero__nav > span { display: none; }
  .mattis-hero__cta { margin-left: 0; }

  .mattis-hero__identity-card {
    top: 46%;
    width: calc(100vw - 32px);
    min-height: 510px;
    aspect-ratio: auto;
    padding: 28px 22px;
  }

  .mattis-hero__title-row { height: 125px; }
  .mattis-hero__title-row h1 { font-size: clamp(50px, 15vw, 74px); }
  .mattis-hero__title-row sup { margin: 11px 0 0 7px; font-size: 14px; }
  .mattis-hero__meta { flex-direction: column; gap: 20px; margin-top: 18px; }
  .mattis-hero__statement { width: auto; font-size: 11px; }
  .mattis-hero__signature { top: 284px; left: 120px; transform: rotate(-2deg) scale(.55); transform-origin: left center; }
  .mattis-hero__services { left: 22px; bottom: 27px; gap: 10px; font-size: 14px; }
  .mattis-hero__statusbar { left: 16px; right: 16px; bottom: 15px; }
}

@media (max-width: 520px) {
  .mattis-hero__brand { gap: 9px; }
  .mattis-hero__brand-mark { width: 45px; height: 23px; }
  .mattis-hero__brand span { font-size: 11px; }
  .mattis-hero__cta { padding: 10px 11px; font-size: 10px; }
  .mattis-hero__identity-card { min-height: 490px; }
  .mattis-hero__title-row { height: 100px; }
  .mattis-hero__title-row h1 { font-size: 15vw; }
  .mattis-hero__signature { left: 55px; top: 242px; }
  .mattis-hero__statusbar > p { display: none; }
}

/* Keep the complete 1672 × 941 cover composition visible on phones. */
@media (max-width: 760px) {
  .mattis-hero {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    background: #090909;
  }

  .mattis-hero__stage {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 1672px;
    height: 941px;
    transform: scale(var(--mattis-mobile-scale, .2464));
    transform-origin: left top;
  }

  .mattis-hero__image {
    object-fit: contain;
    object-position: center;
  }

  .mattis-hero__identity-card {
    top: 49.75%;
    left: 49.25%;
    width: 832px;
    min-height: 0;
    aspect-ratio: 832 / 506;
    padding: 34px 33px 28px;
  }

  .mattis-hero__title-row {
    height: 165px;
  }

  .mattis-hero__title-row h1 {
    font-size: 110px;
  }

  .mattis-hero__title-row sup {
    margin: 6px 0 0 11px;
    font-size: 20px;
  }

  .mattis-hero__meta {
    flex-direction: row;
    gap: 0;
    margin-top: 25px;
  }

  .mattis-hero__statement {
    width: 384px;
    font-size: 12px;
  }

  .mattis-hero__signature {
    top: 229px;
    left: 443px;
    width: 640px;
    height: 220px;
    transform: none;
  }

  .mattis-hero__services {
    left: 33px;
    bottom: 29px;
    gap: 19px;
    font-size: 18px;
  }

  .mattis-hero__statusbar {
    left: 19px;
    right: 45px;
    bottom: 21px;
  }

  .mattis-hero__statusbar > p {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mattis-hero *,
  .mattis-hero *::before,
  .mattis-hero *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
