/* ---------- Ranglar: kunduzgi (light) va tungi (dark) rejim */
:root {
  --bg: #f6f4ee;
  --paper: #ffffff;
  --fg: #0b1430;           /* asosiy matn */
  --muted: #5d6680;
  --line: #e5e2d8;
  --solid: #0b1430;        /* to'q tugma, lenta */
  --solid-2: #1c2f68;
  --on-solid: #ffffff;
  --gold: #e3b954;
  --gold-ink: #8a6a12;     /* oq fonda o'qiladigan oltin */
  --blue: #2d55c8;
  --tag-bg: #eef2fc;
  --num: #c9c5b6;
  --photo-bg: #ddd8cb;
  --nav-bg: rgba(246, 244, 238, .86);
  --shadow: rgba(11, 20, 48, .5);
  --contact: #0b1430;
  --footer: #070e24;
  --radius: 22px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0f1f;
  --paper: #111833;
  --fg: #e9edf7;
  --muted: #9aa5c4;
  --line: #222b4a;
  --solid: #e9edf7;
  --solid-2: #ffffff;
  --on-solid: #0b1430;
  --gold-ink: #e3b954;
  --blue: #8fb0ff;
  --tag-bg: rgba(143, 176, 255, .12);
  --num: #3a4466;
  --photo-bg: #1a2240;
  --nav-bg: rgba(10, 15, 31, .82);
  --shadow: rgba(0, 0, 0, .7);
  --contact: #0f1838;
  --footer: #060a17;
  color-scheme: dark;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.08; margin-bottom: 40px; }
h2 em, .role em { font-style: normal; color: var(--gold-ink); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow.light { color: #8e9bc0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; cursor: pointer; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-dark { background: var(--solid); color: var(--on-solid); box-shadow: 0 14px 30px -16px var(--shadow); }
.btn-dark:hover { background: var(--solid-2); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-line:hover { background: var(--solid); color: var(--on-solid); }
.btn-gold { background: var(--gold); color: #0b1430; }
.btn-gold:hover { background: #f0c968; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Menyu */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #0b1430; color: var(--gold); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { position: relative; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.only-m { display: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.langs button { border: 0; background: transparent; cursor: pointer; height: 32px; min-width: 38px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: background .25s, color .25s; }
.langs button:hover { color: var(--fg); }
.langs button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); transition: transform .4s var(--ease); }
.icon-btn:hover { transform: rotate(-20deg); }
.icon-btn svg { width: 19px; height: 19px; }
:root[data-theme="dark"] .icon-btn .moon, :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; margin: 6px 0; transition: transform .3s var(--ease); }
body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Bosh qism */
.hero { position: relative; padding: 140px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2fb67c; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,182,124,.5); } 70% { box-shadow: 0 0 0 9px rgba(47,182,124,0); } 100% { box-shadow: 0 0 0 0 rgba(47,182,124,0); } }
.hero h1 { margin-top: 26px; font-size: clamp(48px, 8vw, 104px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; }
.role { margin-top: 26px; font-family: Manrope, sans-serif; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.3; }
.rotator { display: inline-block; color: var(--gold-ink); border-bottom: 3px solid var(--gold); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator.out { opacity: 0; transform: translateY(10px); }
.lead { margin-top: 18px; max-width: 520px; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-photo { position: relative; justify-self: center; width: min(440px, 100%); --rx: 0deg; --ry: 0deg; perspective: 900px; }
.photo-bg { position: absolute; inset: 8% -6% -4% 10%; border-radius: 999px 999px 40px 40px; background: var(--gold); transform: rotate(4deg); }
.photo-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--photo-bg); box-shadow: 0 40px 80px -40px var(--shadow); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s var(--ease); }
.hero-photo:hover .photo-frame img { transform: scale(1.04); }
.float { position: absolute; padding: 9px 16px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -14px var(--shadow), inset 0 0 0 1px var(--line); animation: bob 5s ease-in-out infinite; }
.f1 { left: -8%; top: 22%; }
.f2 { right: -6%; top: 46%; animation-delay: -1.6s; }
.f3 { left: 2%; bottom: 12%; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ring { position: absolute; right: -4%; top: -2%; width: 112px; height: 112px; border-radius: 50%; background: #0b1430; color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.ring text { font: 600 9.5px Inter, sans-serif; letter-spacing: 2.1px; fill: #c9d2ea; }
.ring span { font-family: Manrope, sans-serif; font-weight: 800; color: var(--gold); font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { margin-top: 90px; padding: 22px 0; background: #0b1430; color: #dce2f2; overflow: hidden; transform: rotate(-1.2deg); width: 104%; margin-left: -2%; }
:root[data-theme="dark"] .marquee { background: var(--gold); color: #0b1430; }
:root[data-theme="dark"] .marquee-track i { color: #0b1430; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: slide 40s linear infinite; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 700; white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sahifa ochilganda */
.anim { opacity: 0; transform: translateY(24px); animation: up .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .12s + .1s); }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- Bo'limlar */
.section { padding: 120px 0; }
.section.alt { background: var(--paper); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); font-size: 18px; }
.about-text p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 56px; }
.stat { padding: 26px 0 0; border-top: 1.5px solid var(--fg); }
.stat b { display: block; font-family: Manrope, sans-serif; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.skill-group { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.skill-group h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.skill-group .chip:hover { background: var(--solid); color: var(--on-solid); }
.chips.small .chip { font-size: 12.5px; padding: 4px 11px; }

/* ---------- Loyihalar */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 40px; }
.head-row h2 { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 0; cursor: pointer; padding: 9px 18px; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px Inter, sans-serif; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.filter:hover { color: var(--fg); }
.filter.on { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.project:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -34px var(--shadow); }
.cover { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 16 / 10; background: var(--c); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .cover img { transform: scale(1.035); }
.count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(11,20,48,.72); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.count .ic { width: 15px; height: 15px; }
.project-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; flex: 1; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-size: 13.5px; font-weight: 600; transition: background .25s, transform .25s var(--ease); }
.links a:hover { background: var(--solid-2); transform: translateY(-2px); }
.links a .ic.arrow { width: 15px; height: 15px; color: var(--gold); }
:root[data-theme="dark"] .links a .ic.arrow { color: #8a6a12; }
.project h3 { font-size: 22px; }
.project p { color: var(--muted); font-size: 15px; flex: 1; }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.num { font-family: Manrope, sans-serif; font-weight: 800; color: var(--num); font-size: 14px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--tag-bg); padding: 4px 11px; border-radius: 999px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.arrow { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease), color .35s; }
.links a:hover .ic.arrow { transform: translate(2px, -2px); }
.pop { animation: pop .6s var(--ease) both; animation-delay: calc(var(--d, 0) * .07s); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Galereya */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px; background: rgba(5, 8, 20, .92); opacity: 0; transition: opacity .25s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 14px; box-shadow: 0 30px 80px -20px #000; object-fit: contain; }
.lightbox figcaption { color: #c9d2ea; font-size: 14px; font-weight: 500; }
.lb-nav, .lb-close { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.2); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lightbox figure { grid-row: 1; }
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 20px; width: 46px; height: 46px; }
.lightbox.single .lb-nav { visibility: hidden; }

/* ---------- Xizmatlar */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--fg); }
.service { padding: 34px 28px 38px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service:not(:nth-child(3n + 1)) { padding-left: 28px; }
.service-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #0b1430; color: var(--gold); margin-bottom: 22px; transition: transform .4s var(--ease), background .3s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.service:hover .service-ic { transform: rotate(-8deg) scale(1.06); background: var(--gold); color: #0b1430; }
.service p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Tajriba */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.path-h { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--fg); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.yil { font-family: Manrope, sans-serif; font-weight: 700; color: var(--gold-ink); }
.timeline h3 { font-size: 20px; }
.joy { font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 2px; }
.timeline p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Aloqa */
.contact { background: var(--contact); color: #fff; padding: 120px 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { color: #fff; margin-bottom: 0; }
.contact h2 em { color: var(--gold); }
.contact .lead { color: #aeb9d8; }
.contact-links { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 34px; max-width: 460px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s, transform .3s var(--ease); min-width: 0; }
.contact-link:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.contact-link > span:nth-child(2) { min-width: 0; }
.c-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--gold); flex: none; }
.c-ic .ic { width: 20px; height: 20px; }
.contact-link.telegram .c-ic { background: #2aabee; color: #fff; }
.contact-link.instagram .c-ic { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.contact-link small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8e9bc0; }
.contact-link b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { margin-left: auto; color: var(--gold); font-size: 18px; transition: transform .3s var(--ease); }
.contact-link:hover .go { transform: translateX(4px); }

.msg-form { display: grid; gap: 14px; padding: 30px; border-radius: 26px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.msg-form h3 { font-size: 22px; margin-bottom: 4px; }
.msg-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #aeb9d8; }
.msg-form input, .msg-form textarea { width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; font: 400 16px Inter, sans-serif; transition: box-shadow .2s, background .2s; resize: vertical; }
.msg-form input:focus, .msg-form textarea:focus { outline: 0; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px var(--gold); }
.msg-form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 22px; font-size: 14.5px; }
.form-note.ok { color: #6fdcaa; }
.form-note.bad { color: #ffb4a8; }
.form-note a { color: var(--gold); text-decoration: underline; }

.footer { background: var(--footer); color: #aeb9d8; padding: 26px 0; font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.to-top:hover { color: var(--gold); }

/* Ko'ringanda paydo bo'lish */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * .08s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Planshet va telefon */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero-in, .contact-in, .about, .paths { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { width: min(380px, 82vw); margin-top: 10px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n)) { border-right: 0; }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; }
  .service:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .service:nth-child(even) { padding-left: 24px; }
  .burger { display: block; }
  .nav-in { gap: 12px; }
  .tools { margin-left: auto; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--bg); box-shadow: 0 12px 24px -16px var(--shadow); }
  .nav-links a { padding: 12px 0; font-size: 17px; color: var(--fg); }
  .nav-links a::after { display: none; }
  body.menu-open .nav-links { display: flex; }
  .nav-links .only-m { display: block; }
  body.menu-open .nav { background: var(--bg); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-in { height: 66px; }
  .nav-links { top: 66px; padding: 8px 16px 20px; }
  .brand > span:last-child { display: none; }
  .langs button { min-width: 34px; height: 30px; padding: 0 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .section, .contact { padding: 84px 0; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 18px 0; }
  .skills, .projects { grid-template-columns: 1fr; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .project-body { padding: 22px 20px 24px; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) { border-right: 0; padding: 28px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .paths { gap: 40px; }
  .contact-links { grid-template-columns: 1fr; }
  .msg-form { padding: 22px 18px; }
  .float { font-size: 13px; padding: 7px 13px; }
  .f1 { left: -4%; } .f2 { right: -4%; }
  .ring { width: 88px; height: 88px; right: -2%; }
  .ring text { font-size: 9px; letter-spacing: 1.6px; }
  .marquee { margin-top: 64px; }
  .marquee-track { font-size: 17px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 60px 10px 18px; gap: 12px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .lb-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .lightbox img { max-height: calc(100dvh - 200px); }
}
@media (max-width: 380px) {
  .langs button { min-width: 30px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .reveal { opacity: 1; transform: none; }
}
