/* Abduhakimov | Abdulloh — "Frosted ice" uslubi */
:root {
  --bg-top: #d9dde3;
  --bg-mid: #c3c8d0;
  --bg-bot: #a9aeb8;
  --ink: #0e1116;
  --ink2: #3c4350;
  --muted: #5d6573;
  --white: #ffffff;
  --accent: #5b8cff;
  --line: rgba(14, 17, 22, .14);
  --line-w: rgba(255, 255, 255, .6);
  --glass: rgba(255, 255, 255, .26);
  --glass-strong: rgba(255, 255, 255, .42);
  --ff-display: "Unbounded", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.65 var(--ff-body);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%) fixed;
  background-color: var(--bg-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.js:not(.entered) body { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.mono { font-family: var(--ff-mono); }
.brk { color: var(--muted); }

/* ---------- fon qatlamlari ---------- */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.plain #world { display: none; }
.frost {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 30% at 50% -6%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(40% 40% at 50% 112%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 18%, transparent 82%, rgba(255, 255, 255, .16));
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- GATE: faqat ajdarho, ichi suv bilan to'ladi ---------- */
.gate { display: none; }
.js .gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter);
  background:
    radial-gradient(45% 40% at 50% 46%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #d4d8de, #b4b9c2);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease);
}
.gate[hidden] { display: none; }
.gate.is-out { opacity: 0; transform: scale(1.08); filter: blur(10px); pointer-events: none; }
.gate__dragon { position: relative; width: min(440px, 80vw); aspect-ratio: 1; }
.gate__dragon-base { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; user-select: none; -webkit-user-drag: none; }
/* suv faqat ajdarho shakli ichida ko'rinadi */
.gate__liquid {
  position: absolute; inset: 0;
  -webkit-mask: url("/static/shapes/kali-dragon.svg") center / contain no-repeat;
  mask: url("/static/shapes/kali-dragon.svg") center / contain no-repeat;
}
.gate__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 100%);
  background: linear-gradient(180deg, #4a5874 0%, #26303f 45%, #0e1116 100%);
}
.gate__wave { position: absolute; left: 0; width: 200%; background-repeat: repeat-x; background-size: 50% 100%; }
.gate__wave--a { top: -13px; height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q25 2 50 12 T100 12 T150 12 T200 12 V24 H0Z' fill='%234a5874'/%3E%3C/svg%3E"); animation: wave 1.6s linear infinite; }
.gate__wave--b { top: -18px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q25 2 50 12 T100 12 T150 12 T200 12 V24 H0Z' fill='%236b7a96'/%3E%3C/svg%3E"); opacity: .55; animation: wave 2.7s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gate__bubbles {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .55) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 90%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .5) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 95%, rgba(255, 255, 255, .4) 0 1px, transparent 2px);
  background-size: 120px 140px;
  animation: bubbles 3.2s linear infinite;
}
@keyframes bubbles { from { background-position: 0 0; } to { background-position: 0 -140px; } }
.gate.is-ready .gate__dragon { animation: glow 1.2s ease-out both; }
@keyframes glow { 50% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, .95)); transform: scale(1.03); } }
.gate__error { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); width: min(420px, 90vw); text-align: center; }
.gate__error[hidden] { display: none; }
.gate__error p { margin: 0 0 12px; font-size: 14px; }
.gate__retry { cursor: pointer; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.gate.is-error .gate__water { background: linear-gradient(180deg, #8a4a4a, #3a1f1f); }

/* ---------- NAV / UI ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); transition: transform .6s var(--ease), opacity .6s;
}
html:not(.entered) .nav, html:not(.entered) .sound, html:not(.entered) .progress { opacity: 0; }
.nav__logo { display: flex; align-items: center; gap: 12px; font: 400 12px var(--ff-display); letter-spacing: .12em; text-transform: uppercase; }
.nav__mark { width: 44px; height: 44px; display: block; transition: transform .8s var(--ease); animation: drift 6s ease-in-out infinite; }
.nav__logo:hover .nav__mark { transform: rotate(-14deg) scale(1.12); }
@keyframes drift { 50% { translate: 0 -3px; } }
.nav__name i { font-style: normal; opacity: .4; margin: 0 .5em; }
.nav__links { display: flex; gap: 6px; font: 500 12px var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { padding: 8px 12px; border-radius: 999px; transition: background .3s; }
.nav__links a:hover { background: var(--glass-strong); }
.nav__links a .wv { display: inline-block; transition: transform .35s var(--ease); }
.nav__links a:hover .wv { transform: translateY(-3px); }
.lang { position: relative; display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-w); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 11px; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; letter-spacing: .08em; cursor: pointer; transition: background .3s, color .3s; }
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--ink); color: var(--white); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 220px; max-height: min(70vh, 520px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 18px; background: rgba(240, 243, 247, .97); border: 1px solid #fff; box-shadow: 0 24px 60px rgba(14, 17, 22, .22); transform-origin: top right; animation: langIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lang__menu a { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; color: var(--ink2); font: 500 13px var(--ff-body); letter-spacing: 0; text-transform: none; transition: background .2s, color .2s; }
.lang__menu a b { font: 600 10px var(--ff-mono); letter-spacing: .1em; color: var(--muted); }
.lang__menu a:hover { background: #fff; color: var(--ink); }
.lang__menu a.is-active { background: var(--ink); color: var(--white); }
.lang__menu a.is-active b { color: rgba(255, 255, 255, .7); }
/* boshqa yozuvlar: zaxira shrift, harflar oralig'i yo'q (arab harflari ulanib yoziladi) */
html[lang="ar"] { --ff-display: "Unbounded", "Noto Sans Arabic", system-ui, sans-serif; --ff-body: "Manrope", "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="zh"] { --ff-display: "Unbounded", "Noto Sans SC", system-ui, sans-serif; --ff-body: "Manrope", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ja"] { --ff-display: "Unbounded", "Noto Sans JP", system-ui, sans-serif; --ff-body: "Manrope", "Noto Sans JP", system-ui, sans-serif; }
html[lang="ko"] { --ff-display: "Unbounded", "Noto Sans KR", system-ui, sans-serif; --ff-body: "Manrope", "Noto Sans KR", system-ui, sans-serif; }
html[lang="hi"] { --ff-display: "Unbounded", "Noto Sans Devanagari", system-ui, sans-serif; --ff-body: "Manrope", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="ar"] main *, html[lang="ar"] footer *, html[lang="hi"] main *, html[lang="hi"] footer * { letter-spacing: 0 !important; }
html[lang="ar"] [data-i18n], html[lang="ar"] .project__body p, html[lang="ar"] .project__body h3 { unicode-bidi: plaintext; }
html[lang="zh"] .split-w, html[lang="ja"] .split-w { white-space: normal; }

.sound {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-w); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: opacity .6s;
}
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 100%; background: var(--ink); animation: bars 1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.3s; } .sound__bars i:nth-child(3) { animation-delay: -.6s; } .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.sound__bars i { transform-origin: bottom; }
.sound__off { display: none; }
.sound-off .sound__on { display: none; }
.sound-off .sound__off { display: inline; }
.sound-off .sound__bars i { animation: none; transform: scaleY(.2); }

.progress { position: fixed; right: var(--gutter); bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; transition: opacity .6s; }
.progress i { width: 90px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.progress b { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- umumiy ---------- */
main { position: relative; z-index: 2; }
.section { position: relative; min-height: 100vh; padding: 18vh var(--gutter); }
.glass {
  background: var(--glass); border: 1px solid var(--line-w); border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 24px 70px rgba(30, 40, 60, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.eyebrow { margin: 0 0 22px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink2); }
.section__head { margin-bottom: 26px; }
.section__head--wide { max-width: 760px; margin-bottom: clamp(36px, 6vw, 70px); }
.section__index { display: inline-block; font-size: 12px; letter-spacing: .2em; color: var(--ink2); margin-bottom: 14px; }
.section__index::before { content: "[ "; color: var(--muted); }
.section__index::after { content: " ]"; color: var(--muted); }
.section__title { margin: 0; font: 300 clamp(24px, 3vw, 44px)/1.08 var(--ff-display); letter-spacing: -.03em; text-transform: uppercase; }
.section__lead { margin: 16px 0 0; color: var(--ink2); max-width: 520px; font-size: 17px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  background: var(--ink); color: var(--white); font: 500 13px var(--ff-mono); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { background: #262c38; transform: translateY(-2px); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gutter) 16vh; }
.hero__inner { max-width: 1200px; min-width: 0; }
.hero__title { margin: 0; font: 300 clamp(26px, 4.4vw, 74px)/.98 var(--ff-display); letter-spacing: -.045em; text-transform: uppercase; }
.hero__line { display: block; white-space: nowrap; }
.hero__line--light { color: var(--white); text-shadow: 0 0 40px rgba(255, 255, 255, .6); }
.hero__role { margin: 26px 0 8px; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .14em; text-transform: uppercase; }
.hero__tagline { max-width: 480px; margin: 0; color: var(--ink2); font-size: clamp(15px, 1.3vw, 18px); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 16vh; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink2); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 70px; background: linear-gradient(var(--ink), transparent); position: relative; overflow: hidden; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.about__card { padding: clamp(24px, 3.4vw, 44px); max-width: 640px; }
.about__photo { margin: 0 0 22px; width: min(168px, 42%); }
.about__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
[data-img] { transition: filter .3s, transform .3s, border-radius .3s, box-shadow .3s; }
.about__lead { font: 300 clamp(18px, 1.7vw, 24px)/1.4 var(--ff-display); margin: 0 0 20px; letter-spacing: -.01em; }
.about__text { margin: 0; color: var(--ink2); }
.hud { padding: 26px; font-size: 12px; max-width: 420px; justify-self: end; }
.hud__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hud__key { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.hud__val { text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat b { display: block; font: 300 clamp(26px, 2.4vw, 36px)/1 var(--ff-display); margin-bottom: 8px; }
.stat span { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

/* stack */
.stack__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; padding: 24px; overflow: hidden; transform-style: preserve-3d; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 60%); }
.card:hover::after { opacity: 1; }
.card__no { font-size: 11px; color: var(--muted); }
.card h3 { font: 400 17px/1.3 var(--ff-display); margin: 12px 0 18px; text-transform: uppercase; letter-spacing: .02em; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }

/* services */
.services__list { display: grid; max-width: 980px; margin-left: auto; }
.service { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: 14px; }
.service__no { font-size: 12px; color: var(--muted); }
.service h3 { margin: 0; font: 400 clamp(17px, 1.8vw, 24px)/1.2 var(--ff-display); text-transform: uppercase; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--ink2); }

/* projects */
.projects__list { display: grid; gap: 20px; max-width: 1100px; }
.project { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: 14px; transform-style: preserve-3d; }
.project:nth-child(even) { margin-left: auto; }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #c9ced6; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .project__media img, .project:hover .project__ph { transform: scale(1.04); }
.project__ph {
  position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease);
  background:
    radial-gradient(60% 70% at 30% 25%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(50% 60% at 80% 80%, hsla(var(--h, 220), 60%, 70%, .35), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(14, 17, 22, .05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(14, 17, 22, .05) 23px 24px),
    linear-gradient(160deg, #e3e6ea, #b9bec7);
}
.project__ph b { font: 300 clamp(70px, 10vw, 140px) var(--ff-display); color: transparent; -webkit-text-stroke: 1px rgba(14, 17, 22, .45); }
.project__ph span { position: absolute; left: 14px; bottom: 12px; font: 400 11px var(--ff-mono); color: var(--ink2); letter-spacing: .12em; }
/* loyiha brendi: saytning o'z ranglari + logotip */
.project__brand {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 20%, color-mix(in srgb, var(--ba, #fff) 22%, transparent), transparent 70%),
    linear-gradient(160deg, var(--b1, #333), var(--b2, #111));
  transition: transform 1s var(--ease);
}
.project__brand::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--ba, #fff) 18%, transparent) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--ba, #fff) 18%, transparent) 23px 24px);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.project__glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ba, #fff) 55%, transparent), transparent); filter: blur(20px); animation: brandGlow 6s ease-in-out infinite; }
@keyframes brandGlow { 0%, 100% { transform: translate(-18%, -10%) scale(.9); opacity: .55; } 50% { transform: translate(18%, 12%) scale(1.15); opacity: .9; } }
.project__media .project__logo { position: relative; width: min(58%, 340px); height: auto; max-height: 62%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); transition: transform .9s var(--ease); }
.project:hover .project__media .project__logo { transform: scale(1.06) translateY(-4px); }
.project:hover .project__brand { transform: scale(1.03); }
.project__brand span { position: absolute; left: 14px; bottom: 12px; font: 400 11px var(--ff-mono); letter-spacing: .12em; color: color-mix(in srgb, var(--ba, #fff) 80%, #fff); }
.project__body { padding: 8px clamp(6px, 1.5vw, 16px); }
.project__idx { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.project__body h3 { font: 400 clamp(20px, 2.2vw, 30px)/1.15 var(--ff-display); margin: 10px 0 14px; text-transform: uppercase; letter-spacing: -.02em; }
.project__body p { color: var(--ink2); margin: 0 0 18px; }
.project__body .tags { margin-bottom: 24px; }
.projects__empty { color: var(--ink2); }

/* pedestal */
.pedestal { position: relative; height: 320vh; }
.pedestal__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 110px var(--gutter) 30px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.pedestal__head { max-width: 460px; }
.pedestal__head .section__title { font-size: clamp(22px, 2.6vw, 38px); }
.pedestal__ui { pointer-events: auto; align-self: center; display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.pedestal__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-w); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; font-size: 16px; transition: background .3s; }
.pedestal__arrow:hover { background: var(--glass-strong); }
.pedestal__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-w); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pedestal__tabs button { border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; font: 500 11px var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); transition: background .3s, color .3s; }
.pedestal__tabs button.is-active { background: var(--ink); color: var(--white); }
.pedestal__tabs button.is-active::before { content: "[ "; } .pedestal__tabs button.is-active::after { content: " ]"; }
.pedestal__hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* instagram */
.insta { min-height: auto; padding-bottom: 8vh; }
.insta__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.insta__head .section__head--wide { margin-bottom: 0; }
.insta__handle { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-w); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .4s var(--ease), background .3s; }
.insta__handle:hover { transform: translateY(-3px); background: var(--glass-strong); }
.insta__handle b { display: block; font: 400 15px var(--ff-display); letter-spacing: -.01em; }
.insta__handle small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.insta__handle i { font-style: normal; font-size: 18px; }
.insta__ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 2px; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); animation: ringSpin 6s linear infinite; }
.insta__ring img { width: 100%; height: 100%; border-radius: 50%; padding: 6px; background: #e6e9ee; animation: ringSpin 6s linear infinite reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.insta__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; perspective: 1200px; }
.insta__tile { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line-w); border-radius: 18px; overflow: hidden; cursor: pointer; background: #c9ced6; box-shadow: 0 18px 50px rgba(30, 40, 60, .14); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.insta__tile:hover { transform: translateY(-8px) rotateX(4deg); box-shadow: 0 30px 70px rgba(30, 40, 60, .24); }
.insta__tile:hover img { transform: scale(1.08); filter: saturate(1.1); }
.insta__badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: rgba(14, 17, 22, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.insta__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px; text-align: left; color: var(--white); background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 22, .78)); opacity: 0; transition: opacity .5s var(--ease); }
.insta__tile:hover .insta__over, .insta__tile:focus-visible .insta__over { opacity: 1; }
.insta__play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 18px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: scale(.6); transition: transform .5s var(--ease); }
.insta__tile:hover .insta__play { transform: scale(1); }
.insta__cap { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta__empty { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.insta__empty[hidden] { display: none; }

/* Instagram pleyer oynasi */
.ig-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 16px; }
.ig-modal[hidden] { display: none; }
.ig-modal__backdrop { position: absolute; inset: 0; background: rgba(14, 17, 22, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s; }
.ig-modal__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 80px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, .45); transform: translateY(30px) scale(.94); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.ig-modal__box .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-modal__box iframe { border-radius: 0 !important; }
.ig-modal__fallback { display: block; padding: 40px 20px; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
/* like va izohlar paneli */
.social { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.social[hidden] { display: none; }
.social__bar { display: flex; align-items: center; gap: 14px; }
.social__like { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); cursor: pointer; font: 500 14px var(--ff-mono); color: var(--ink); transition: background .3s, border-color .3s; }
.social__heart { font-size: 18px; line-height: 1; color: #9aa1ad; transition: color .3s, transform .3s; }
.social__like.is-liked { border-color: rgba(229, 57, 87, .35); background: rgba(229, 57, 87, .08); }
.social__like.is-liked .social__heart { color: #e53957; }
.social__like.pop .social__heart { animation: heartPop .55s cubic-bezier(.2, 1.6, .3, 1); }
.social__like.pop::after { content: ""; position: absolute; left: 22px; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; box-shadow: 0 -18px 0 -2px #e53957, 16px -10px 0 -3px #ff9db0, 18px 8px 0 -2px #e53957, 0 18px 0 -3px #ff9db0, -16px 10px 0 -2px #e53957, -18px -8px 0 -3px #ff9db0; animation: heartBurst .6s ease-out forwards; }
@keyframes heartPop { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes heartBurst { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.4); } }
.social__count { font-size: 13px; color: var(--ink2); }
.social__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 220px; overflow-y: auto; }
.social__item { position: relative; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line-w); animation: rise .5s var(--ease) both; }
.social__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.social__head b { font: 500 13px var(--ff-display); }
.social__head small { font-size: 10px; color: var(--muted); }
.social__item p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.social__del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #e53957; color: #fff; font-size: 11px; cursor: pointer; }
.social__empty { margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.social__empty[hidden] { display: none; }
.social__form { display: grid; gap: 8px; }
.social__form input, .social__form textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75); font: 400 14px var(--ff-body); color: var(--ink); resize: vertical; }
.social__form input:focus, .social__form textarea:focus { outline: none; border-color: var(--ink); }
.social__send { justify-self: start; padding: 10px 20px; border: 0; cursor: pointer; }
.social__send:disabled { opacity: .5; }
.social__msg { margin: 0; min-height: 1.2em; font-size: 12px; color: #16a34a; }
.social__msg.is-err { color: #e53957; }
.insta__stats { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; color: #fff; background: rgba(14, 17, 22, .55); white-space: pre; transition: opacity .3s; }
.insta__stats:empty { display: none; }
.insta__tile:hover .insta__stats { opacity: 0; }
.reel__info { overflow-y: auto; max-height: min(78vh, 720px); }
.ig-modal:not(.is-reel) .ig-modal__box .social { padding: 14px 16px 18px; }

/* saytning o'z reels pleyeri */
.ig-modal.is-reel .ig-modal__box {
  width: min(900px, 100%); max-height: calc(100vh - 48px); overflow: hidden; padding: 14px; border-radius: 26px;
  background: rgba(236, 239, 244, .78); border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
.reel { display: grid; grid-template-columns: auto minmax(240px, 300px); gap: 18px; align-items: stretch; }
.reel__stage { position: relative; height: min(78vh, 720px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0e1116; box-shadow: 0 20px 60px rgba(14, 17, 22, .35); }
.reel__video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0e1116; cursor: pointer; }
.reel__play { position: absolute; top: 50%; left: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .2); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .4s, transform .4s var(--ease); }
.reel__play i { font-style: normal; margin-left: 4px; }
.reel__stage.is-playing .reel__play { opacity: 0; transform: scale(.7); pointer-events: none; }
.reel__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; overflow: hidden; }
.reel__progress { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.reel__mute { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(14, 17, 22, .45); color: #fff; font-size: 16px; cursor: pointer; }
.reel__info { display: flex; flex-direction: column; gap: 16px; padding: 10px 6px 6px; min-width: 0; }
.reel__who { display: flex; align-items: center; gap: 12px; }
.reel__who b { display: block; font: 400 15px var(--ff-display); letter-spacing: -.01em; }
.reel__who small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.reel__cap { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.6; overflow-y: auto; max-height: 46vh; }
.reel__open { align-self: flex-start; margin-top: auto; }
.ig-modal.is-reel .ig-modal__close { color: var(--ink); border-color: rgba(14, 17, 22, .25); background: rgba(255, 255, 255, .6); }
@media (max-width: 768px) {
  .ig-modal.is-reel .ig-modal__box { padding: 10px; overflow-y: auto; }
  .reel { grid-template-columns: 1fr; gap: 12px; }
  /* vertikal 9:16 saqlansin: kenglik balandlikdan hisoblanadi */
  .reel__stage { height: min(68vh, calc((100vw - 52px) * 16 / 9)); width: auto; aspect-ratio: 9 / 16; margin: 0 auto; }
  .reel__cap { max-height: none; }
}

.ig-modal.is-open .ig-modal__backdrop { opacity: 1; }
.ig-modal.is-open .ig-modal__box { transform: none; opacity: 1; }
.ig-modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .2); color: #fff; font-size: 16px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* contact: Cuticle footer'iga o'xshash ixcham blok */
.contact { min-height: auto; padding-top: 14vh; padding-bottom: 28px; }
.contact__head { margin-bottom: 34px; max-width: 760px; }
.contact__title { margin: 0; font: 300 clamp(26px, 3.4vw, 50px)/1.05 var(--ff-display); text-transform: uppercase; letter-spacing: -.035em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr 1fr; gap: clamp(22px, 3vw, 48px); padding: clamp(24px, 3vw, 40px); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 400 13px var(--ff-display); text-transform: uppercase; letter-spacing: .08em; }
.footer-brand img { width: 52px; height: 52px; transition: transform .8s var(--ease); }
.footer-brand:hover img { transform: rotate(-12deg) scale(1.08); }
.footer-brand i { font-style: normal; opacity: .4; margin: 0 .45em; }
.footer-brand small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.footer-tag { margin: 18px 0 18px; color: var(--ink2); font-size: 14px; max-width: 340px; }
.footer-cta { display: inline-flex; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font: 500 12px var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; transition: transform .4s var(--ease); }
.footer-cta:hover { transform: translateY(-2px); }
.footer-h { margin: 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.footer-k { margin-top: 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-k:first-of-type { margin-top: 0; }
.footer-v { font-size: 15px; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; }
a.footer-v, .footer-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
a.footer-v:hover, .footer-link:hover { background-size: 100% 1px; }
.footer-link { font-size: 15px; margin-bottom: 9px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink2); }
.footer__credits { color: var(--muted); }

/* yuguruvchi qator — scroll tezligiga qarab qiyshayadi */
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1) 9vh; padding: 14px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; font: 300 clamp(22px, 3vw, 40px) var(--ff-display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; will-change: transform; }
.marquee__track span { padding-right: .4em; }
.marquee__track span:nth-child(2) { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* harfma-harf ko'tariladigan sarlavhalar */
.split-w { display: inline-block; white-space: nowrap; }
.split-c { display: inline-block; will-change: transform; }

.toast { position: fixed; left: 50%; bottom: 70px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; transition: opacity .35s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* kursor */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; }
.cursor.is-hover .cursor__dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: .75; }

/* logospin: qatlamli (qalin) ajdarho */
.logospin { position: relative; height: 260vh; }
.logospin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; perspective: 1400px; }
.logospin__stage { position: relative; width: min(56vh, 78vw); aspect-ratio: 1; transform-style: preserve-3d; }
.logospin__coin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.logospin__coin img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; user-select: none; -webkit-user-drag: none; }
.logospin__ring { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 0 60px rgba(255, 255, 255, .6), inset 0 0 60px rgba(255, 255, 255, .45); opacity: 0; }
.logospin__shine { position: absolute; inset: -30%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), transparent 70%); mix-blend-mode: screen; }
.logospin__cap { position: absolute; bottom: 12vh; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: .4em; color: var(--ink2); opacity: 0; }
.plain .logospin, html:not(.js) .logospin { height: auto; }

/* xizmat qatori: hover'da pastdan chiziq to'ladi */
.service { position: relative; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.service:hover::after { transform: scaleX(1); }

/* ---------- moslashuv ---------- */
@media (max-width: 1080px) {
  .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; }
}
@media (max-width: 768px) {
  .insta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about { grid-template-columns: 1fr; }
  .hud { justify-self: stretch; max-width: none; }
  .project { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
  .progress i { width: 50px; }
  .pedestal__hint { display: none; }
  .pedestal__ui { margin-bottom: 64px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stack__grid { grid-template-columns: 1fr; }
  .nav__name { display: none; }
  .section { padding: 14vh var(--gutter); }
  .pedestal__tabs button { padding: 8px 10px; letter-spacing: .08em; }
  .pedestal__arrow { width: 38px; height: 38px; }
}

.gate.is-ready .gate__dragon { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 26px rgba(255, 255, 255, .95)); } }

/* ---------- telefon/planshet (barmoq): og'ir effektlarsiz ----------
   backdrop-filter har kadrda 3D sahna ustida qayta xiralashtiriladi — telefonni qotiradi va
   hamma narsani xira ko'rsatadi. O'rniga zichroq, aniq fon. Shovqin qatlami ham o'chiriladi. */
@media (hover: none) and (pointer: coarse) {
  .glass, .lang, .sound, .pedestal__arrow, .pedestal__tabs, .insta__handle, .insta__badge,
  .nav.is-scrolled, .ig-modal__backdrop, .ig-modal__close, .insta__play {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .glass { background: rgba(240, 243, 247, .82); }
  .lang, .sound, .pedestal__arrow, .pedestal__tabs, .insta__handle { background: rgba(240, 243, 247, .9); }
  .ig-modal__backdrop { background: rgba(14, 17, 22, .82); }
  .ig-modal.is-reel .ig-modal__box, .reel__play { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ig-modal.is-reel .ig-modal__box { background: rgba(240, 243, 247, .96); }
  .grain { display: none; }
  .gate.is-out { filter: none; }
  .project__glow { animation: none; }
}
