@font-face {
  font-family: "Dominique";
  src: url("assets/fonts/Dominique-Light.woff2") format("woff2"),
       url("assets/fonts/Dominique-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Dominique";
  src: url("assets/fonts/Dominique-Regular.woff2") format("woff2"),
       url("assets/fonts/Dominique-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dominique";
  src: url("assets/fonts/Dominique-Black.woff2") format("woff2"),
       url("assets/fonts/Dominique-Black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}

:root {
  --blue: #0041ff;
  --pink: #ffa1f4;
  --black: #000;
  --white: #fff;
  --muted: #9f9f9f;
  --gutter: clamp(16px, 2.1vw, 27px);

  /* One Figma pixel. The design frame is 1280 × 832, so the hero scales with
     whichever viewport dimension runs out first, keeping that aspect ratio. */
  --u: min(100vw / 1280, 100svh / 832);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: var(--white);
  font-family: "Dominique", "Arial Narrow", Impact, sans-serif;
  overflow-x: hidden;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* Header: left / centered contact / right */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 21px var(--gutter) 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding-right: 28px;
}

.brand img { width: 133px; height: auto; aspect-ratio: 133 / 26.2464; }

.arrow {
  flex: 0 1 366px;
  min-width: 0;
  height: 21px;
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 43px;
  border-radius: 56px;
  background: var(--white);
  color: var(--blue);
  font-weight: 400;
  font-size: 16px;
  line-height: 0.845;
  padding-top: 1px;
  transition: background-color .2s, color .2s;
}
a.contact:hover { background: var(--pink); color: var(--black); }

.partilabs {
  position: relative;
  justify-self: end;
  width: 132px;
  aspect-ratio: 132 / 35.304;
  margin-top: -2px;
  transition: opacity .2s;
}
.partilabs:hover { opacity: .75; }
.partilabs-mark {
  position: absolute;
  top: 16.37%; left: 6.15%;
  width: 14.21%; height: 60.18%;
}
.partilabs-wordmark {
  position: absolute;
  left: 24.8%; top: 20.85%;
  width: 65.34%; height: 53.18%;
}

/* Hero: every size is in Figma pixels (--u) */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(90 * var(--u)) var(--gutter) 0;
}

.hero h1 { font-weight: 900; display: flex; flex-direction: column; align-items: center; }

.hero-title {
  color: var(--black);
  font-size: calc(152.325 * var(--u));
  line-height: 1;
  white-space: nowrap;
}

.hero-sub {
  color: var(--pink);
  font-size: calc(100 * var(--u));
  line-height: 0.845;
  max-width: calc(932 * var(--u));
  margin-top: calc(-6 * var(--u));
}

.definition {
  margin-top: calc(28 * var(--u));
  width: min(calc(892 * var(--u)), 100%);
  min-height: calc(62 * var(--u));
  padding: calc(16 * var(--u)) calc(24 * var(--u));
  border: 1px solid var(--white);
  opacity: .8;
  font-weight: 300;
  font-size: calc(32 * var(--u));
  line-height: 0.845;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Client marquee */
.clients {
  padding: calc(50 * var(--u)) 0 20px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  list-style: none;
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--marquee-speed, 60s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track li {
  flex-shrink: 0;
  padding-right: 80px; /* gap lives on the item so the loop seam matches */
  display: flex;
  align-items: center;
}

.marquee-track img { max-width: none; }

/* Logos built from two layered images */
.logo-upgrd, .logo-family { position: relative; display: block; }
.logo-upgrd { width: 242.828px; height: 40px; }
.logo-family { width: 118.618px; height: 72.008px; }
.logo-upgrd img, .logo-family img { position: absolute; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 62px;
  min-height: 31px;
  padding: 8px var(--gutter);
  background: rgba(0, 0, 0, .5);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a:hover { color: var(--white); }

/* Tablets and phones: the arrow has no room, and the hero scales off width
   alone so it fills the screen instead of shrinking with the tall viewport. */
@media (max-width: 900px) {
  .arrow { display: none; }
}

@media (max-width: 720px) {
  :root { --u: calc(100vw / 700); }
  .site-header { padding-top: 16px; }
  .header-left { padding-right: 8px; }
  .brand img { width: 100px; }
  .contact { width: 100px; height: 36px; font-size: 14px; }
  .partilabs { width: 96px; margin-top: 0; }
  .hero-sub { max-width: none; }
  .definition { width: 100%; font-size: 18px; padding: 14px 16px; }
  .site-footer { gap: 6px 24px; }
  .marquee-track li { padding-right: 56px; }
  .marquee-track li > * { zoom: .75; }
}
