:root {
  --motion-orange: #ff6b00;
  --motion-ink: #1a1c20;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

html {
  background: var(--motion-ink);
}

body {
  overflow-x: clip;
}

.font-display,
.logo-underscore,
.hero-inline-cursor {
  font-family: "Righteous", "Arial Black", Impact, sans-serif !important;
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ff6b00, #ffb067);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.75);
  will-change: transform;
}

.site-header {
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0);
}

.site-header.is-scrolled {
  background: rgba(19, 21, 24, 0.8) !important;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 450ms var(--motion-ease);
  background: var(--motion-orange);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hero-scene {
  min-height: 100svh;
  isolation: isolate;
  background: #111317;
  --hero-fade: 0;
}

.hero-media {
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(1.085);
  will-change: transform;
}

.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  filter: saturate(0.52) contrast(1.12) brightness(0.72);
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(15, 17, 20, 0.86), rgba(15, 17, 20, 0.18) 50%, rgba(15, 17, 20, 0.78)),
    linear-gradient(to bottom, rgba(15, 17, 20, 0.26), rgba(26, 28, 32, 0.72) 68%, #1a1c20 100%) !important;
}

.hero-grid {
  position: absolute;
  z-index: 1;
  inset: 42% -12% -38%;
  opacity: 0.18;
  transform: perspective(520px) rotateX(63deg) translateY(16%);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, transparent 83%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, transparent 83%);
  animation: grid-drift 12s linear infinite;
}

.hero-frame {
  position: absolute;
  z-index: 3;
  inset: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  content: "";
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(255, 107, 0, 0.7);
  border-left: 1px solid rgba(255, 107, 0, 0.7);
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(255, 107, 0, 0.7);
  border-bottom: 1px solid rgba(255, 107, 0, 0.7);
}

.hero-meta {
  position: absolute;
  z-index: 4;
  top: 50%;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-meta-left {
  left: 2.05rem;
  transform: translateY(-50%) rotate(180deg);
}

.hero-meta-right {
  right: 2.05rem;
  transform: translateY(-50%);
}

.hero-content {
  transform: translate3d(0, calc(var(--hero-fade) * 54px), 0);
  opacity: calc(1 - var(--hero-fade));
  will-change: transform, opacity;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 900ms 120ms var(--motion-ease) forwards;
}

.hero-kicker span {
  width: 2.75rem;
  height: 1px;
  background: var(--motion-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
}

.hero-title {
  font-size: clamp(4.6rem, 11.2vw, 9.8rem) !important;
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  text-shadow: 0 16px 55px rgba(0, 0, 0, 0.52);
  animation: hero-enter 1.15s 180ms var(--motion-ease) forwards;
}

.hero-tagline {
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-enter 1s 440ms var(--motion-ease) forwards;
}

.scroll-cue {
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: calc(0.75 - var(--hero-fade));
}

.scroll-cue i {
  display: block;
  width: 0.78rem;
  height: 0.78rem;
  border-right: 1px solid var(--motion-orange);
  border-bottom: 1px solid var(--motion-orange);
  transform: rotate(45deg);
  animation: cue-drop 1.8s var(--motion-ease) infinite;
}

section:not(.hero-scene),
footer {
  position: relative;
  isolation: isolate;
}

section:not(.hero-scene)::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition:
    opacity 900ms var(--motion-ease),
    transform 900ms var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="left"] {
  transform: translate3d(-46px, 0, 0);
}

.motion-ready [data-reveal="right"] {
  transform: translate3d(46px, 0, 0);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.service-row {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-row::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: min(18rem, 36%);
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--motion-orange), transparent);
  transition: transform 1.1s 280ms var(--motion-ease);
}

.service-row.is-visible::after {
  transform: scaleX(1);
}

.service-number {
  transition:
    color 450ms ease,
    transform 650ms var(--motion-ease),
    text-shadow 450ms ease;
}

.service-row:hover .service-number {
  color: rgba(255, 107, 0, 0.19) !important;
  transform: translateX(0.12em);
  text-shadow: 0 0 35px rgba(255, 107, 0, 0.13);
}

.service-accent {
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 650ms var(--motion-ease);
}

.service-row:hover .service-accent {
  transform: scaleX(1.35);
}

#solutions {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 107, 0, 0.055), transparent 31%),
    rgba(26, 28, 32, 0.5) !important;
}

.solution-row {
  position: relative;
}

.solution-row::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -18%;
  width: 42rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.solution-row:nth-child(even)::before {
  right: auto;
  left: -18%;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --image-x: 0px;
  --image-y: 0px;
  position: relative;
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.34);
  transition:
    transform 180ms ease-out,
    border-color 400ms ease,
    box-shadow 500ms ease;
  will-change: transform;
}

.tilt-card::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.17), transparent 30%);
  transition: opacity 350ms ease;
}

.tilt-card:hover {
  border-color: rgba(255, 107, 0, 0.34) !important;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 107, 0, 0.07);
}

.tilt-card:hover::after {
  opacity: 1;
}

.tilt-card img {
  transform: translate3d(var(--image-x), var(--image-y), 18px) scale(1.045);
  transition: transform 220ms ease-out !important;
  will-change: transform;
}

#clients {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 107, 0, 0.1), transparent 43%),
    #1a1c20 !important;
}

.client-logo {
  position: relative;
  overflow: hidden;
  height: 8.75rem;
  min-height: 8.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
  transition:
    opacity 900ms var(--motion-ease),
    transform 600ms var(--motion-ease),
    border-color 350ms ease,
    box-shadow 500ms ease;
}

.client-logo::after {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -65%;
  width: 34%;
  content: "";
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transition: left 850ms var(--motion-ease);
}

.client-logo:hover {
  z-index: 2;
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(255, 107, 0, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 35px rgba(255, 107, 0, 0.08);
}

.motion-ready .client-logo.is-visible:hover {
  transform: translateY(-8px) scale(1.025);
}

.client-logo:hover::after {
  left: 130%;
}

.client-logo img {
  filter: saturate(0.82);
  transition: filter 450ms ease, transform 600ms var(--motion-ease);
}

.client-logo:hover img {
  filter: saturate(1);
  transform: scale(1.05);
}

.client-logo--fill {
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

.client-logo--fill:hover {
  border-color: transparent !important;
}

.logo-grid .client-logo--fill img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transform: scale(0.82);
  filter: none;
}

.client-logo--avrotros {
  background: #010449 !important;
}

.client-logo--garansys {
  background: #fed300 !important;
}

.logo-grid .client-logo--fill:hover img {
  transform: scale(0.86);
  filter: none;
}

.client-logo--rtv {
  padding: 0 !important;
  border-color: transparent !important;
  background: #d52027 !important;
}

.client-logo--rtv:hover {
  border-color: transparent !important;
}

.logo-grid .client-logo--rtv img {
  width: auto;
  height: 6.4rem;
  max-width: 82%;
  max-height: 6.4rem;
  object-fit: contain;
  filter: none;
}

.logo-grid .client-logo--rtv:hover img {
  filter: none;
}

.client-logo--boost {
  padding: 1.1rem !important;
}

.logo-grid .client-logo--boost img {
  max-width: 92%;
  max-height: 5.5rem;
}

.client-logo--nlpo {
  padding: 1.1rem !important;
}

.logo-grid .client-logo--nlpo img {
  width: min(78%, 14rem);
  max-height: 4.75rem;
}

footer::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 8%;
  width: 84%;
  height: 16rem;
  content: "";
  opacity: 0.45;
  background: radial-gradient(ellipse at top, rgba(255, 107, 0, 0.14), transparent 67%);
}

@keyframes grid-drift {
  to {
    background-position: 0 72px, 72px 0;
  }
}

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

@keyframes cue-drop {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(7px) rotate(45deg);
  }
}

@media (max-width: 767px) {
  .hero-frame {
    inset: 0.75rem;
  }

  .hero-meta {
    display: none;
  }

  .hero-kicker {
    margin-bottom: 1.45rem;
    font-size: 0.54rem;
    letter-spacing: 0.22em;
  }

  .hero-kicker span {
    width: 1.65rem;
  }

  .hero-title {
    font-size: clamp(3.6rem, 21vw, 6.2rem) !important;
    margin-bottom: 1.35rem !important;
  }

  .hero-tagline {
    font-size: 1.08rem !important;
  }

  .hero-grid {
    inset: 52% -70% -28%;
    opacity: 0.13;
  }

  .scroll-cue span {
    display: none;
  }

  .service-row {
    padding-top: 1.2rem;
  }

  .client-logo {
    height: 6.8rem;
    min-height: 6.8rem;
    padding: 1rem !important;
  }

  .client-logo--rtv {
    padding: 0 !important;
  }

  .client-logo--fill {
    padding: 0 !important;
  }

  .logo-grid .client-logo--rtv img {
    height: 4.9rem;
    max-height: 4.9rem;
  }

  .client-logo--boost {
    padding: 0.65rem !important;
  }

  .logo-grid .client-logo--boost img {
    max-width: 96%;
    max-height: 4.5rem;
  }

  .logo-grid {
    gap: 1rem !important;
  }
}

@media (min-width: 1024px) {
  .logo-grid:has(> :nth-child(9):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .logo-grid:has(> :nth-child(9):last-child) > :last-child {
    width: calc(50% - 0.5rem);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (hover: none), (pointer: coarse) {
  .tilt-card,
  .tilt-card img {
    transform: none;
  }
}

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

  .motion-ready [data-reveal],
  .hero-kicker,
  .hero-title,
  .hero-tagline {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-media,
  .hero-content,
  .tilt-card,
  .tilt-card img {
    transform: none !important;
  }

  .hero-grid {
    display: none;
  }
}
