/* =========================================================
   MYGROUP — interyer dizayn
   1. Tokens & base
   2. Cinematic stage (scroll rig)
   3. Header
   4. Scene layers
   5. Hero / intro / story panels
   6. Project slider (stage)
   7. Page sections (layihələr, proses, satış)
   8. Footer
   9. Flowing menu overlay
   10. Media queries
   ========================================================= */

/* ---------- 1. Tokens & base ---------- */
/* Başlıq şrifti: Roboto Slab Variable (SIL OFL — kommersiya saytında
   sərbəst istifadə olunur). Əvvəlki kommersiya şrifti əvəz edilib və
   üçüncü tərəf CDN-dən yüklənirdi — həm lisenziya riski, həm də əlavə domen.
   İndi öz serverimizdən gəlir, ona görə CSP-dəki xarici font domeni də silindi.
   İki alt-dəst birlikdə bütün Azərbaycan hərflərini örtür (ə, ş, ğ latin-ext-də;
   ı, ç, ö, ü latin-də). */
@font-face {
  font-family: "Roboto Slab Variable";
  src: url("assets/fonts/roboto-slab-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Roboto Slab Variable";
  src: url("assets/fonts/roboto-slab-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Gövdə şrifti: əvvəllər kodda "Inter" adı yazılırdı, amma heç vaxt
   yüklənmirdi — brauzer görünməz şəkildə sistem şriftinə (Segoe UI/San
   Francisco və s.) keçirdi, bu da cihazdan-cihaza fərqli, başlıq şrifti ilə
   uyuşmayan görünüşə səbəb olurdu. İndi Inter
   Variable öz serverimizdən (SIL OFL lisenziyalı, sərbəst) yüklənir —
   Azərbaycan hərfləri (ə, ş, ğ, ı, ç, ö, ü) üçün lazım olan iki alt-dəst
   (latin + latin-ext) daxildir, çəki aralığı 100–900 tək fayldan gəlir.
   CSP dəyişmir: hər ikisi eyni domendən (özümüzün) yüklənir. */
@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* pointer parallax */
  --mx: 0;
  --my: 0;

  /* Səhnə: scroll ilə kadr-kadr sürüşdürülən video (tək qat) */


  /* hero type */
  --title-y: 0px; --title-scale: 1; --title-opacity: 1;
  --intro-y: 0px; --intro-opacity: 1;

  /* story panels */

  /* project slider */
  --cards-visibility: hidden;
  --cards-enter-x: 420vw;
  --cards-shift: 0px;
  --cards-controls-opacity: 0;
  --cards-top: clamp(180px, 34vh, 380px);
  --cards-pad: clamp(24px, 4vw, 64px);

  /* palette */
  /* Tünd sahələrin arxa fon teksturası. Mobilə kiçik variant verilir. */
  --texture: url("assets/texture.webp");
  --surface: var(--ink) var(--texture) center / cover no-repeat;

  --ink: #0d0a07;
  --ink-soft: #171210;
  --paper: #f3ebdf;
  /* AUDİT: 0.66 → ~3:1 kontrast verirdi (WCAG AA 4.5:1 tələb edir) */
  --paper-dim: rgba(243, 235, 223, 0.82);
  --line: rgba(243, 235, 223, 0.16);
  --brass: #c2a074;
  --shadow: rgba(0, 0, 0, 0.42);

  font-family: "Inter Variable", Inter, "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
}

button { border: 0; font: inherit; }
img { max-width: 100%; }
a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* AUDİT: JavaScript sönülü olanda istifadəçi boş səhifə görməsin */
.noscript-note {
  position: relative;
  z-index: 120;
  padding: 14px clamp(16px, 4vw, 32px);
  color: var(--ink);
  background: var(--brass);
  font-size: 0.92rem;
  text-align: center;
}
.noscript-note a { color: var(--ink); font-weight: 700; }

/* Bölmə sırasını mobildə dəyişə bilmək üçün flex konteyner */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
/* Daxili səhifələrdə hero yoxdur — ilk bölmə sabit barın altına düşməsin */
body.is-inner .page-section:first-of-type { padding-top: clamp(110px, 16vh, 170px); }

/* sabit üst bar hədəf bölmənin başlığını örtməsin */
.hero,
.page-section,
.site-footer { scroll-margin-top: 96px; }

/* ---------- 1b. Kursor izi (MouseMoveLineDrawing) ----------
   Yalnız dekorativ qat: pointer-events yoxdur, ona görə klik, hover,
   scroll və forma qarşılıqlı əlaqəsinin heç birini bloklamır.
   z-index 95: məzmunun üstündə, amma menyu overlay-inin (100) altında —
   menyu açılanda iz onun üstünə düşmür. */
.cursor-trail {
  position: fixed;
  z-index: 95;
  inset: 0;
  pointer-events: none;
  /* Ayrıca kompozitor qatı: canvas yenilənəndə səhifənin qalan hissəsi
     yenidən boyanmır. */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ---------- 3. Header (PillNav) ---------- */
.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 16px clamp(16px, 4vw, 32px);
  pointer-events: none;
}

.pill-nav {
  /* Referensdəki model: --base konteyner + hover dairəsi, --pill-bg həblər */
  --base: var(--paper);
  --pill-bg: rgba(13, 10, 7, 0.94);
  --pill-text: var(--paper);
  --hover-text: var(--ink);
  --nav-h: 46px;
  --pill-gap: 3px;
  --pill-pad-x: 18px;

  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.pill-list {
  display: none;
  height: var(--nav-h);
  margin: 0;
  padding: 3px;
  gap: var(--pill-gap);
  border-radius: 999px;
  /* Fərdi pillərin arasındakı 3px boşluqda da eyni tünd rəng görünsün deyə
     konteynerin fonu --base (krem) yox, --pill-bg (tünd) ilədir — əks halda
     pillər arasında ağ/krem xətlər görünür. */
  background: var(--pill-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  list-style: none;
}
.pill-list li { display: flex; position: relative; height: 100%; }

.pill {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  overflow: hidden;
  border-radius: 999px;
  color: var(--pill-text);
  background: var(--pill-bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.hover-circle {
  display: block;
  position: absolute;
  z-index: 1;
  bottom: var(--circle-bottom, 0px);
  left: 50%;
  width: var(--circle-d, 0px);
  height: var(--circle-d, 0px);
  border-radius: 50%;
  background: var(--base);
  pointer-events: none;
  transform: translateX(-50%) scale(0);
  transform-origin: 50% var(--circle-origin, 100%);
  transition: transform 200ms cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.label-stack {
  display: inline-block;
  position: relative;
  z-index: 2;
  line-height: 1;
}
.pill-label {
  display: inline-block;
  position: relative;
  z-index: 2;
  line-height: 1;
  transform: translateY(0);
  transition: transform 200ms cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}
.pill-label-hover {
  display: inline-block;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  color: var(--hover-text);
  opacity: 0;
  transform: translateY(var(--label-drop, 60px));
  transition: transform 200ms cubic-bezier(0.165, 0.84, 0.44, 1), opacity 200ms ease;
  will-change: transform, opacity;
}

.pill:hover .hover-circle,
.pill:focus-visible .hover-circle {
  transform: translateX(-50%) scale(1.2);
  transition-duration: 300ms;
}
.pill:hover .pill-label,
.pill:focus-visible .pill-label {
  transform: translateY(var(--label-lift, -40px));
  transition-duration: 300ms;
}
.pill:hover .pill-label-hover,
.pill:focus-visible .pill-label-hover {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 300ms;
}

.pill-list li.is-active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--base);
  transform: translateX(-50%);
}

.pill-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 999px;
  background: var(--pill-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.pill-burger .hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 320ms cubic-bezier(0.165, 0.84, 0.44, 1), opacity 200ms ease;
}
/* Açılanda üç xətt "X"ə çevrilir: orta xətt sönür, kənarlar çarpazlaşır */
.pill-burger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pill-burger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.pill-burger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 901px) {
  .pill-list { display: flex; }
  .pill-burger { display: none; }
}

@media (pointer: coarse) {
  .pill-nav { --nav-h: 50px; }
}

/* ---------- 4. HERO — Tilted Tiles ----------
   Paramount+ üslubunda: arxada işlərin şəkillərindən əyilmiş kafel şəbəkəsi,
   üstündə tünd örtük, mərkəzdə başlıq və tək CTA.

   HƏNDƏSƏ: şəbəkə θ = -10° əyilir. Fırlanma künclərində boşluq qalmaması üçün
   ölçüsü W·cosθ + H·sinθ olmalıdır (sinθ ≈ 0.174) → hər kənara ~20% əlavə,
   üstəlik scroll sürüşməsi (±160px) üçün ehtiyat: inset: -26%.
   SİMMETRİYA: sütunlar bərabər enli (flex: 1 1 0), boşluqlar tək dəyişəndən,
   məzmun mərkəzdən bərabər daşır (justify-content: center),
   sürüşmə sürətləri simmetrikdir. */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(96px, 14vh, 160px) clamp(20px, 5vw, 72px) clamp(56px, 10vh, 110px);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero-tiles {
  --tile-gap: clamp(8px, 0.8vw, 14px);
  position: absolute;
  z-index: 0;
  inset: -30%;                       /* 6 sütun + axın üçün daha geniş ehtiyat */
  display: flex;
  gap: var(--tile-gap);
  transform: rotate(-10deg);
  transform-origin: center center;
}
/* Sütun: scroll sürüşməsi (JS) BU qatdadır */
.tile-col {
  display: flex;
  flex: 1 1 0;                       /* bərabər en */
  flex-direction: column;
  /* Lent sütunun ƏVVƏLİNDƏN başlamalıdır. Mərkəzləşdirmə ilə "reverse"
     istiqamətli lentlər öz hündürlüyünün yarısı qədər yuxarı sürüşüb
     aşağıda boş sahə açırdı. Lent məzmunu 2× olduğu üçün başdan
     hizalananda hər iki istiqamətdə tam örtük alınır. */
  justify-content: flex-start;
  min-width: 0;
  transform: translate3d(0, var(--tile-y, 0px), 0);
  will-change: transform;
}

/* Lent: fasiləsiz öz axını (CSS) BU qatdadır — iki transform bir-birinə
   qarışmasın deyə qatlar ayrılıb. Məzmun iki dəfə təkrarlanır, ona görə
   translateY(-50%) tam dövr verir və tikiş görünmür. */
.tile-track {
  display: flex;
  /* flex: 0 0 auto ŞƏRTDİR: sütun flex konteynerdir, default flex-shrink:1
     lenti sütun hündürlüyünə qədər sıxırdı və translateY(-50%) aşağıda
     boş qara sahə açırdı. */
  flex: 0 0 auto;
  flex-direction: column;
  animation: tileScroll var(--tile-dur, 60s) linear infinite;
  will-change: transform;
}
.tile-col:nth-child(even) .tile-track { animation-direction: reverse; }
.hero.is-idle .tile-track { animation-play-state: paused; }

@keyframes tileScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

.tile {
  flex: 0 0 auto;
  /* gap əvəzinə margin: lentin hündürlüyü dəqiq 2× olsun deyə şərtdir,
     əks halda dövr sonunda sıçrayış yaranır */
  margin-bottom: var(--tile-gap);
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-soft);
}
.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;               /* hamısı eyni nisbətdə */
  object-fit: cover;
}

/* Başlığın oxunaqlılığı üçün örtük: mərkəzdə daha tünd */
.hero-veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(8, 6, 4, 0.92) 0%, rgba(8, 6, 4, 0.72) 45%, rgba(8, 6, 4, 0.4) 75%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.8) 0%, rgba(8, 6, 4, 0.35) 30%, rgba(8, 6, 4, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(920px, 100%);
  text-align: center;
}
.hero-brand {
  margin: 0 0 clamp(18px, 3vh, 30px);
  color: var(--paper);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;               /* letter-spacing-in sağdaki artığını tarazlayır */
}
.hero-title {
  margin: 0;
  color: var(--paper);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.hero-cta { margin-top: clamp(26px, 4vh, 40px); }

@media (max-width: 1100px) {
  .tile-col:nth-child(n + 6) { display: none; }   /* 5 sütun */
}
@media (max-width: 700px) {
  .hero-tiles { inset: -38%; transform: rotate(-8deg); }
  .tile-col:nth-child(n + 4) { display: none; }   /* 3 sütun */
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-brand { letter-spacing: 0.3em; text-indent: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-col { transform: none; }
  .tile-track { animation: none; }
}

/* ---------- 5b. InteractiveHoverButton (magicui — vanilla port) ----------
   Kiçik nöqtə hover-də böyüyüb düyməni doldurur, ilkin etiket sağa sürüşüb
   sönür, əvəzinə oxlu etiket içəri sürüşür. Bütün hərəkət yalnız transform +
   opacity üzərindədir — kompozitor qatında işləyir, layout/paint tetikləmir. */
.ihb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  overflow: hidden;
  border: 1px solid rgba(13, 10, 7, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: box-shadow 240ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ihb-dot {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 16px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ihb-label {
  position: relative;
  z-index: 1;
  transform: translateX(7px);
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}
.ihb-hover {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  opacity: 0;
  transform: translateX(30px);
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}
.ihb-arrow { transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.ihb:hover, .ihb:focus-visible { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28); }
.ihb:hover .ihb-dot, .ihb:focus-visible .ihb-dot { transform: scale(64); }
.ihb:hover .ihb-label, .ihb:focus-visible .ihb-label { opacity: 0; transform: translateX(52px); }
.ihb:hover .ihb-hover, .ihb:focus-visible .ihb-hover { opacity: 1; transform: translateX(0); }
.ihb:hover .ihb-arrow, .ihb:focus-visible .ihb-arrow { transform: translateX(4px); }
.ihb:active { transform: scale(0.97); }
.ihb:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.ihb:disabled .ihb-dot { transform: scale(1); }
.ihb:disabled .ihb-label { opacity: 1; transform: translateX(7px); }
.ihb:disabled .ihb-hover { opacity: 0; }

/* ---------- 6. Project slider on stage ---------- */
/* ---------- 7. Page sections ---------- */
.page-section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vh, 140px) clamp(20px, 5vw, 72px);
  background: var(--surface);
}

.section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vh, 56px); }

.section-eyebrow {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--paper);
  font-family: "Roboto Slab Variable", "Roboto Slab", Georgia, serif;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--paper-dim);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- 7x. 3D model bölməsi ----------
   Viewer kliklə yüklənir: iframe səhifə açılışında ümumiyyətlə yaradılmır. */
.model-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-soft);
}
.model-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.model-play {
  display: flex;
  position: absolute;
  inset: 0;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--paper);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 240ms ease;
}
.model-play:hover { background: rgba(243, 235, 223, 0.05); }
.model-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brass);
  font-size: 1.1rem;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.model-play:hover .model-play-icon { transform: scale(1.08); border-color: var(--brass); }
.model-play-note { color: var(--paper-dim); font-size: 0.8rem; font-weight: 400; }

@media (max-width: 700px) { .model-frame { aspect-ratio: 4 / 3; } }

/* ---------- 7u. Instagram nişanı və önizləmə ---------- */
.project-item figure { position: relative; }
.project-ig {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(13, 10, 7, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-ig:hover { background: rgba(13, 10, 7, 0.92); transform: translateY(-1px); }
.project-ig-icon { font-size: 0.95rem; line-height: 1; }

.ig-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-soft);
  color: var(--paper);
  overflow: hidden;
}
.ig-dialog::backdrop { background: rgba(6, 4, 3, 0.72); }
.ig-dialog-inner { position: relative; }
.ig-frame { min-height: 420px; }
.ig-frame iframe { display: block; width: 100%; height: 560px; max-height: 78vh; border: 0; background: #fff; }
.ig-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(13, 10, 7, 0.78);
  font-size: 15px;
  cursor: pointer;
}
.ig-close:hover { background: rgba(13, 10, 7, 0.95); }

/* ---------- 7t. 404 səhifəsi ---------- */
.notfound { display: flex; align-items: center; justify-content: center; min-height: 78vh; }
.notfound-inner { max-width: 560px; text-align: center; }
.notfound-code {
  margin: 0 0 -0.18em;
  color: var(--paper);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  /* Referensdəki "mask-b" effekti: aşağıya doğru əriyir */
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
}
.notfound .section-lead { margin-left: auto; margin-right: auto; }
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
/* İkinci dərəcəli düymə — referensdəki "outline" variantı */
.ihb-quiet {
  color: var(--paper);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.ihb-quiet .ihb-dot { background: var(--paper); }
.ihb-quiet .ihb-hover { color: var(--ink); }
.ihb-quiet:hover { background: transparent; }

/* ---------- 7w. Parallax (Osmo) ----------
   BUG DÜZƏLİŞİ: əvvəl bütün qatlar mərkəzə yığılmışdı (left:50% + translateX)
   və eyni sahəni tuturdu — şəkillər bir-birini örtür, 4-cü qat bölmədən
   aşağı daşır, başlıq isə şəkillərin ALTINDA qalırdı.
   İndi qatlar KOMPOZİSİYA kimi ayrı-ayrı sahələrə yerləşdirilib:
   sol / sağ / mərkəz-aşağı, başlıq isə hamısının üstündədir. */
.parallax {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--surface);
}
.parallax__visuals {
  position: relative;
  height: clamp(520px, 88vh, 880px);
}

.parallax__layer-img {
  position: absolute;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, var(--py, 0%), 0);
  will-change: transform;
}
/* Sol arxa plan — ən sürətli hərəkət edən qat */
[data-parallax-layer="1"] { z-index: 1; top: 4%;  left: 3%;  width: 30%; aspect-ratio: 3 / 4; opacity: 0.62; }
/* Sağ üst */
[data-parallax-layer="2"] { z-index: 1; top: 10%; right: 4%; width: 27%; aspect-ratio: 4 / 5; opacity: 0.78; }
/* Mərkəz-aşağı ön plan — ən yavaş qat */
[data-parallax-layer="4"] { z-index: 3; top: 50%; left: 31%; width: 38%; aspect-ratio: 16 / 11; }

/* Başlıq bütün şəkillərin ÜSTÜNDƏDİR */
.parallax__layer-title {
  position: absolute;
  z-index: 4;
  top: 23%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  transform: translate3d(0, var(--py, 0%), 0);
  will-change: transform;
}
.parallax__title {
  margin: 0;
  color: var(--paper);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
}
.parallax__fade {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ink));
}

@media (max-width: 900px) {
  .parallax__visuals { height: clamp(340px, 56vh, 460px); }
  [data-parallax-layer="1"] { display: none; }
  [data-parallax-layer="2"] { top: 6%; right: 5%; width: 42%; }
  [data-parallax-layer="4"] { top: 40%; left: 6%; width: 52%; }
  .parallax__layer-img, .parallax__layer-title { transform: none; }
  .parallax__title { font-size: clamp(2rem, 11vw, 3rem); }
}

/* ---------- 7v. Əvvəl / Sonra müqayisəsi ---------- */
.compare {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-soft);
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;      /* şaquli scroll bloklanmır */
}
.compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  /* BUG DÜZƏLİŞİ: burada 120ms keçid var idi — siçan hərəkətində ayırıcı
     görünən şəkildə GECİKİRDİ. İzləmə indi ani; keçid yalnız siçan
     çıxanda mərkəzə qayıdış üçün .is-easing ilə qoşulur. */
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Yalnız mərkəzə qayıdış animasiyalıdır */
.compare.is-easing .compare-before-wrap { transition: clip-path 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.compare.is-easing .compare-divider { transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}
.compare-handle::before,
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.compare-handle::before { left: 11px; border-right: 7px solid var(--ink); }
.compare-handle::after { right: 11px; border-left: 7px solid var(--ink); }

.compare-tag {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 10, 7, 0.72);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag-before { left: 14px; }
.compare-tag-after { right: 14px; }
.compare:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (max-width: 700px) {
  .compare { aspect-ratio: 4 / 3; }
  .compare-handle { width: 40px; height: 40px; }
}

/* ---------- 7z. Reel Gallery — əyilmiş, scroll ilə sürüşən lentlər ----------

   HƏNDƏSƏ (bu bölmə əvvəl səhv idi, ona görə hesablama açıq yazılıb):
   Sarğı W×H ölçüsündədir. İçindəki lent qrupu θ = 8° əyilirsə, sarğını tam
   örtmək üçün onun ölçüsü ən azı
       W' = W·cos θ + H·sin θ ,  H' = H·cos θ + W·sin θ
   olmalıdır. θ = 8° üçün sin θ ≈ 0.139 → hər kənara ~14% əlavə lazımdır.
   Buna görə lent qrupu `inset: -16%` ilə sarğıdan böyükdür: fırlanma
   künclərində BOŞLUQ QALMIR.

   SİMMETRİYA:
   · 3 sütun `flex: 1 1 0` → eyni enli
   · sütunlararası boşluq = sütundaxili boşluq (eyni --reel-gap)
   · sütunlar `justify-content: center` → məzmun mərkəzdən yuxarı və aşağı
     BƏRABƏR daşır, ona görə sürüşmə zamanı nə yuxarıda, nə aşağıda boşluq açılır
   · sürüşmə sürətləri simmetrikdir: kənar sütunlar eyni, orta sütun əks
   · bütün şəkillər eyni nisbətdə (3/4) → sətirlər bir xəttdə düzülür
*/
.reel-wrap {
  --reel-gap: clamp(12px, 1.4vw, 22px);
  --reel-tilt: -8deg;

  position: relative;
  height: clamp(420px, 62vh, 680px);
  overflow: hidden;
  border-radius: 20px;
  /* Kənarları yumşaq bitirən maska (yuxarı/aşağı) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.reel-wrap.is-empty { display: none; }

.reel-stage {
  position: absolute;
  inset: -16%;                       /* yuxarıdakı hesablamaya görə */
  display: flex;
  gap: var(--reel-gap);
  transform: rotate(var(--reel-tilt));
  transform-origin: center center;
}

.reel-col {
  display: flex;
  flex: 1 1 0;                       /* bərabər en — simmetriya üçün şərtdir */
  flex-direction: column;
  justify-content: center;           /* mərkəzdən bərabər daşma */
  gap: var(--reel-gap);
  min-width: 0;
  transform: translate3d(0, var(--reel-y, 0px), 0);
  will-change: transform;
}

.reel-item {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink-soft);
}
.reel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;               /* hamısı eyni nisbətdə */
  object-fit: cover;
}

@media (max-width: 700px) {
  .reel-wrap { height: clamp(340px, 50vh, 460px); }
  .reel-stage { inset: -22%; --reel-tilt: -6deg; }
  .reel-col:nth-child(3) { display: none; }   /* 2 sütun — yenə simmetrik */
}

@media (prefers-reduced-motion: reduce) {
  .reel-col { transform: none; }
}

/* ---------- 7a. "Xidmətlər" — FlowingMenu tərzi statik bölmə ---------- */
.services-flow {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-item {
  position: relative;
  height: clamp(96px, 14vw, 160px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-link {
  display: flex;
  position: relative;
  align-items: center;
  height: 100%;
  color: var(--paper);
  font-size: clamp(1.8rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, letter-spacing 220ms ease;
}
.service-item:hover .service-link { color: var(--brass); letter-spacing: 0.03em; }
/* Marquee statik mətni tam örtməlidir — şəffaflıq qalsa iki mətn üst-üstə düşür. */
.service-item .flow-marquee { z-index: 2; background: var(--paper); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.filter-chip:hover { color: var(--paper); border-color: rgba(243, 235, 223, 0.44); transform: translateY(-1px); }
.filter-chip:active { transform: translateY(0) scale(0.97); }
.filter-chip[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.filter-chip[aria-pressed="true"]:hover { transform: none; }

.project-grid { align-items: stretch; }

.project-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.project-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  /* OPT: ekrandan kənarda olan kartların layout/paint işi təxirə salınır.
     contain-intrinsic-size scroll hündürlüyünün sıçramaması üçün lazımdır. */
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-soft);
}
.project-item figure {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #0c0a09;
}
.project-item img,
.project-item video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Video və foto kartları eyni media hündürlüyündə qalır. */
.project-item.has-video video { aspect-ratio: auto; }

.project-video-badge {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(13, 10, 7, 0.68);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  pointer-events: none;
}
.project-item:hover img,
.project-item:hover video { transform: scale(1.04); }
.project-body { flex: 1; padding: 22px 24px 26px; }
.project-body .meta {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-body h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}
.project-body p {
  margin: 10px 0 0;
  color: var(--paper-dim);
  font-size: 0.96rem;
  line-height: 1.5;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.process-list li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--brass);
  font-family: "Roboto Slab Variable", "Roboto Slab", Georgia, serif;
  font-size: 1.5rem;
}
.process-list h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 600;
}
.process-list p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Satış kartları — blog-section üslubu ----------
   Çərçivə və nişan yoxdur: şəkil, incə meta sətri, başlıq, qiymət.
   Bütün kart tək keçiddir; hover-də yalnız yumşaq fon və şəkil zoom-u. */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(4px, 0.8vw, 10px);
  align-items: stretch;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 8px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
  transition: background-color 200ms ease;
}
.listing-card:hover { background: rgba(243, 235, 223, 0.05); }

.listing-media {
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-soft);
}
.listing-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-card:hover .listing-media img { transform: scale(1.04); }

.listing-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 0 6px 8px; }

/* Meta sətri: nöqtə ayırıcılarla — referensdəki kimi */
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.76rem;
}
.listing-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.listing-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.listing-price {
  margin: auto 0 0;
  padding-top: 6px;
  color: var(--brass);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.empty-state {
  margin: 24px 0 0;
  color: var(--paper-dim);
  font-size: 0.98rem;
}

/* ---------- 7b. Əlaqə formu ---------- */
.contact-form {
  max-width: 640px;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-soft);
}
.contact-form-title {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 600;
}
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--paper-dim);
  font-size: 0.86rem;
}
.contact-field input,
.contact-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  background: var(--ink);
  font: inherit;
  /* AUDİT C1: 0.96rem = 15.36px idi → iOS Safari fokusda zoom edirdi */
  font-size: 16px;
  resize: vertical;
  transition: border-color 200ms ease;
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  border-color: var(--brass);
  outline: none;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}
.contact-status {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.88rem;
}
.contact-status.is-error { color: #e08a6a; }

/* ---------- 8. Footer ---------- */
.site-footer {
  /* AUDİT: .site-shell flex sütundur, amma footer-də margin-top:auto yox idi —
     məzmun ekrandan qısa olsa footer yuxarı qalxırdı. */
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vh, 140px) clamp(20px, 5vw, 72px) 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; margin: 0; }
.contact-list dt {
  margin-bottom: 8px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-list dd { margin: 0; color: var(--paper); font-size: 1rem; line-height: 1.5; }
/* Toxunma hədəfi: bu linklər 21px hündürlükdə idi — barmaqla vurmaq çətin
   idi. İndi ən azı 44px, amma vizual olaraq eyni görünür. */
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-list a:hover { border-color: var(--paper); }
.contact-list dd { display: flex; align-items: center; min-height: 44px; }

.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: clamp(48px, 8vh, 96px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.86rem;
}

/* ---------- 9. StaggeredMenu — mobil naviqasiya (React Bits, vanilla port) ----------
   Sağdan sürüşən panel; arxasında iki "prelayer" pilləli gecikmə ilə gəlir.
   Bütün hərəkət transform + opacity üzərindədir (kompozitor qatı).
   GSAP əvəzinə CSS keçidləri: power4.out ≈ cubic-bezier(0.16, 1, 0.3, 1). */
.sm-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.sm-menu.is-open { visibility: visible; pointer-events: auto; }

/* Kliklə bağlama üçün fon */
.sm-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.55);
  opacity: 0;
  transition: opacity 420ms ease;
}
.sm-menu.is-open::before { opacity: 1; }

.sm-prelayers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sm-width);
  pointer-events: none;
}
.sm-prelayer {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateX(101%);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sm-prelayer:nth-child(1) { background: var(--brass); }
.sm-prelayer:nth-child(2) { background: #7d6647; }
.sm-menu.is-open .sm-prelayer { transform: translateX(0); }
.sm-menu.is-open .sm-prelayer:nth-child(1) { transition-delay: 0ms; }
.sm-menu.is-open .sm-prelayer:nth-child(2) { transition-delay: 70ms; }

.sm-panel {
  --sm-width: clamp(280px, 86vw, 420px);
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: var(--sm-width);
  height: 100%;
  padding: 24px clamp(24px, 7vw, 40px) 32px;
  overflow-y: auto;
  background: var(--paper);
  transform: translateX(101%);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
  -webkit-overflow-scrolling: touch;
}
.sm-menu { --sm-width: clamp(280px, 86vw, 420px); }
.sm-menu.is-open .sm-panel { transform: translateX(0); transition-delay: 150ms; }

.sm-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(28px, 6vh, 52px);
}
.sm-panel-brand {
  color: var(--ink);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.sm-close {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 200ms ease;
}
.sm-close:hover { background: rgba(13, 10, 7, 0.08); }
.sm-close-icon { position: relative; width: 16px; height: 16px; }
.sm-close-icon i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.sm-close-icon i:first-child { transform: translateY(-50%) rotate(45deg); }
.sm-close-icon i:last-child { transform: translateY(-50%) rotate(-45deg); }

.sm-nav { display: flex; flex-direction: column; gap: 6px; counter-reset: smItem; }

/* Hər bənd öz "pəncərəsi" içində aşağıdan qalxır (overflow: hidden) */
.sm-item { position: relative; overflow: hidden; line-height: 1; }
.sm-link {
  display: inline-block;
  position: relative;
  padding: 6px 1.6em 6px 0;
  color: var(--ink);
  font-family: "Roboto Slab Variable", Georgia, serif;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(130%) rotate(8deg);
  transform-origin: 50% 100%;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
  will-change: transform;
}
.sm-menu.is-open .sm-link { transform: translateY(0) rotate(0deg); }
.sm-link:hover { color: var(--brass); }

/* Nömrələmə — panel açılandan sonra pilləli görünür */
.sm-item::after {
  counter-increment: smItem;
  content: counter(smItem, decimal-leading-zero);
  position: absolute;
  top: 10px;
  right: 0;
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.sm-menu.is-open .sm-item::after { opacity: 1; }

/* Pilləli gecikmələr (stagger) */
.sm-menu.is-open .sm-item:nth-child(1) .sm-link { transition-delay: 250ms; }
.sm-menu.is-open .sm-item:nth-child(2) .sm-link { transition-delay: 320ms; }
.sm-menu.is-open .sm-item:nth-child(3) .sm-link { transition-delay: 390ms; }
.sm-menu.is-open .sm-item:nth-child(4) .sm-link { transition-delay: 460ms; }
.sm-menu.is-open .sm-item:nth-child(5) .sm-link { transition-delay: 530ms; }
.sm-menu.is-open .sm-item:nth-child(6) .sm-link { transition-delay: 600ms; }
.sm-menu.is-open .sm-item:nth-child(1)::after { transition-delay: 380ms; }
.sm-menu.is-open .sm-item:nth-child(2)::after { transition-delay: 450ms; }
.sm-menu.is-open .sm-item:nth-child(3)::after { transition-delay: 520ms; }
.sm-menu.is-open .sm-item:nth-child(4)::after { transition-delay: 590ms; }
.sm-menu.is-open .sm-item:nth-child(5)::after { transition-delay: 660ms; }
.sm-menu.is-open .sm-item:nth-child(6)::after { transition-delay: 730ms; }

.sm-socials { margin-top: auto; padding-top: 32px; }
.sm-socials-title {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sm-socials-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.sm-socials-list a {
  display: inline-block;
  min-height: 44px;                 /* toxunma hədəfi */
  padding: 12px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}
.sm-menu.is-open .sm-socials-list a { opacity: 1; transform: translateY(0); transition-delay: 520ms; }
.sm-socials-list a:hover { color: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  .sm-prelayer, .sm-panel, .sm-link, .sm-item::after, .sm-socials-list a {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}


/* ---------- 9b. Marquee lenti — "Xidmətlər" bölməsi üçün ----------
   (Əvvəl menyu overlay-i ilə paylaşılırdı; menyu StaggeredMenu-ya keçdiyi üçün
   indi yalnız xidmət sətirlərində istifadə olunur.) */
.flow-marquee {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
  transform: translate3d(0, 101%, 0);
}
.flow-marquee-inner {
  height: 100%;
  transform: translate3d(0, -101%, 0);
}
.flow-marquee,
.flow-marquee-inner {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.flow-marquee.is-instant,
.flow-marquee-inner.is-instant { transition: none; }

.flow-marquee-scroll {
  display: flex;
  width: max-content;
  height: 100%;
  animation: flowMarquee var(--marquee-dur, 15s) linear infinite;
}
.service-item:not(:hover) .flow-marquee-scroll { animation-play-state: paused; }

@keyframes flowMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-w, 0px)), 0, 0); }
}

.marquee-part {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--ink);
}
.marquee-part span {
  padding: 0 1vw;
  font-size: clamp(1.4rem, 4vh, 3.4rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.marquee-part i {
  display: block;
  width: 200px;
  height: 7vh;
  min-height: 56px;
  margin: 0 2vw;
  border-radius: 50px;
  background-position: center;
  background-size: cover;
}

/* ---------- 10. Media queries ---------- */
@media (max-width: 640px) {
  :root { --texture: url("assets/texture-sm.webp"); }
  .site-header { padding: 12px 16px; }
  /* Mobildə eyni anda ən az 5 layihə görünsün: 2 sütun + yığcam kart */
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project-item figure { aspect-ratio: 4 / 3; }
  .project-body { padding: 10px 12px 14px; }
  .project-body .meta { gap: 6px; margin-bottom: 6px; font-size: 10px; letter-spacing: 0.1em; }
  .project-body .meta span:nth-child(3) { display: none; }   /* il — yer qazanır */
  .project-body h3 { font-size: 0.94rem; line-height: 1.25; }
  .project-body p { display: none; }                          /* təsvir kartda yox */
  .filter-bar { gap: 6px; margin-bottom: 18px; }
  .filter-chip { min-height: 40px; padding: 0 14px; font-size: 0.82rem; }

  .listing-grid { grid-template-columns: 1fr; }
  .footer-note { justify-content: flex-start; }
}

@media (hover: none) {
  .flow-marquee { display: none; }
  .project-item:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title,
  .hover-circle,
  .pill-label,
  .pill-label-hover,
  .hamburger-line,
  .ihb,
  .ihb-dot,
  .ihb-label,
  .ihb-hover,
  .ihb-arrow,
  .project-item img,
  .flow-marquee-scroll { animation: none; }
  .flow-marquee { display: none; }
}

/* ---------- 11. Mobil optimallaşdırma ----------
   Məqsəd: kiçik ekranda eyni dizayn, amma daha az piksel işi və daha rahat
   toxunma hədəfləri. Effektlər SİLİNMİR, yalnız yüngülləşdirilir. */
@media (max-width: 700px) {
  /* Hero və Tilted Tiles effekti mobildə də tam görünür. JS yalnız görünən
     3 sütunu qurur; buna görə gizli desktop sütunlarının xərcini daşımırıq. */
  .hero {
    min-height: max(680px, 100svh);
    padding-bottom: clamp(56px, 9vh, 90px);
  }
  .hero-tiles { display: flex; inset: -32% -36%; transform: rotate(-8deg); }
  .hero-veil { display: block; }

  /* AUDİT (B2) — sabit header (~74px) ilə ilk blokun üst-üstə düşməsi.
     ƏVVƏL: boşluq yalnız `#layiheler`-ə verilirdi → index, satis, xidmetler,
     proses və elaqe qorunmurdu; `clamp(72px, 11vh, 140px)` isə 667px-lik
     ekranda 73px verir və header-in altına girirdi.
     İNDİ: `#main` işarəsindən sonra gələn İLK blok — hansı səhifə olmasından
     asılı olmayaraq — header hündürlüyündən böyük boşluq alır.
     ID selektoru olduğu üçün .hero / .page-section / .site-footer
     dəyərlərini spesifikliklə üstələyir, !important lazım deyil. */
  .site-shell > #main + * { padding-top: clamp(112px, 20vh, 160px); }

  /* Böyük kölgələr mobil GPU-da bahalıdır — yumşaldılır */
  .ihb, .pill-list, .pill-burger { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24); }

  /* Ekrandan kənar bölmələrin render işi təxirə salınır */
  .page-section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

  /* Stack: mobildə daha qısa scroll və daha az hərəkət */

  /* Toxunma hədəfləri ≥44px */
  .sm-link { padding-top: 10px; padding-bottom: 10px; }
  .filter-chip, .ihb { min-height: 46px; }

  /* Mətn sahələrində üfüqi daşma olmasın */
  .section-title { overflow-wrap: anywhere; }
}

/* Toxunma cihazlarında hover-ə bağlı ağır effektlər ümumiyyətlə qurulmur */
@media (hover: none) {
  .reel-col { will-change: auto; }
}


/* ---------- AUDİT: şəkil yüklənmə vəziyyəti ----------
   `loading="lazy"` şəkillər yüklənənə qədər brauzer alt mətni elementin
   içində göstərir — kart "sınıq şəkil" təsiri bağışlayırdı.
   Yüklənmə boyu mətn gizlədilir; HƏQİQİ xəta halında (data-img-state="error")
   alt mətn geri qayıdır, yəni problem maskalanmır. */
img[data-img-state="loading"] {
  color: transparent;
  font-size: 0;
}
img[data-img-state="error"] {
  color: var(--paper-dim);
  font-size: 0.78rem;
}


/* ---------- Satış kartında ünvan linki ----------
   Kartın özü <a>-dır, ona görə bu link onun İÇİNDƏ deyil, yanındadır. */
.listing-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.listing-item > .listing-card { flex: 1; }
.listing-map {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  /* Toxunma hədəfi 44px-dən aşağı düşməsin */
  min-height: 44px;
  margin: 2px 8px 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.listing-map:hover,
.listing-map:focus-visible { color: var(--paper); border-color: var(--paper-dim); }
.listing-map-icon { font-size: 0.9em; }

/* ---------- Layihə pəncərəsi: sürüşdürülən lent + thumbnail zolağı ---------- */
.project-item.is-openable { cursor: pointer; }
.project-item.is-openable:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.pv-dialog {
  width: min(1080px, 94vw);
  max-height: 92svh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-soft);
  color: var(--paper);
  overflow: hidden;
}
.pv-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.pv-inner {
  display: flex;
  flex-direction: column;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pv-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.72);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
}

.pv-stage { position: relative; background: var(--ink); }
.pv-viewport {
  overflow: hidden;
  /* Şaquli sürüşdürmə brauzerdə qalır, üfüqini biz idarə edirik */
  touch-action: pan-y;
  cursor: grab;
}
.pv-viewport.is-single { cursor: default; }
.pv-viewport:active { cursor: grabbing; }
.pv-track { display: flex; will-change: transform; }
.pv-slide {
  flex: 0 0 100%;
  /* Sabit nisbət: kadr dəyişəndə pəncərə sıçramır */
  aspect-ratio: 4 / 3;
  max-height: 62svh;
}
/* HƏR ÖLÇÜ DƏSTƏKLƏNİR: contain — şaquli, üfüqi və kvadrat fotolar
   kəsilmədən tam görünür. Kadr arxası tünd fon qalır. */
.pv-slide img,
.pv-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090807;
  user-select: none;
  -webkit-user-drag: none;
}
.pv-slide video { cursor: auto; }

.pv-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: #14110f;
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 200ms ease, transform 200ms ease;
}
.pv-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-nav:hover:not(:disabled) { opacity: 1; transform: translateY(-50%) scale(1.1); }
.pv-nav:disabled { opacity: 0.32; cursor: not-allowed; }
.pv-prev { left: 16px; }
.pv-next { right: 16px; }
.pv-viewport.is-single ~ .pv-nav { display: none; }

.pv-counter {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.66);
  color: var(--paper-dim);
  font-size: 0.76rem;
}

.pv-info { padding: 18px clamp(16px, 3vw, 28px) 0; }
.pv-meta {
  margin: 0 0 6px;
  color: var(--paper-dim);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pv-title { margin: 0 0 8px; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.pv-text { margin: 0; color: var(--paper-dim); line-height: 1.6; }
.pv-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pv-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}
.pv-link:hover, .pv-link:focus-visible { color: var(--paper); border-color: var(--paper-dim); }
.pv-link.is-plain { cursor: default; }

/* Thumbnail zolağı: aktiv olan 35px-dən 120px-ə açılır */
.pv-thumbs {
  display: flex;
  gap: 4px;
  height: 80px;
  padding: 16px clamp(16px, 3vw, 28px) 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  box-sizing: content-box;
}
.pv-thumbs::-webkit-scrollbar { display: none; }
.pv-thumb {
  flex: 0 0 auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: width 300ms ease-out, opacity 300ms ease-out;
}
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.pv-thumb.is-video { position: relative; }
.pv-thumb-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.76);
  color: #fff;
  font-size: 10px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pv-thumb[aria-current="true"] { opacity: 1; }
.pv-thumb:hover { opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .pv-track { transition: none !important; }
  .pv-thumb { transition: none; }
}

@media (max-width: 640px) {
  .pv-dialog { width: 100vw; max-width: 100vw; max-height: 100svh; border: 0; border-radius: 0; }
  .pv-inner { max-height: 100svh; }
  .pv-slide { aspect-ratio: 1 / 1; max-height: 56svh; }
  .pv-prev { left: 10px; }
  .pv-next { right: 10px; }
}

/* ---------- MOBİL QALEREYA: eyni anda ən az 4 layihə ----------
   Ölçüldü: kartlar 370-409px-dən başlayırdı və hər kart 226-244px idi,
   yəni ekranda cəmi 2 kart tam görünürdü. Aşağıdakılar həm başlıq blokunu
   yığcamlaşdırır, həm kartı alçaldır. Yalnız qalereya səhifəsinə təsir edir
   (#projectGrid olan səhifə), digər bölmələrin tipoqrafiyası dəyişmir. */
@media (max-width: 640px) {
  /* Başlıq bloku: header-dən təhlükəsiz məsafə qalır (header ≈ 62px) */
  .site-shell:has(#projectGrid) > #main + * { padding-top: clamp(84px, 13vh, 110px); }
  .site-shell:has(#projectGrid) .section-head { margin-bottom: 14px; }
  .site-shell:has(#projectGrid) .section-head h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .site-shell:has(#projectGrid) .section-head p { margin-top: 6px; font-size: 0.86rem; }
  .filter-bar { margin-bottom: 12px; }

  /* Kart: kvadrat şəkil çox hündür idi — 4:3 sıra hündürlüyünü ~25% azaldır */
  .project-item figure { aspect-ratio: 4 / 3; }
  .project-body { padding: 8px 10px 10px; }
  .project-body .meta { margin-bottom: 4px; }
  .project-body h3 { font-size: 0.88rem; }
}

/* Toxunma cihazlarında Instagram nişanı 40px idi — 44px standartına qaldırılır.
   Kartın özü də klikləniləbilən olduğu üçün bu düymə asan seçilməlidir. */
@media (pointer: coarse) {
  .project-ig { min-height: 44px; }
}

/* ---------- Kart spotlight effekti (React Bits SpotlightCard qarşılığı) ----------
   Kursor kartın üzərində gəzdikcə isti işıq ləkəsi onu izləyir.
   Mövqe JS-dən --spot-x / --spot-y ilə gəlir; qalan hər şey CSS-dədir. */
.project-item {
  /* Kursor kartın üzərinə gəlməmişdən əvvəl ləkə mərkəzdə dursun —
     ilk hərəkətdə küncdən sıçramasın. */
  --spot-x: 50%;
  --spot-y: 50%;
}
.project-item::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  /* Kartın öz künc radiusunu təkrarlayır ki, ləkə küncdən daşmasın */
  border-radius: inherit;
  /* Klikləri, hover-i və Instagram düyməsini bloklamamalıdır */
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--spot-x) var(--spot-y),
    rgba(238, 232, 220, 0.22),
    transparent 78%
  );
  transition: opacity 500ms ease-in-out;
}
/* Siçan üçün hover, klaviatura üçün focus — hər ikisi eyni effekti verir */
.project-item.is-openable:hover::after,
.project-item.is-openable:focus-visible::after { opacity: 0.6; }

/* Toxunma cihazında kursor yoxdur: effekt heç vaxt görünmür, amma
   `:hover` mobil brauzerlərdə toxunuşdan sonra "ilişib qala" bilir. */
@media (hover: none) {
  .project-item::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-item::after { transition: none; }
}
