﻿/* ---- FONTS ---- */
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---- DESIGN TOKENS ---- */
:root {
  --black: #0a0a0a;
  --black-pure: #000;
  --white: #f0ede6;
  --gray: #141414;
  --gray-2: #1a1a1a;
  --gray-3: #2a2a2a;
  --dim: #666;
  --muted: #999;
  --accent: #f0ede6;
  --accent-hover: #ffffff;
  --accent-glow: rgba(240, 237, 230, .15);
  --accent-subtle: rgba(240, 237, 230, .06);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 140px;
  --space-3xl: 200px;

  --page-px: 20px;
  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --font: 'Mersad', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-expo: cubic-bezier(.19, 1, .22, 1);
}

@media (min-width: 768px) {
  :root {
    --page-px: 48px;
    --nav-h: 80px;
    --space-xl: 120px;
    --space-2xl: 180px;
    --space-3xl: 260px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-px: 64px;
    --space-2xl: 200px;
    --space-3xl: 300px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

html.lenis { height: auto; }
html.lenis, html.lenis body { scroll-behavior: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: .01em;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- NOISE OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .02;
  pointer-events: none;
  z-index: 9998;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#preloader.done { pointer-events: none; display: none !important; }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.preloader-logo { opacity: 0; }

.preloader-logo img {
  width: 64px;
  height: 64px;
  filter: brightness(0) invert(1);
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--gray-3);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.preloader-counter {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  opacity: 0;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor {
  display: none;
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}

@media (pointer: fine) {
  body:not(.loading) { cursor: none; }
  body:not(.loading) #cursor { display: block; }
}

.cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s;
}

.cursor-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(240, 237, 230, .25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), border-color .3s, opacity .3s;
}

.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}

#cursor.hover .cursor-dot { width: 0; height: 0; }
#cursor.hover .cursor-ring { width: 80px; height: 80px; border-color: rgba(240, 237, 230, .4); }
#cursor.labeled .cursor-label { opacity: 1; }
#cursor.labeled .cursor-ring { width: 100px; height: 100px; }
#cursor.labeled .cursor-dot { width: 0; height: 0; }
#cursor.squeeze .cursor-dot { width: 5px; height: 5px; }
#cursor.squeeze .cursor-ring { width: 34px; height: 34px; border-color: rgba(240, 237, 230, .5); }
#cursor.magnetic .cursor-ring { width: 60px; height: 60px; border-color: rgba(240, 237, 230, .4); }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 10001;
  pointer-events: none;
  will-change: width;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out), background .4s, backdrop-filter .4s;
}

#site-header.visible { transform: translateY(0); }
body:not(.loading) #site-header:not(.visible) { transform: translateY(0); }

#site-header.scrolled {
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--page-px);
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 5;
}

.nav-logo img {
  height: 24px;
  width: auto;
  transition: opacity .3s, transform .4s var(--ease-out);
  filter: brightness(0) invert(1);
}

.nav-logo:hover img {
  opacity: .7;
  transform: rotate(-6deg) scale(1.05);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .4;
  transition: opacity .3s, color .3s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .4s var(--ease-out);
}

.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 12px;
    padding-bottom: 10px;
  }
}

/* Language toggle */
.lang-toggle { display: flex; align-items: center; gap: 4px; }

.lang-btn {
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 4px;
  opacity: .3;
  transition: opacity .3s, color .3s;
}

.lang-btn.active, .lang-btn:hover { opacity: 1; color: var(--accent); }
.lang-sep { font-size: 13px; color: var(--dim); opacity: .3; pointer-events: none; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  z-index: 200;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform .4s var(--ease-out), opacity .3s, width .3s var(--ease-out);
  border-radius: 1px;
}

.nav-hamburger span:nth-child(2) { width: 18px; }

/* MOBILE NAV OVERLAY */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at calc(100% - 40px) 32px);
  pointer-events: none;
  transition: clip-path .6s var(--ease-out);
}

.nav-overlay.open {
  clip-path: circle(150% at calc(100% - 40px) 32px);
  pointer-events: all;
}

.nav-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-px);
  height: var(--nav-h);
  flex-shrink: 0;
}

.nav-overlay-top .nav-logo img { height: 32px; }

.nav-overlay-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-overlay-close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-overlay-close span:first-child { transform: rotate(45deg); }
.nav-overlay-close span:last-child { transform: rotate(-45deg); }

.nav-overlay-links {
  list-style: none;
  padding: 0 var(--page-px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.nav-overlay-links li { overflow: hidden; }

.nav-overlay-links a {
  display: block;
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s ease, color .2s;
  line-height: .95;
  padding: 6px 0;
}

.nav-overlay.open .nav-overlay-links a { transform: translateY(0); opacity: 1; }
.nav-overlay.open .nav-overlay-links li:nth-child(1) a { transition-delay: .1s; }
.nav-overlay.open .nav-overlay-links li:nth-child(2) a { transition-delay: .15s; }
.nav-overlay.open .nav-overlay-links li:nth-child(3) a { transition-delay: .2s; }
.nav-overlay.open .nav-overlay-links li:nth-child(4) a { transition-delay: .25s; }
.nav-overlay-links a:hover { color: var(--accent); }

.nav-overlay-footer {
  padding: var(--space-md) var(--page-px) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-toggle-overlay { position: static; transform: none; margin: 0; }

.overlay-email {
  font-size: 16px;
  color: var(--dim);
  transition: color .2s;
}

.overlay-email:hover { color: var(--accent); }

/* Sections after hero need solid bg to cover the fixed video */
#hero ~ * {
  position: relative;
  z-index: 1;
  background: var(--black);
}

#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 0 var(--page-px) clamp(60px, 8vh, 120px);
  padding-bottom: 0px;
}

#hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
  opacity: .55;
}

/* iOS Safari can't render position:fixed video — use absolute */
@supports (-webkit-touch-callout: none) {
  #hero-video {
    position: absolute;
  }
}

#hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.hero-headline {
  font-size: clamp(52px, 12vw, 160px);
  font-weight: 600;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.02em;
  flex-shrink: 0;
  mix-blend-mode: difference;
  width: fit-content;
}

.hero-line {
  display: block;
}

.hero-line > span {
  display: inline-block;
}

.hero-line.accent { 
  color: var(--accent); 
}

/* Word cycle */
.word-cycle {
  display: inline-block;
  font-weight: 800;
  min-width: 2ch;
  will-change: opacity, transform;
}

.hero-bottom {
  display: none;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(240, 237, 230, .6);
  max-width: 500px;
  text-align: right;
  flex-shrink: 0;
  opacity: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-hint-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .7; }
  50% { transform: scaleY(.3); opacity: .2; }
}

/* Split text */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Magnetic buttons */
[data-magnetic] {
  transition: transform .35s var(--ease-out), background .35s, box-shadow .35s, border-color .35s;
  will-change: transform;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  min-height: 52px;
  position: relative;
  border: none;
}

.btn-sm { padding: 10px 22px; min-height: 40px; font-size: 12px; }

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 60px var(--accent-glow);
}

.btn-primary:active { transform: scale(.97); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(240, 237, 230, .15);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(240, 237, 230, .05);
}

.btn-lg { padding: 20px 44px; font-size: 15px; }

.marquee-wrap {
  position: relative;
  z-index: 1;
  background: var(--black);
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  padding-right: 0;
}

.marquee-content span {
  font-size: 15px;
  font-weight: 100;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 24px;
  flex-shrink: 0;
}

.marquee-content .dot {
  color: var(--accent);
  padding: 0 8px;
  opacity: .4;
  font-size: 8px;
  display: flex;
  align-items: center;
}

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

#about {
  padding: var(--space-2xl) var(--page-px) var(--space-xl);
  position: relative;
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.about-headline {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.about-headline em {
  font-style: normal;
  color: var(--accent);
}

.about-body {
  max-width: 700px;
  margin: var(--space-xl) auto 0;
  text-align: center;
}

.body-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: var(--space-md);
}

.body-text:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  text-align: center;
  transition: transform .3s var(--ease-out);
}

.stat:hover { transform: translateY(-6px); }

.stat-num {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .85;
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 12px;
}

#services {
  padding: var(--space-2xl) 0;
  position: relative;
}

.services-header {
  text-align: center;
  padding: 0 var(--page-px);
  margin-bottom: var(--space-xl);
}

.services-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.services-headline {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

/* Service rows — big, bold, full-width */
.services-grid {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--gray-2);
  transition: background .4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-row { grid-template-columns: 1fr 1fr; }
}

.service-row:last-child { border-bottom: 1px solid var(--gray-2); }

.service-row:hover { background: var(--gray); }

.service-row-left {
  padding: var(--space-lg) var(--page-px);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.service-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  opacity: .5;
  flex-shrink: 0;
}

.service-name {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
  transition: color .3s;
}

.service-row:hover .service-name { color: var(--accent); }

.service-row-right {
  padding: var(--space-lg) var(--page-px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.service-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 440px;
  transition: color .3s;
}

.service-row:hover .service-desc { color: var(--muted); }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stamp-color, var(--accent));
  background: color-mix(in srgb, var(--stamp-color, var(--accent)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--stamp-color, var(--accent)) 16%, transparent);
  padding: 5px 14px;
  border-radius: 100px;
  transition: background .2s, transform .2s;
}

.service-tag:hover {
  background: color-mix(in srgb, var(--stamp-color, var(--accent)) 16%, transparent);
  transform: translateY(-1px);
}

.service-arrow {
  position: absolute;
  right: var(--page-px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  transition: opacity .3s, transform .3s var(--ease-out);
  font-size: 28px;
  color: var(--accent);
}

.service-row:hover .service-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Service colors */
.service-row[data-color="orange"]  { --stamp-color: #ff8c00; }
.service-row[data-color="blue"]    { --stamp-color: #3366ff; }
.service-row[data-color="red"]     { --stamp-color: #ff4422; }
.service-row[data-color="purple"]  { --stamp-color: #9944ff; }
.service-row[data-color="green"]   { --stamp-color: #88cc00; }

/* ============================================================
   STAMPS SCATTER — replaces service rows on homepage
   ============================================================ */
.stamps-scatter {
  display: grid;
  grid-template-columns: 1fr 0fr;
  align-items: center;
  gap: var(--space-xl);
  padding: 0 var(--page-px);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 500px;
  transition: grid-template-columns 0.05s var(--ease-smooth);
}

.stamps-scatter.has-active {
  grid-template-columns: 55fr 40fr;
}

/* Left: the stamps grid */
.stamps-left {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}

.stamp-item {
  display: block;
  width: calc(33.333% - 16px);
  max-width: 280px;
  transform: rotate(var(--rot, 0deg));
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
  position: relative;
  cursor: pointer;
  will-change: transform, opacity;
  animation: stampFloat var(--float-dur, 6s) ease-in-out infinite var(--float-delay, 0s);
}

@keyframes stampFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.stamp-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Hover: keep rotation, just scale slightly */
.stamp-item:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.06);
}

/* Dim siblings only when a stamp is actually hovered */
.stamps-scatter:has(.stamp-item:hover) .stamp-item:not(:hover) {
  opacity: .35;
}

/* Active stamp (clicked) — slightly larger */
.stamp-item.active {
  transform: rotate(var(--rot, 0deg)) scale(1.08);
  opacity: 1 !important;
}

/* Dim all non-active stamps when one is active */
.stamps-scatter.has-active .stamp-item:not(.active) {
  opacity: .25;
}

/* Right: detail panel */
.stamps-detail {
  overflow: hidden;
  opacity: 0;
  min-width: 0;
  transition: opacity .5s var(--ease-out);
  transition-delay: 0s;
}

.stamps-scatter.has-active .stamps-detail {
  opacity: 1;
  transition-delay: .15s;
}

.stamps-detail-inner {
  padding: var(--space-lg) 0;
  white-space: normal;
  min-width: 300px;
}

.stamps-detail-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .2em;
  display: block;
  margin-bottom: var(--space-sm);
}

.stamps-detail-name {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
  margin-bottom: var(--space-md);
}

.stamps-detail-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .stamps-scatter {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: var(--space-lg);
    transition: none;
  }

  .stamps-left {
    width: 100%;
  }

  .stamp-item {
    width: calc(50% - 12px);
    max-width: none;
  }

  .stamps-detail {
    width: 100%;
    max-height: 0;
    transition: max-height .6s var(--ease-out), opacity .5s var(--ease-out);
  }

  .stamps-scatter.has-active .stamps-detail {
    max-height: 400px;
    opacity: 1;
  }

  .stamps-detail-inner {
    min-width: 0;
  }
}

.big-text-section {
  padding: var(--space-3xl) var(--page-px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.big-text {
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
  max-width: 1200px;
  margin: 0 auto;
}

.big-text em {
  font-style: normal;
  color: var(--accent);
}

.big-text-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

#work {
  padding: var(--space-2xl) var(--page-px);
  position: relative;
}

.work-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.work-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.work-headline {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

/* ===== LOCOMOTIVE-STYLE FEATURED WORK ===== */
.work-header-loco {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.work-headline-loco {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 16px;
}

.work-list-loco {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--page-px);
  max-width: 1400px;
}

.work-list-item {
  border-bottom: 1px solid var(--gray-3);
}

.work-list-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  padding: clamp(24px, 4vw, 50px) 0;
  transition: opacity .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-list-loco:hover .work-list-link {
  opacity: 0.25;
}

.work-list-loco:hover .work-list-link:hover {
  opacity: 1;
}

.work-list-name {
  font-size: clamp(48px, 9vw, 150px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.work-word {
  display: inline-block;
  line-height: 1;
}

/* Inline hover image — hidden by default, appears on hover */
.work-inline-img {
  display: inline-block;
  width: 0;
  height: clamp(50px, 7vw, 110px);
  overflow: hidden;
  transition: width .30s cubic-bezier(0.76, 0, 0.24, 1), margin .45s cubic-bezier(0.76, 0, 0.24, 1);
  margin: 0;
  border-radius: 6px;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}

.work-inline-img img {
  width: clamp(90px, 12vw, 180px);
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.work-list-link:hover .work-inline-img {
  width: clamp(90px, 12vw, 180px);
  margin: 0 clamp(10px, 1.5vw, 24px);
}

@media (max-width: 680px) {
  .work-list-name { font-size: clamp(24px, 8vw, 42px); }
  .work-inline-img { display: none; }
}

/* Card grid showcase (legacy — kept for subpages) */
.work-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

a.work-card, .work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .5s var(--ease-out);
}

.work-card:hover { transform: translateY(-8px); }

.work-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4/5;
}

.work-card-img img,
.work-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}

.work-card:hover .work-card-img img,
.work-card:hover .work-card-img video {
  transform: scale(1.05);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s;
}

.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-view {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid rgba(240, 237, 230, .5);
  padding: 12px 24px;
  border-radius: 100px;
  transition: background .2s, border-color .2s;
}

.work-card:hover .work-card-view {
  background: rgba(240, 237, 230, .12);
  border-color: var(--white);
}

.work-card-info { padding: 18px 2px 0; }

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.work-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--gray-3);
  padding: 4px 12px 0px;
  margin-bottom: 4px;
  border-radius: 100px;
}

.work-card-year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--dim);
}

.work-card-name {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 680px) {
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-card-img { aspect-ratio: 3/2; }
}

#contact {
  padding: var(--space-2xl) var(--page-px) var(--space-xl);
  border-top: 1px solid var(--gray-2);
  position: relative;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.contact-headline {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.contact-headline em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 300px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { display: flex; flex-direction: column; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
  transition: color .3s;
}

.form-group:focus-within label { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 18px 14px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dim);
  opacity: .4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 0, 34, .02);
  box-shadow: 0 0 0 4px rgba(255, 0, 34, .04);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--black); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* ---- Custom Select ---- */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius);
  color: var(--dim);
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 48px 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  user-select: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  box-sizing: border-box;
}

.custom-select-trigger.has-value { color: var(--white); }

.custom-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s, border-color .2s;
  flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
  transform: translateY(-35%) rotate(-135deg);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  background: rgba(255, 0, 34, .02);
  box-shadow: 0 0 0 4px rgba(255, 0, 34, .04);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
}

.custom-select.open .custom-select-dropdown { display: block; }

.custom-select-option {
  padding: 13px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--dim);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.custom-select-option:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.custom-select-option.is-selected { color: var(--accent); }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (max-width: 599px) {
  .form-actions .btn { width: 100%; }
}

#form-status {
  font-size: 16px;
  letter-spacing: .05em;
  min-height: 24px;
}

/* Contact sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: 4px;
}

@media (max-width: 767px) {
  .contact-info {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-2);
  }
}

.contact-info-block { transition: transform .3s var(--ease-out); }
.contact-info-block:hover { transform: translateX(6px); }

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.contact-info-val {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  transition: color .2s;
  white-space: nowrap;
}

a.contact-info-val:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--gray-2);
  padding: var(--space-lg) var(--page-px);
  position: relative;
  z-index: 2;
}

.project-nav + footer { border-top: none; }

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-center {
  flex-direction: row;
  gap: 6px;
}

.footer-mark {
  height: 28px;
  width: auto;
  opacity: .3;
  filter: brightness(0) invert(1);
  animation: eyePulse 4s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% { opacity: .2; }
  50% { opacity: .5; }
}

.footer-copy {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 5px;
}

.footer-right { display: flex; gap: 20px; }

.footer-right a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s;
}

.footer-right a:hover { color: var(--accent); }

/* ---- Georgian ---- */
body.lang-ka { font-family: 'Mersad', sans-serif; }

/* ---- Mobile refinements ---- */
@media (max-width: 768px) {
  .lang-toggle:not(.lang-toggle-overlay) { display: none; }
  .about-stats .stat { text-align: center; }
  .about-stats .stat:last-child { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 767px) {
  .hero-desc { display: none; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .25em; }
  .service-row-right { padding-top: 0; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
a.service-item, a.work-card { display: block; text-decoration: none; color: inherit; }

.page-hero {
  padding: calc(var(--nav-h) + var(--space-xl)) var(--page-px) var(--space-xl);
  max-width: 1600px;
  margin: 0 auto;
}

.page-hero-eyebrow { display: flex; align-items: center; gap: 20px; margin-bottom: var(--space-lg); }

.page-back {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .3s var(--ease-out);
}

.page-back:hover { color: var(--accent); gap: 12px; }
.page-back svg { transition: transform .2s; }
.page-back:hover svg { transform: translateX(-4px); }

.page-hero-num { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--dim); opacity: .4; }

.page-hero-headline {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .page-hero-headline {
    line-height: 1;
  }
}

.page-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(240, 237, 230, .7);
  max-width: 540px;
}

.page-hero-project-meta { display: flex; align-items: center; gap: 20px; margin-top: var(--space-md); }
.page-hero-year { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--dim); }

.page-content { max-width: 1600px; margin: 0 auto; padding: 0 var(--page-px); }
.page-section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--gray-2); }
.page-section:last-child { border-bottom: none; }

.page-section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-section-label::after { content: ''; height: 1px; width: 32px; background: var(--accent); opacity: .3; }

/* Process grid */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--gray-2); }
@media (min-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--black);
  padding: var(--space-lg) var(--space-md);
  transition: background .3s;
}

.process-step:hover { background: var(--gray); }

.process-step-num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .14em; opacity: .5; margin-bottom: var(--space-md); }
.process-step-title { font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; margin-bottom: var(--space-sm); }
.process-step-desc { font-size: 16px; line-height: 1.6; color: var(--dim); }

/* Deliverables */
.deliverables-list { display: flex; flex-wrap: wrap; gap: 10px; }

.deliverable-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--gray-3);
  line-height: 25px;
  padding: 10px 22px;
  border-radius: 100px;
  transition: border-color .3s, color .3s, background .3s;
}

.deliverable-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.deliverables-list--compact .deliverable-tag { font-size: 12px; padding: 6px 14px 2px; }

/* Inner CTA */
.inner-cta {
  padding: var(--space-2xl) var(--page-px);
  border-top: 1px solid var(--gray-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.inner-cta-label { font-size: 13px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }

.inner-cta-headline {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.inner-cta-headline em { font-style: normal; -webkit-text-stroke: 1.5px var(--white); color: transparent; }

/* Project detail */
.project-detail { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 900px) { .project-detail { grid-template-columns: 1fr 280px; align-items: start; } }

.project-overview-text { font-size: 18px; line-height: 1.7; color: var(--dim); max-width: 640px; }
.project-overview-text p + p { margin-top: var(--space-md); }

.project-meta { display: flex; flex-direction: column; gap: var(--space-md); padding-top: 4px; }
@media (max-width: 899px) { .project-meta { display: grid; grid-template-columns: repeat(2, 1fr); padding-top: var(--space-lg); border-top: 1px solid var(--gray-2); } }

.project-meta-item label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.project-meta-item span, .project-meta-item .deliverables-list { font-size: 18px; font-weight: 500; color: var(--white); }

/* Gallery */
.project-gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 600px) { .project-gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  background: var(--gray);
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

/* Project nav */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-2); border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); height: 80px; }
.project-nav-item { background: var(--black); padding: var(--space-md) var(--page-px); display: flex; flex-direction: column; gap: 4px; transition: background .3s; }
.project-nav-item:hover { background: var(--gray); }
.project-nav-item.next { text-align: right; align-items: flex-end; }
.project-nav-dir { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.project-nav-name { font-size: clamp(22px, 1.2vw, 40px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--white); transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .project-nav-name { font-size: clamp(16px, 4vw, 24px); } }
.project-nav-item:hover .project-nav-name { color: var(--accent); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--gray-2); padding: var(--space-md) 0; }
.faq-item:first-child { border-top: 1px solid var(--gray-2); }
.faq-question { font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.faq-answer { font-size: 16px; color: var(--dim); margin-top: var(--space-sm); max-width: 640px; line-height: 1.7; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
/* ============================================================
   VISTA STUDIO — V2 EXPERIENCE
   Immersive, interactive, cinematic
   ============================================================ */

/* ---- FONTS ---- */
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mersad'; src: url('../assets/fonts/Mersad Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---- DESIGN TOKENS ---- */
:root {
  --black: #050505;
  --white: #f0ede6;
  --gray: #141414;
  --gray-2: #222;
  --gray-3: #333;
  --dim: #666;
  --accent: #f0ede6;
  --accent-hover: #ffffff;
  --accent-glow: rgba(240, 237, 230, .2);
  --accent-subtle: rgba(240, 237, 230, .06);

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 72px;
  --space-2xl: 120px;

  --page-px: 20px;
  --nav-h: 60px;
  --radius: 8px;
  --radius-lg: 16px;

  --text-xs: 13px;
  --text-sm: 16px;
  --text-base: 18px;
  --text-md: 22px;
  --text-lg: 28px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);

  --font: 'Mersad', system-ui, -apple-system, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --page-px: 48px;
    --nav-h: 72px;
    --space-xl: 96px;
    --space-2xl: 160px;
    --text-xs: 14px;
    --text-sm: 17px;
    --text-base: 20px;
    --text-md: 24px;
    --text-lg: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-px: 64px;
    --space-2xl: 200px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

/* Lenis smooth scroll */
html.lenis { height: auto; }
html.lenis, html.lenis body { scroll-behavior: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.4;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lock body during preloader */
body.loading {
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#preloader.done {
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.preloader-logo {
  opacity: 0;
}

.preloader-logo img {
  width: 56px;
  height: 56px;
  filter: brightness(0) invert(1);
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--gray-2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.preloader-counter {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  opacity: 0;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor {
  display: none;
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}

@media (pointer: fine) {
  body:not(.loading) { cursor: none; }
  body:not(.loading) #cursor { display: block; }
}

.cursor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s;
}

.cursor-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240, 237, 230, .3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), border-color .3s, opacity .3s;
}

.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}

/* Cursor states */
#cursor.hover .cursor-dot {
  width: 0;
  height: 0;
}

#cursor.hover .cursor-ring {
  width: 80px;
  height: 80px;
  border-color: rgba(240, 237, 230, .5);
}

#cursor.labeled .cursor-label {
  opacity: 1;
}

#cursor.labeled .cursor-ring {
  width: 100px;
  height: 100px;
}

#cursor.labeled .cursor-dot {
  width: 0;
  height: 0;
}

/* Squeeze on mousedown */
#cursor.squeeze .cursor-dot {
  width: 4px;
  height: 4px;
}
#cursor.squeeze .cursor-ring {
  width: 32px;
  height: 32px;
  border-color: rgba(240, 237, 230, .6);
}

/* Magnetic pull */
#cursor.magnetic .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(240, 237, 230, .5);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 10001;
  pointer-events: none;
  will-change: width;
}

/* ---- NOISE OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .015;
  pointer-events: none;
  z-index: 9998;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out), background .4s, backdrop-filter .4s, box-shadow .4s;
}

#site-header.visible {
  transform: translateY(0);
}

/* Inner pages: show header immediately (no preloader) */
body:not(.loading) #site-header:not(.visible) {
  transform: translateY(0);
}

#site-header.scrolled {
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(240, 237, 230, .05);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--page-px);
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 5;
  text-decoration: none;
}

.nav-logo img {
  height: 24px;
  width: auto;
  transition: opacity .3s, transform .4s var(--ease-out);
}

.nav-logo:hover img {
  opacity: .7;
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .5;
  transition: opacity .3s, color .3s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .4s var(--ease-out);
}

.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

/* Language toggle */
.lang-toggle { display: flex; align-items: center; gap: 4px; }

.lang-btn {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 4px;
  opacity: .3;
  transition: opacity .3s, color .3s;
}

.lang-btn.active, .lang-btn:hover { opacity: 1; color: var(--accent); }
.lang-sep { font-size: 13px; color: var(--dim); opacity: .3; pointer-events: none; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  z-index: 200;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform .4s var(--ease-out), opacity .3s, width .3s var(--ease-out);
}

.nav-hamburger span:nth-child(2) {
  width: 16px;
}

/* MOBILE NAV OVERLAY */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at calc(100% - 40px) 32px);
  pointer-events: none;
  transition: clip-path .6s var(--ease-out);
}

.nav-overlay.open {
  clip-path: circle(150% at calc(100% - 40px) 32px);
  pointer-events: all;
}

.nav-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-px);
  height: var(--nav-h);
  flex-shrink: 0;
}

.nav-overlay-top .nav-logo img { height: 32px; }

.nav-overlay-close {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.nav-overlay-close span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--white);
}

.nav-overlay-close span:first-child { transform: rotate(45deg); }
.nav-overlay-close span:last-child { transform: rotate(-45deg); }

.nav-overlay-links {
  list-style: none;
  padding: 0 var(--page-px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.nav-overlay-links li { overflow: hidden; }

.nav-overlay-links a {
  display: block;
  font-size: clamp(48px, 12vw, 88px);
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s ease, color .2s;
  line-height: 1;
  padding: 6px 0;
}

.nav-overlay.open .nav-overlay-links a {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay.open .nav-overlay-links li:nth-child(1) a { transition-delay: .1s; }
.nav-overlay.open .nav-overlay-links li:nth-child(2) a { transition-delay: .15s; }
.nav-overlay.open .nav-overlay-links li:nth-child(3) a { transition-delay: .2s; }
.nav-overlay.open .nav-overlay-links li:nth-child(4) a { transition-delay: .25s; }

.nav-overlay-links a:hover { color: var(--accent); }

.nav-overlay-footer {
  padding: var(--space-md) var(--page-px) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-toggle-overlay { position: static; transform: none; margin: 0; }

.overlay-email {
  font-size: var(--text-sm);
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}

.overlay-email:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0 var(--page-px) var(--space-xl);
  padding-bottom: var(--space-lg);
}

#hero::after {
  display: none;
}

#hero-video, #hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

@supports (-webkit-touch-callout: none) {
  #hero-video, #hero-canvas {
    position: absolute;
  }
}

@media (max-width: 768px) {
  #hero-video {
    position: absolute;
    height: 100%;
  }
}

#hero-canvas { z-index: 0; }
#hero-video { z-index: 1; }

/* Fallback when video fails to autoplay */
#hero.video-failed #hero-video { opacity: 0; }
#hero.video-failed { background: var(--black); }

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.hero-headline {
  font-size: clamp(42px, 12vw, 160px);
  font-weight: 600;
  /* line-height: .85; */
  text-transform: uppercase;
  letter-spacing: -.02em;
  flex-shrink: 0;
  width: fit-content;
}

/* Split text character wrappers (injected by JS) */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}
.split-word {
  display: inline-block;
  overflow: hidden;
}
.split-line {
  display: block;
  overflow: hidden;
}

.hero-line {
  display: block;
  overflow: visible;
}

.hero-line > span {
  display: inline-block;
}

.hero-line.accent { color: var(--accent); }

.word-cycle {
  display: inline-block;
  min-width: 2ch;
  will-change: opacity, transform;
}

.hero-bottom {
  display: none;
}

@media (min-width: 768px) {
  .hero-bottom {
    display: none;
  }
}

.hero-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 15px;
  color: white;
  max-width: 500px;
  text-align: right;
  flex-shrink: 0;
  opacity: 0;
  mix-blend-mode: difference;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-hint-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .8; }
  50% { transform: scaleY(.4); opacity: .3; }
}

/* Magnetic buttons — JS adds inline transform */
[data-magnetic] {
  transition: transform .35s var(--ease-out), background .35s, box-shadow .35s, border-color .35s;
  will-change: transform;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  min-height: 48px;
  position: relative;
  border: none;
}

.btn-sm {
  padding: 10px 22px 7px;
  min-height: 40px;
  font-size: 12px;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(.97);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(240, 237, 230, .2);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(240, 237, 230, .05);
}

.btn-lg {
  padding: 18px 40px 14px;
  font-size: var(--text-sm);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track span {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 5px 20px 0;
  flex-shrink: 0;
}

.marquee-track .dot {
  color: var(--accent);
  padding: 0 8px;
  opacity: .4;
  font-size: 8px;
  display: flex;
  align-items: center;
}

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

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section {
  padding: var(--space-xl) var(--page-px);
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

#about .section-grid { margin-bottom: 0; }

@media (min-width: 768px) {
  .section-grid { grid-template-columns: 200px 1fr; gap: var(--space-lg); }
}

@media (min-width: 1200px) {
  .section-grid { grid-template-columns: 260px 1fr; }
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  height: 1px;
  width: 32px;
  background: var(--accent);
  opacity: .3;
}

.section-headline {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-headline em {
  font-style: normal;
  color: var(--accent);
}

/* Scroll reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================================
   ABOUT
   ============================================================ */
/* #about {
  border-top: 1px solid var(--gray-2);
} */

.about-body {
  margin-top: var(--space-md);
  max-width: 580px;
}

.body-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--dim);
  margin-bottom: var(--space-md);
}

.body-text:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-2);
}

@media (min-width: 768px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

.stat { transition: transform .3s var(--ease-out); }
.stat:hover { transform: translateY(-4px); }

.stat-num {
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .85;
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 12px;
}

/* ============================================================
   SERVICES — stamps
   ============================================================ */
#services {
  border-top: 1px solid var(--gray-2);
}

.stamp[data-stamp="branding"] { --stamp-color: #ff8c00; }
.stamp[data-stamp="web"]      { --stamp-color: #3366ff; }
.stamp[data-stamp="motion"]   { --stamp-color: #ff4422; }
.stamp[data-stamp="print"]    { --stamp-color: #9944ff; }
.stamp[data-stamp="content"]  { --stamp-color: #88cc00; }

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .stamps-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}

@media (min-width: 1200px) {
  .stamps-grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
}

.stamp {
  position: relative;
  cursor: pointer;
  outline: none;
}

.stamp-face {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
  will-change: transform;
  background: var(--gray);
  transform-style: preserve-3d;
}

.stamp-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s var(--ease-out), filter .4s;
  user-select: none;
}

.stamp-ink {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--stamp-color) 0%, transparent 70%);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .4s;
  pointer-events: none;
}

.stamp-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--stamp-color) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}

/* Hover — CSS fallback, JS handles 3D tilt */
.stamp:hover .stamp-face {
  box-shadow:
    0 4px 0 rgba(0,0,0,.5),
    0 0 60px color-mix(in srgb, var(--stamp-color) 30%, transparent);
}

.stamp:hover .stamp-ink { opacity: .2; }
.stamp:hover .stamp-glow { opacity: .15; }

/* Active press */
.stamp:active .stamp-face {
  transform: scale(0.9) translateY(8px) rotate(-2deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.7);
  transition-duration: .1s;
}

/* Expanded */
.stamp.active { grid-column: 1 / -1; z-index: 10; }

.stamp.active .stamp-face {
  box-shadow:
    0 12px 60px color-mix(in srgb, var(--stamp-color) 30%, transparent),
    0 0 120px color-mix(in srgb, var(--stamp-color) 12%, transparent);
  transform: none;
}

.stamp.active .stamp-glow { opacity: .2; }

/* Detail panel */
.stamp-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s var(--ease-out), opacity .5s ease, padding .5s ease;
  padding: 0;
}

.stamp.active .stamp-detail {
  max-height: 600px;
  opacity: 1;
  padding: var(--space-md) 0;
}

.stamp.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .stamp.active { grid-template-columns: 280px 1fr; gap: var(--space-lg); align-items: start; }
}

@media (min-width: 1200px) {
  .stamp.active { grid-template-columns: 320px 1fr; }
}

.stamp-detail-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.stamp-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--stamp-color);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.stamp-name {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .9;
  color: var(--white);
  transition: color .3s;
}

.stamp:hover .stamp-name { color: var(--stamp-color); }

.stamp-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--dim);
  max-width: 480px;
  margin-bottom: var(--space-md);
}

.stamp-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.stamp-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stamp-color);
  background: color-mix(in srgb, var(--stamp-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--stamp-color) 18%, transparent);
  padding: 5px 12px;
  border-radius: 100px;
  transition: background .2s, border-color .2s, transform .2s;
}

.stamp-tag:hover {
  background: color-mix(in srgb, var(--stamp-color) 16%, transparent);
  border-color: color-mix(in srgb, var(--stamp-color) 35%, transparent);
  transform: translateY(-1px);
}

.stamp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stamp-color);
  padding: 10px 0;
  transition: gap .3s var(--ease-out);
}

.stamp-cta:hover { gap: 14px; }

/* Collapsed stamps */
.stamp:not(.active) .stamp-name { font-size: clamp(14px, 1.8vw, 20px); }
.stamp:not(.active) .stamp-detail-head { padding-top: var(--space-sm); }
.stamp:not(.active) .stamp-desc,
.stamp:not(.active) .stamp-includes,
.stamp:not(.active) .stamp-cta { display: none; }
.stamp:not(.active) .stamp-detail { max-height: 60px; opacity: 1; }

/* ============================================================
   WORK
   ============================================================ */
#work {
  border-top: 1px solid var(--gray-2);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  border-top: 1px solid var(--gray-2);
}

.contact-headline {
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.contact-headline em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 280px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { display: flex; flex-direction: column; }

.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
  transition: color .3s;
}

.form-group:focus-within label { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 18px 14px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dim);
  opacity: .4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 0, 34, .02);
  box-shadow: 0 0 0 4px rgba(255, 0, 34, .05);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--black); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (max-width: 599px) {
  .form-actions .btn { width: 100%; }
}

#form-status {
  font-size: var(--text-sm);
  letter-spacing: .05em;
  min-height: 20px;
}

/* Contact sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: 4px;
}

@media (max-width: 767px) {
  .contact-info {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-2);
  }
}

.contact-info-block {
  transition: transform .3s var(--ease-out);
}

.contact-info-block:hover { transform: translateX(6px); }

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.contact-info-val {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

a.contact-info-val:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--gray-2);
  padding: var(--space-md) var(--page-px);
  position: relative;
  z-index: 2;
}

.project-nav + footer { border-top: none; }

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-center {
  flex-direction: row;
  gap: 6px;
}

.footer-mark {
  height: 24px;
  width: auto;
  opacity: .3;
  animation: eyePulse 4s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% { opacity: .2; }
  50% { opacity: .6; }
}

.footer-copy {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 5px;
}

.footer-right { display: flex; gap: 16px; }

.footer-right a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}

.footer-right a:hover { color: var(--accent); }

/* ---- Georgian ---- */
body.lang-ka { font-family: 'Mersad', sans-serif; }

/* ---- Mobile refinements ---- */
@media (max-width: 768px) {
  .lang-toggle:not(.lang-toggle-overlay) { display: none; }
  .hero-desc { display: none; }
  .about-stats .stat { text-align: center; }
  .about-stats .stat:last-child { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 767px) {
  .hero-eyebrow { font-size: 10px; letter-spacing: .25em; }
  .hero-bottom {
    margin-top: var(--space-md);
  }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
a.service-item, a.work-card { display: block; text-decoration: none; color: inherit; }

.page-hero {
  padding: calc(var(--nav-h) + var(--space-xl)) var(--page-px) var(--space-xl);
  max-width: 1600px;
  margin: 0 auto;
}

.page-hero-eyebrow { display: flex; align-items: center; gap: 20px; margin-bottom: var(--space-lg); }

.page-back {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .3s var(--ease-out);
}

.page-back:hover { color: var(--accent); gap: 12px; }
.page-back svg { transition: transform .2s; }
.page-back:hover svg { transform: translateX(-4px); }

.page-hero-num { font-size: var(--text-xs); font-weight: 600; letter-spacing: .2em; color: var(--dim); opacity: .4; }

.page-hero-headline {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .page-hero-headline {
    line-height: 1;
  }
}

.page-hero-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(240, 237, 230, .7);
  max-width: 540px;
}

.page-hero-project-meta { display: flex; align-items: center; gap: 20px; margin-top: var(--space-md); }
.page-hero-year { font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; color: var(--dim); }

.page-content { max-width: 1600px; margin: 0 auto; padding: 0 var(--page-px); }
.page-section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--gray-2); }
.page-section:last-child { border-bottom: none; }

.page-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-section-label::after { content: ''; height: 1px; width: 32px; background: var(--accent); opacity: .3; }

/* Process grid */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--gray-2); }
@media (min-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--black);
  padding: var(--space-lg) var(--space-md);
  transition: background .3s;
}

.process-step:hover { background: var(--gray); }

.process-step-num { font-size: var(--text-xs); font-weight: 700; color: var(--accent); letter-spacing: .14em; opacity: .5; margin-bottom: var(--space-md); }
.process-step-title { font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; margin-bottom: var(--space-sm); }
.process-step-desc { font-size: var(--text-sm); line-height: 1.5; color: var(--dim); }

/* Deliverables */
.deliverables-list { display: flex; flex-wrap: wrap; gap: 10px; }

.deliverable-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--gray-2);
  padding: 10px 20px 0px;
  border-radius: 100px;
  transition: border-color .3s, color .3s, background .3s;
}

.deliverable-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.deliverables-list--compact .deliverable-tag { font-size: 12px; padding: 6px 14px 2px; }

/* Inner CTA */
.inner-cta {
  padding: var(--space-2xl) var(--page-px);
  border-top: 1px solid var(--gray-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.inner-cta-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }

.inner-cta-headline {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.inner-cta-headline em { font-style: normal; -webkit-text-stroke: 1.5px var(--white); color: transparent; }

/* Project detail */
.project-detail { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 900px) { .project-detail { grid-template-columns: 1fr 280px; align-items: start; } }

.project-overview-text { font-size: var(--text-base); line-height: 1.6; color: var(--dim); max-width: 640px; }
.project-overview-text p + p { margin-top: var(--space-md); }

.project-meta { display: flex; flex-direction: column; gap: var(--space-md); padding-top: 4px; }
@media (max-width: 899px) { .project-meta { display: grid; grid-template-columns: repeat(2, 1fr); padding-top: var(--space-lg); border-top: 1px solid var(--gray-2); } }

.project-meta-item label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.project-meta-item span, .project-meta-item .deliverables-list { font-size: var(--text-base); font-weight: 500; color: var(--white); }

/* Gallery */
.project-gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 600px) { .project-gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  background: var(--gray);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

/* Project nav */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-2); border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); height: 80px; }
.project-nav-item { background: var(--black); padding: var(--space-md) var(--page-px); text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: background .3s; }
.project-nav-item:hover { background: var(--gray); }
.project-nav-item.next { text-align: right; align-items: flex-end; }
.project-nav-dir { font-size: var(--text-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.project-nav-name { font-size: clamp(22px, 1.2vw, 40px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--white); transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .project-nav-name { font-size: clamp(16px, 4vw, 24px); } }
.project-nav-item:hover .project-nav-name { color: var(--accent); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--gray-2); padding: var(--space-md) 0; }
.faq-item:first-child { border-top: 1px solid var(--gray-2); }
.faq-question { font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.faq-answer { font-size: var(--text-sm); color: var(--dim); margin-top: var(--space-sm); max-width: 640px; line-height: 1.7; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal-up { opacity: 1; transform: none; }
}
