@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/bebas-neue-400.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Raleway";
  src: url("./fonts/raleway-400.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Raleway";
  src: url("./fonts/raleway-500.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "Raleway";
  src: url("./fonts/raleway-600.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #f95721;
  --border-radius: 32px;
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #050505;
  color: var(--text);
  font-family: "Raleway", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  padding: 34px 56px;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled-up {
}

.site-header.is-scrolled-up::before {
  opacity: 1;
}

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  font-size: 20px;
  line-height: 1.2;
  pointer-events: auto;
}

.site-nav a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.page section.is-reveal-ready {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.page section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero {
  position: relative;
  width: 100vw;
  min-height: min(100vh, 56.25vw);
}

.hero-media {
  position: relative;
  height: min(100vh, 56.25vw);
  min-height: min(100vh, 56.25vw);
  overflow: hidden;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  background: #0a2740;
  opacity: 0;
  transform: translate3d(0, -42px, 0) scale(1.02);
  transition:
    opacity 1s ease,
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hero.is-visible .hero-media {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(var(--hero-scale, 1));
}

.hero-parallax-scene {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.hero-static {
  display: none;
  width: 100%;
}

.hero-static img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-layer-pair {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translate3d(var(--hero-pair-x, 0px), calc(var(--hero-scroll-shift, 0px) + var(--hero-pair-y, 0px)), 0) scale(var(--hero-pair-scale, 1.03));
  transform-origin: center center;
  transition: transform 0.06s linear;
  will-change: transform;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.hero-layer-base {
  z-index: 1;
}

.hero-layer-front {
  z-index: 3;
}

.hero-layer-overlay {
  z-index: 4;
  object-fit: cover;
  object-position: center bottom;
}

.hero-layer-mid {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  transform: translate3d(var(--hero-mid-x, 0px), calc(var(--hero-scroll-shift, 0px) + var(--hero-mid-y, 0px)), 0) scale(var(--hero-mid-scale, 1.01));
  transform-origin: center center;
  transition: transform 0.06s linear;
  will-change: transform;
}

.about-section {
  width: 100%;
  padding: 0;
}

.about-section img {
  display: block;
  width: 100%;
  height: auto;
}

.illustration-section {
  width: 100%;
  padding: 0;
}

.illustration-section img {
  display: block;
  width: min(calc(100% - 112px), var(--container));
  margin: 0 auto;
  height: auto;
}

.portfolio-section {
  padding: 0;
}

.portfolio-slider {
  width: 100%;
}

.portfolio-strip {
  display: none;
}

.portfolio-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  transform-origin: center center;
  transition: opacity 0.35s ease;
}

.portfolio-image {
  display: block;
  width: 100%;
  height: auto;
  will-change: opacity;
}

.portfolio-image-base {
  position: relative;
  z-index: 2;
  transition: opacity 0.18s ease;
}

.portfolio-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  opacity: 0;
  width: 100%;
  pointer-events: none;
  display: none;
}

.portfolio-section.is-project-refresh .portfolio-image-base {
  opacity: 0.82;
}

.portfolio-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.portfolio-hitbox {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 86.962%;
  width: 3.056%;
  height: 5.737%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.portfolio-prev {
  left: 87.778%;
}

.portfolio-next {
  left: 91.389%;
}

.portfolio-strip-slide,
.portfolio-strip-slide picture,
.portfolio-strip-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-section {
  padding: 0;
}

.diagram-visual {
  position: relative;
  width: 100%;
}

.diagram-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.full-bleed {
  width: 100%;
}

.contact-section {
  width: 100%;
  padding: 0;
}

.contact-visual {
  position: relative;
  width: 100%;
}

.contact-section img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-hitbox {
  position: absolute;
  left: 75.208%;
  top: 60%;
  width: 20.069%;
  height: 17.111%;
  min-width: 120px;
  min-height: 44px;
  background: transparent;
  outline: none;
}

@media (max-width: 960px) {
  .site-header {
    justify-content: center;
    padding: 22px 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    font-size: 16px;
  }

  .hero-media {
    border-bottom-left-radius: 44px;
    border-bottom-right-radius: 44px;
  }

  .illustration-section img {
    width: calc(100% - 40px);
  }

  .about-section {
    padding: 0;
  }

  .portfolio-hitbox {
    width: 44px;
    height: 44px;
  }

  .portfolio-hitbox {
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 1200px) {
  .site-header {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: 100%;
    min-height: auto;
    height: auto;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    background: transparent;
    transform: none;
  }

  .hero.is-visible .hero-media {
    transform: none;
  }

  .hero-parallax-scene {
    display: none;
  }

  .hero-static {
    display: block;
    line-height: 0;
  }

  .illustration-section img {
    width: 100%;
    margin: 0;
  }

  .portfolio-slider-desktop {
    display: none;
  }

  .portfolio-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 24px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-strip::-webkit-scrollbar {
    display: none;
  }

  .portfolio-strip-slide {
    flex: 0 0 74%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .contact-hitbox {
    left: 3.957%;
    top: 61.165%;
    width: 34.652%;
    height: 24.919%;
    min-width: 72px;
    min-height: 44px;
  }
}

@media (min-width: 801px) and (max-width: 1200px) {
  .portfolio-strip {
    gap: 18px;
    padding: 0 20px;
    scroll-padding-left: 20px;
  }

  .portfolio-strip-slide {
    flex-basis: 41%;
  }
}

@media (max-width: 800px) {
  .hero-media {
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
  }

  .hero-static img {
    width: 100%;
    height: auto;
    max-width: none;
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
  }

  .portfolio-strip {
    gap: 14px;
    padding: 0 16px;
    scroll-padding-left: 16px;
  }

  .portfolio-strip-slide {
    flex-basis: 84%;
  }

  .contact-hitbox {
    left: 6.422%;
    top: 39.467%;
    width: 87.156%;
    height: 17.433%;
    min-width: 72px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .site-header::before,
  .hero-media,
  .hero-layer-pair,
  .hero-layer-mid,
  .page section.is-reveal-ready,
  .portfolio-visual {
    transition: none;
  }

  .hero-media,
  .hero.is-visible .hero-media,
  .hero-layer-pair,
  .hero-layer-mid,
  .page section.is-reveal-ready,
  .page section.is-visible,
  .portfolio-visual,
  .portfolio-section.is-visible .portfolio-visual {
    opacity: 1;
    filter: none;
  }

  .hero-layer-pair,
  .hero-layer-mid,
  .portfolio-visual,
  .portfolio-section.is-visible .portfolio-visual {
    transform: none;
  }

  .portfolio-image-base,
  .portfolio-image-overlay,
  .portfolio-section.is-switching .portfolio-image-base,
  .portfolio-section.is-switching .portfolio-image-overlay {
    transform: none;
  }
}
