/* ============================================================
   LIFTURA GROUP — main.css
   Liquid Glass Edition — Apple iOS 26 / macOS Tahoe aesthetic
   Order: variables → reset → typography → layout →
          components → header → sections → footer →
          utilities → responsive
   ============================================================ */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --lf-black:    #0D0D0D;
  --lf-white:    #FFFFFF;
  --lf-gray-bg:  #F3F2FA;
  --lf-gray-mid: #E2E0F0;
  --lf-gray-text:#8E8DA2;
  --lf-ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --lf-header-h: 72px;

  /* Glass material */
  --lf-glass-l:     rgba(255, 255, 255, 0.62);
  --lf-glass-l-hov: rgba(255, 255, 255, 0.78);
  --lf-glass-d:     rgba(18, 16, 30, 0.72);
  --lf-blur:        blur(24px) saturate(180%);
  --lf-border-l:    rgba(255, 255, 255, 0.46);
  --lf-border-d:    rgba(255, 255, 255, 0.09);
  --lf-shine-l:     inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --lf-shine-d:     inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --lf-shadow-l:    0 8px 32px rgba(80, 60, 160, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --lf-shadow-d:    0 16px 48px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.15);

  /* Radius */
  --r-sm:   14px;
  --r-md:   22px;
  --r-lg:   30px;
  --r-pill: 100px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

ul, ol {
  list-style: none;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lf-black);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(160, 120, 255, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(80, 150, 255, 0.07) 0%, transparent 50%),
    #F3F2FA;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
main {
  display: block;
}

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--lf-white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 14px 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  box-shadow: var(--lf-shine-l);
  transition: background 0.3s var(--lf-ease),
              border-color 0.3s var(--lf-ease),
              box-shadow 0.3s var(--lf-ease);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: var(--lf-shine-l), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-dark {
  display: inline-block;
  border: 1px solid var(--lf-border-d);
  color: var(--lf-white);
  background: var(--lf-glass-d);
  backdrop-filter: var(--lf-blur);
  -webkit-backdrop-filter: var(--lf-blur);
  padding: 16px 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  box-shadow: var(--lf-shine-d), var(--lf-shadow-d);
  transition: background 0.3s var(--lf-ease),
              border-color 0.3s var(--lf-ease),
              box-shadow 0.3s var(--lf-ease);
}

.btn-dark:hover {
  background: rgba(28, 26, 44, 0.82);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--lf-shine-d), 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   COMPONENTS — SECTION LABELS
   ============================================================ */
.section-num {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--lf-gray-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

/* ============================================================
   COMPONENTS — REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s var(--lf-ease), transform 0.7s var(--lf-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   HEADER  — floating glass pill
   ============================================================ */
#site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  height: 56px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  color: var(--lf-black);

  border-radius: var(--r-pill);
  background: var(--lf-glass-l);
  backdrop-filter: var(--lf-blur);
  -webkit-backdrop-filter: var(--lf-blur);
  border: 1px solid var(--lf-border-l);
  box-shadow:
    var(--lf-shine-l),
    0 4px 24px rgba(80, 60, 160, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);

  transition: background 0.4s var(--lf-ease),
              border-color 0.4s var(--lf-ease),
              box-shadow 0.4s var(--lf-ease),
              color 0.4s var(--lf-ease);
}

/* Over dark hero */
#site-header.header-light:not(.scrolled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 24px rgba(0, 0, 0, 0.2);
  color: var(--lf-white);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    var(--lf-shine-l),
    0 8px 32px rgba(80, 60, 160, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.05);
  color: var(--lf-black);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.logo svg {
  height: 22px;
  width: auto;
}

/* Nav menu */
.nav-menu ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu ul li a {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: currentColor;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s var(--lf-ease);
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--lf-ease);
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--lf-ease), opacity 0.3s var(--lf-ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(160, 120, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(80, 160, 255, 0.09) 0%, transparent 50%),
    #F3F2FA;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--lf-ease);
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#page-loader svg {
  height: 28px;
  width: auto;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  #cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: var(--lf-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.35s var(--lf-ease),
                height 0.35s var(--lf-ease),
                background 0.25s var(--lf-ease),
                mix-blend-mode 0.1s,
                opacity 0.2s var(--lf-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--lf-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: opacity 0.2s var(--lf-ease),
                width 0.2s var(--lf-ease),
                height 0.2s var(--lf-ease);
  }

  #cursor.cursor-portfolio {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.95);
    mix-blend-mode: normal;
  }

  #cursor.cursor-link {
    width: 24px;
    height: 24px;
    opacity: 0.6;
  }

  #cursor.cursor-portfolio ~ #cursor-dot {
    opacity: 0;
  }

  #cursor__label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--lf-black);
    text-transform: uppercase;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s var(--lf-ease);
    pointer-events: none;
    user-select: none;
  }

  #cursor.cursor-portfolio #cursor__label {
    opacity: 1;
  }
}

/* ============================================================
   SECTION — HERO
   ============================================================ */
.hero-scroll-wrapper {
  position: relative;
  height: 500vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 100%;
  background: #08080E;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(80, 40, 180, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
  padding-right: 10%;
  z-index: 2;
  color: var(--lf-white);
}

.hero__label {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.6;
  margin-bottom: 24px;
  display: block;
  text-transform: uppercase;
}

.hero__headline {
  font-weight: 600;
  font-size: clamp(56px, 10vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--lf-white);
}

.hero__headline .line {
  display: block;
  font-size: clamp(56px, 10vw, 108px);
}

.hero__sub {
  font-weight: 300;
  font-size: 18px;
  opacity: 0.75;
  max-width: 440px;
  margin: 20px 0 40px;
  line-height: 1.7;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--lf-white);
  opacity: 0.45;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s var(--lf-ease) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.hero--no-video {
  background: #08080E;
}

/* Hero entrance animation */
.hero-word-wrap {
  display: block;
  overflow: hidden;
  line-height: 0.95;
}

.hero-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero__label,
.hero__sub,
.hero__content .btn-primary {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

/* ============================================================
   COMPONENT — MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--lf-border-l);
  border-bottom: 1px solid var(--lf-border-l);
  box-shadow: var(--lf-shine-l);
  padding: 20px 0;
}

.marquee__track {
  display: inline-flex;
  gap: 48px;
  animation: marqueeScroll 20s linear infinite;
}

.marquee__track span {
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  color: var(--lf-gray-text);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

/* ============================================================
   SECTION — ABOUT
   ============================================================ */
.about {
  background:
    radial-gradient(ellipse at 20% 35%, rgba(148, 100, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 65%, rgba(80, 150, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 55% 90%, rgba(255, 100, 200, 0.07) 0%, transparent 45%),
    #EEECf8;
  padding: 140px 10%;
}

.about__inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 80px;
  align-items: start;
  background: var(--lf-glass-l);
  backdrop-filter: var(--lf-blur);
  -webkit-backdrop-filter: var(--lf-blur);
  border: 1px solid var(--lf-border-l);
  border-radius: var(--r-lg);
  padding: 72px 64px;
  box-shadow:
    var(--lf-shine-l),
    0 24px 64px rgba(80, 60, 160, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.04);
}

.about__num {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--lf-gray-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.about__headline {
  font-weight: 600;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  position: relative;
  overflow: visible;
}

.about-headline-back {
  display: block;
  color: var(--lf-gray-mid);
}

.about-headline-fill {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--lf-black);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

.about__divider {
  width: 48px;
  height: 1px;
  background: rgba(80, 60, 160, 0.3);
  margin-bottom: 28px;
}

.about__body {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: #3A3845;
  max-width: 520px;
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--lf-border-l);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--lf-shine-l), 0 4px 16px rgba(80, 60, 160, 0.06);
  transition: background 0.3s var(--lf-ease), transform 0.3s var(--lf-ease);
}

.about__stat:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-3px);
}

.about__stat-value {
  font-weight: 600;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  background: linear-gradient(135deg, #5A3FD0 0%, #3A80E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--lf-gray-text);
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ============================================================
   SECTION — SERVICES
   ============================================================ */
.services {
  background:
    radial-gradient(ellipse at 25% 45%, rgba(90, 50, 220, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(40, 70, 200, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(120, 40, 180, 0.15) 0%, transparent 45%),
    #070710;
  color: var(--lf-white);
  position: relative;
}

.services__inner {
  padding: 140px 10%;
}

.services__header {
  margin-bottom: 72px;
  max-width: 560px;
}

.services__header .section-num {
  color: rgba(255,255,255,0.28);
  margin-bottom: 16px;
}

.services__headline {
  font-weight: 600;
  font-size: clamp(34px, 3.2vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--lf-white);
}

/* Service items — dark glass cards */
.service-item {
  display: grid;
  grid-template-columns: 72px 1fr 340px 40px;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  margin-bottom: 10px;
  position: relative;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--lf-shine-d);
  transition: background 0.35s var(--lf-ease),
              border-color 0.35s var(--lf-ease),
              transform 0.35s var(--lf-ease),
              box-shadow 0.35s var(--lf-ease);
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--lf-shine-d), 0 20px 56px rgba(0, 0, 0, 0.35);
}

.service-num {
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
  display: block;
  text-transform: uppercase;
  align-self: start;
  padding-top: 6px;
  margin-bottom: 0;
}

.service-title {
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--lf-white);
  line-height: 1.1;
  margin-bottom: 0;
  transition: opacity 0.3s var(--lf-ease);
}

.service-desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.38);
}

.service-arrow {
  font-size: 18px;
  display: block;
  opacity: 0.18;
  color: var(--lf-white);
  justify-self: end;
  margin-top: 0;
  transition: opacity 0.3s var(--lf-ease), transform 0.3s var(--lf-ease);
}

.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* ============================================================
   SECTION — PORTFOLIO
   ============================================================ */
.portfolio {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(70, 30, 180, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(20, 60, 160, 0.2) 0%, transparent 55%),
    #06060D;
  padding: 120px 10%;
  color: var(--lf-white);
}

.portfolio__header {
  margin-bottom: 64px;
}

.portfolio__header .section-num {
  color: rgba(255,255,255,0.35);
}

.portfolio__headline {
  font-weight: 600;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.02em;
  color: var(--lf-white);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
}

.portfolio-item__inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #12101C;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-item__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-md);
}

.portfolio-item__thumb-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.7s var(--lf-ease);
  background: #14111E;
  border-radius: var(--r-md);
}

.portfolio-item__thumb-iframe {
  width: 1440px;
  height: 1080px;
  transform: scale(0.45);
  transform-origin: top left;
  pointer-events: none;
  border: none;
  display: block;
}

.portfolio-item:hover .portfolio-item__thumb-wrap {
  transform: scale(1.04);
}

.portfolio-item__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--lf-ease);
  display: block;
  position: relative;
  z-index: 1;
}

.portfolio-item:hover .portfolio-item__inner img {
  transform: scale(1.04);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transform: translateY(12px);
  transition: transform 0.4s var(--lf-ease);
  z-index: 2;
  border-radius: var(--r-md);
}

.portfolio-item:hover .portfolio-item__overlay {
  transform: translateY(0);
}

.portfolio-item__cat {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.portfolio-item__title {
  font-weight: 600;
  font-size: 20px;
  color: var(--lf-white);
  letter-spacing: -0.01em;
}

@keyframes snap {
  0%   { filter: brightness(1) contrast(1); }
  30%  { filter: brightness(1.15) contrast(1.2) saturate(0); }
  60%  { filter: brightness(0.95) contrast(0.95); }
  100% { filter: brightness(1) contrast(1); }
}

.portfolio-item:hover .portfolio-item__inner img,
.portfolio-item:hover .portfolio-item__placeholder,
.portfolio-item:hover .portfolio-item__thumb-wrap {
  animation: snap 0.3s ease forwards;
}

.portfolio__footer {
  text-align: center;
  margin-top: 64px;
}

.portfolio__link {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
  transition: color 0.3s var(--lf-ease), border-color 0.3s var(--lf-ease);
}

.portfolio__link:hover {
  color: var(--lf-white);
  border-color: var(--lf-white);
}

/* ============================================================
   SECTION — CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(ellipse at 80% 15%, rgba(180, 80, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(60, 160, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 120, 180, 0.06) 0%, transparent 50%),
    #EEECf8;
  padding: 160px 10%;
  position: relative;
  overflow: hidden;
}

.contact__bg-num {
  position: absolute;
  right: -2%;
  bottom: -10%;
  font-size: 30vw;
  font-weight: 600;
  line-height: 1;
  color: rgba(148, 100, 255, 0.06);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__left .section-num {
  margin-bottom: 20px;
}

.contact__headline {
  font-weight: 600;
  font-size: clamp(48px, 9vw, 128px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 32px;
}

.contact__sub {
  font-weight: 300;
  font-size: 17px;
  color: var(--lf-gray-text);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 380px;
}

.contact__email {
  font-weight: 400;
  font-size: 14px;
  color: var(--lf-black);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid var(--lf-gray-mid);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--lf-ease);
}

.contact__email:hover {
  border-color: rgba(80, 60, 160, 0.5);
}

/* Glass card wrapping the form */
.contact__right {
  background: var(--lf-glass-l);
  backdrop-filter: var(--lf-blur);
  -webkit-backdrop-filter: var(--lf-blur);
  border: 1px solid var(--lf-border-l);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  box-shadow:
    var(--lf-shine-l),
    0 24px 64px rgba(80, 60, 160, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-gray-text);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--lf-gray-mid);
  padding: 10px 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--lf-black);
  background: transparent;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.3s var(--lf-ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--lf-gray-text);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: rgba(80, 60, 160, 0.55);
}

.form-group textarea {
  resize: none;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  min-width: 200px;
  position: relative;
}

.form-submit:disabled {
  opacity: 0.6;
}

.btn-loading {
  display: none;
}

.form-submit.submitting .btn-text {
  display: none;
}

.form-submit.submitting .btn-loading {
  display: inline;
}

/* Form success state */
.form-success {
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--lf-border-l);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: var(--lf-shine-l);
}

.form-success__icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: #5A3FD0;
}

.form-success p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lf-gray-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(70, 40, 180, 0.22) 0%, transparent 55%),
    #08080E;
  padding: 40px 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__logo svg {
  height: 20px;
  width: auto;
  opacity: 0.8;
}

.footer__copy {
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.footer__social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.3s var(--lf-ease);
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--lf-white);
}

/* ============================================================
   PORTFOLIO MODAL  — glass panel
   ============================================================ */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pf-modal[hidden] {
  display: none;
}

.pf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 18, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.pf-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  height: 88vh;
  background: rgba(12, 10, 22, 0.88);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  box-shadow:
    var(--lf-shine-d),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.pf-modal__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.pf-modal__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
  flex-shrink: 0;
}

.pf-modal__title-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  text-align: center;
}

.pf-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: color 0.2s var(--lf-ease), background 0.2s var(--lf-ease);
  border-radius: var(--r-pill);
}

.pf-modal__close:hover {
  color: var(--lf-white);
  background: rgba(255, 255, 255, 0.08);
}

.pf-modal__frame-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.pf-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
  font-weight: 300;
  pointer-events: none;
}

#pf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--lf-white);
}

/* Restore the spec'd behavior of the [hidden] attribute.
   Needed because high-specificity rules like #pf-iframe { display: block }
   would otherwise win against the UA stylesheet's [hidden] rule. */
[hidden] {
  display: none !important;
}

.pf-modal__blocked {
  flex-shrink: 0;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pf-modal__blocked p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}

.pf-modal__blocked-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--lf-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--lf-ease);
}

.pf-modal__blocked-link:hover {
  border-color: var(--lf-white);
}

/* Touch devices */
@media (pointer: coarse) {
  .portfolio-item[data-url] {
    cursor: pointer;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: rgba(100, 70, 220, 0.25);
  color: var(--lf-black);
}

::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: #F3F2FA; }
::-webkit-scrollbar-thumb  { background: rgba(148, 100, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 100, 255, 0.5); }

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .about__inner {
    gap: 48px;
    padding: 56px 48px;
  }

  .contact__inner {
    gap: 60px;
  }
}

/* ============================================================
   RESPONSIVE — 768px (tablet / mobile)
   ============================================================ */
@media (max-width: 768px) {

  /* === HEADER === */
  #site-header {
    top: 12px;
    width: calc(100% - 24px);
    height: 52px;
    padding: 0 20px;
    border-radius: var(--r-pill);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  /* Mobile nav — dropdown panel below the header pill */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--lf-border-l);
    border-radius: var(--r-lg);
    box-shadow: var(--lf-shine-l), 0 16px 48px rgba(80, 60, 160, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s var(--lf-ease), visibility 0s 0.22s, transform 0.22s var(--lf-ease);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.22s var(--lf-ease), visibility 0s, transform 0.22s var(--lf-ease);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
  }

  .nav-menu ul li {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s var(--lf-ease), transform 0.2s var(--lf-ease);
  }

  .nav-menu.active ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active ul li:nth-child(1) { transition-delay: 0.06s; }
  .nav-menu.active ul li:nth-child(2) { transition-delay: 0.10s; }
  .nav-menu.active ul li:nth-child(3) { transition-delay: 0.14s; }
  .nav-menu.active ul li:nth-child(4) { transition-delay: 0.18s; }

  .nav-menu ul li a {
    font-size: 16px;
    font-weight: 400;
    color: var(--lf-black);
    letter-spacing: 0.03em;
    padding: 15px 16px;
    display: block;
    border-radius: var(--r-sm);
    transition: background 0.14s ease;
  }

  .nav-menu ul li a:active {
    background: rgba(90, 63, 208, 0.07);
  }

  .nav-menu ul li a::after {
    display: none;
  }

  /* === HERO === */
  .hero__content {
    padding-left: 6%;
    padding-right: 6%;
    justify-content: flex-end;
    padding-bottom: 100px;
  }

  .hero__headline {
    font-size: clamp(48px, 11vw, 72px);
  }

  .hero__sub {
    font-size: 15px;
    margin: 16px 0 32px;
  }

  .hero__scroll-hint {
    bottom: 24px;
  }

  /* === PORTFOLIO MODAL === */
  .pf-modal {
    padding: 0;
    align-items: flex-end;
  }

  .pf-modal__panel {
    max-width: 100%;
    height: 92vh;
    height: 92svh;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  /* === MARQUEE === */
  .marquee__track {
    animation-duration: 14s;
  }

  /* === ABOUT === */
  .about {
    padding: 80px 6%;
  }

  .about__headline {
    font-size: clamp(44px, 9vw, 72px);
    margin-bottom: 28px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 28px;
  }

  .about__right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .about__stat {
    flex: 1 1 calc(50% - 6px);
    padding: 20px 16px;
  }

  /* === SERVICES === */
  .services__inner {
    padding: 80px 6%;
  }

  .service-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 16px;
    padding: 28px 24px;
  }

  .service-num {
    grid-column: 1;
    grid-row: 1;
    padding-top: 4px;
  }

  .service-title {
    grid-column: 2;
    grid-row: 1;
  }

  .service-desc {
    grid-column: 2;
    grid-row: 2;
  }

  .service-arrow {
    display: none;
  }

  /* === PORTFOLIO === */
  .portfolio {
    padding: 80px 6%;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* === CONTACT === */
  .contact {
    padding: 100px 6%;
  }

  .contact__headline {
    font-size: clamp(38px, 9vw, 58px);
    line-height: 1.0;
    margin-bottom: 24px;
  }

  .contact__bg-num {
    font-size: 45vw;
    right: -4%;
    bottom: -4%;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__right {
    padding: 36px 28px;
    border-radius: var(--r-md);
  }

  /* Prevent iOS from zooming on input focus */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }

  /* === FOOTER === */
  #site-footer {
    padding: 32px 6%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* === HERO SCROLL — 500vh is unusable on mobile === */
  .hero-scroll-wrapper {
    height: 220vh;
  }

  /* === SERVICES === */
  .services__header {
    margin-bottom: 40px;
  }

  .service-item.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .service-desc {
    color: rgba(255, 255, 255, 0.5);
  }

  /* === TOUCH TARGETS — min 48px for comfortable thumb use === */
  .btn-primary,
  .btn-dark {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* === ABOUT STATS — right-column value stays readable === */
  .about__stat-value {
    font-size: clamp(40px, 8vw, 56px);
  }

  /* === CONTACT FORM — stretch CTA across full width === */
  .contact__right .btn-dark {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — 480px (small mobile)
   ============================================================ */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero__sub {
    font-size: 14px;
  }

  .hero-word-wrap {
    line-height: 1.0;
  }

  .about__headline {
    font-size: clamp(36px, 10vw, 52px);
  }

  .about__divider {
    margin-bottom: 20px;
  }

  .about__right {
    flex-direction: column;
  }

  .about__stat {
    flex: 1 1 100%;
  }

  .contact__headline {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.05;
  }

  .contact__bg-num {
    font-size: 52vw;
  }

  .portfolio__header {
    margin-bottom: 40px;
  }

  .form-submit {
    width: 100%;
  }

  /* === HERO SCROLL — even shorter on small phones === */
  .hero-scroll-wrapper {
    height: 160vh;
  }

  /* === HERO CONTENT — tighter padding on compact screens === */
  .hero__content {
    padding-bottom: 80px;
  }

  /* === SERVICES — tighter items on small screens === */
  .services__inner {
    padding: 60px 5%;
  }

  .service-item {
    padding: 20px 16px;
    gap: 4px 10px;
  }

  .service-title {
    font-size: clamp(18px, 5.5vw, 24px);
  }

}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-word {
    transform: none;
  }

  .hero__label,
  .hero__sub,
  .hero__content .btn-primary {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
