/* ========================================
   RESET / GLOBAL
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: white;
  color: black;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* ========================================
   PAGE LOADER
======================================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.page-loader-logo {
  width: 180px;
  height: auto;
  display: block;
}

.page-loader-text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ========================================
   REVEAL
======================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   TICKER
======================================== */

.ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: black;
  color: white;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.top-ticker {
  position: relative;
  z-index: 5;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.transition-ticker-section {
  margin-top: 14px;
}

/* ========================================
   LANDING
======================================== */

.landing-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: black;
}

.landing-image {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.05) translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100% - 48px));
  text-align: center;
  pointer-events: none;
}

.center-logo img {
  width: min(340px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-slagord {
  margin: 18px 0 0 0;
  color: white;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ========================================
   NAVBAR
======================================== */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  background: transparent;
  opacity: 0;
  transform: translateY(-60px);
  transition:
    transform 0.9s ease,
    opacity 0.9s ease,
    background 0.35s ease,
    backdrop-filter 0.35s ease;
}

.navbar.show {
  opacity: 1;
  transform: translateY(0);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 20;
}

.nav-logo img {
  width: 110px;
  height: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 90px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: 700;
}

/* ========================================
   HAMBURGER BUTTON
======================================== */

.menu-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  z-index: 45;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.3s ease;
}

.navbar.show .menu-toggle {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: black;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.menu-overlay {
  display: none;
}

/* ========================================
   CAROUSEL
======================================== */

.slider-section {
  padding: 80px 24px;
}

.slider-wrap {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.carousel {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout paint style;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-frame {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.slide-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel.is-dragging .slide-frame img {
  pointer-events: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: black;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.04);
}

.slider-btn.prev {
  left: -12px;
}

.slider-btn.next {
  right: -12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-dots button,
.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active,
.carousel-dot.active {
  background: black;
}

/* ========================================
   CTA
======================================== */

.work-cta-section {
  padding: 28px 24px 14px;
}

.work-cta-box {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: 24px;
  background: #f7f7f7;
  text-align: center;
}

.work-cta-box h2 {
  margin: 0 0 22px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.work-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: black;
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button-secondary {
  background: white;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   CONTENT
======================================== */

.content-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.content-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 52px 0;
}

.content-row.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.content-row.reverse .content-text {
  order: 2;
}

.content-row.reverse .content-image {
  order: 1;
}

.content-text h2 {
  margin: 0 0 18px 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -1px;
}

.content-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  max-width: 62ch;
}

.content-image img,
.footer-logo img,
.page-loader-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.content-image {
  width: 100%;
}

.content-image img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  background: #f3f3f3;
}

.software-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.software-logos img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  flex: 0 0 56px;
}

.experience-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.experience-stat-box {
  min-width: 130px;
  padding: 20px 18px;
  border-radius: 18px;
  background: #f6f6f6;
}

.experience-stat-box strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.experience-stat-box span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
  display: block;
  text-align: center;
  margin: 100px 0 60px 0;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
  opacity: 0.85;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.back-to-top::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: black;
  margin: 0 auto 12px auto;
  opacity: 0.6;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: black;
  color: white;
  padding: 48px 56px;
  margin: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: start;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
}

.footer-column p,
.footer-column a {
  margin: 0 0 6px 0;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-column a:hover {
  opacity: 0.8;
}

.footer-logo {
  align-self: start;
  justify-self: end;
}

.footer-logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ========================================
   FLOATING TOP BUTTON
======================================== */

.floating-top {
  display: none;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-logo {
    justify-self: start;
    margin-top: 20px;
  }

  .nav-logo {
    left: 32px;
  }

  .nav-logo img {
    width: 96px;
  }

  .nav-links {
    gap: 64px;
  }

  .content-row,
  .content-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-row.reverse .content-text,
  .content-row.reverse .content-image {
    order: initial;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  .ticker-text {
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 1.1px;
  }

  .landing-section {
    min-height: 86svh;
  }

  .landing-image {
    height: 86svh;
  }

  .center-logo {
    width: calc(100% - 40px);
  }

  .center-logo img {
    width: min(240px, 100%);
  }

  .logo-slagord {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-top: 14px;
  }

  .navbar {
    top: 60px;
    padding: 0;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 50;
  }

  .nav-logo {
    left: 20px;
    top: 0;
    transform: none;
  }

  .nav-logo img {
    width: 88px;
  }

  .menu-toggle {
    display: block;
    top: 0;
    right: 20px;
    width: 44px;
    height: 44px;
    z-index: 60;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 40;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 20px;
    width: 220px;
    margin: 0;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 55;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    text-shadow: none;
    color: black;
  }

  .nav-links a::after {
    display: none;
  }

  .slider-section {
    padding: 56px 16px;
  }

  .slide-frame {
    max-width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .slider-btn.prev {
    left: 4px;
  }

  .slider-btn.next {
    right: 4px;
  }

  .work-cta-section {
    padding: 14px 16px 0;
  }

  .work-cta-box {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .content-section {
    width: calc(100% - 32px);
    padding-top: 34px;
  }

  .content-row {
    padding: 34px 0;
  }

  .content-text h2 {
    font-size: 38px;
  }

  .content-text p {
    font-size: 16px;
    line-height: 1.7;
  }

  .software-logos {
    gap: 14px;
  }

  .software-logos img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .back-to-top {
    margin: 70px 0 44px 0;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .site-footer {
    padding: 36px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .footer-logo {
    justify-self: start;
    margin-top: 6px;
  }

  .footer-logo img {
    width: 78px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 54px;
  }

  .nav-logo {
    left: 16px;
  }

  .nav-logo img {
    width: 78px;
  }

  .menu-toggle {
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .nav-links {
    top: 52px;
    right: 16px;
    width: 200px;
  }

  .content-text h2 {
    font-size: 32px;
  }

  .site-footer {
    padding: 30px 20px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 14px;
  }

  .footer-logo img {
    width: 68px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }

  .landing-image,
  .center-logo img,
  .ticker-text,
  .carousel-track {
    transform: none !important;
  }
}